Sponsors
Thứ Tư, 19 tháng 3, 2008
Resizing windows
If you have a lot of data on an entity form, then you sometimes do want to force the page to open in full screen mode. There's a small javascript which will allow you to do this. Just add these two lines of code to the form onload of your entity form:window.moveTo(0,0);window.resizeTo(screen.availWidth, screen.availHeight);Also, when you open a custom page you can also set the window size by
Thứ Hai, 10 tháng 3, 2008
Stopping and continuing a save event
For some customizations you do need to stop the form onsave event, perform some business logic and continue the save event. An example would be that in specific conditions are met when a record is saved, then a popup will need to be shown. After filling in data in the popup and pressing a continue button on the popup, then the save operation would need to continue. The SDK helps in this situation
Chủ Nhật, 9 tháng 3, 2008
Import CSV file to DataTable
I'm preparing a demo right now and for this I'm importing a CSV file to CRM. Especially the piece around the import of data from a CSV file to a DataTable is very generic. I'm sharing it with you guys for if it does make sense for you to use this as well.class CSVReader{ public System.Data.DataTable GetDataTable(string strFileName) { System.Data.OleDb.OleDbConnection conn = new
Thứ Hai, 3 tháng 3, 2008
ForceSubmit in ASP.Net
Today I've been working on a simple IFrame. This IFrame shows 3 dynamic picklists and the data in these picklists is coming from crm. Since some clients are a bit slow, I would like the picklists to be disabled while the postback is being performed. This is easily done with this script:function disableFields(field1, field2){ field1.disabled = true; field2.disabled = true;}BlogThis!Chia sẻ lên XChia sẻ lên FacebookChia sẻ lên Pinterest
Nhãn:
javascript
Đăng ký:
Bài đăng (Atom)