Sponsors

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;}

Thứ Năm, 14 tháng 2, 2008

Javascript and IFrames

I'm struggling with IFrames and JavaScript quite often. When you're working with this as well, the first thing to keep in mind is:Deselecte the option "restrict cross site scripting" (in dutch "Het uitvoeren van scripts tussen frames beperken")That usually saves a lot of troubles.Furthermore, the next step is to create JavaScripts. One which I use quite often, is one which allows me to access a

VPC CRM 4.0

Just like Microsoft has developed a VPC for CRM 3.0, they have created one for CRM 4.0 as well. Here's the link to the VPC: http://www.microsoft.com/downloads/details.aspx?FamilyID=dd939ed9-87a5-4c13-b212-a922cc02b469&DisplayLang=en

Thứ Hai, 11 tháng 2, 2008

CrmDateTime conversion to DateTime

When working with CrmDateTime, you'll notice that this type does have a .value attribute, but the type of this attribute is string. There is no attribute to get the .net class DateTime out of your CrmDateTime. If you do want to use a DateTime anyway, you'd easily need to convert it. You could use any of these:Convert.ToDateTime(crmdatetime.Value)DateTime.Parse(crmdatetime.Value)For more

Thứ Sáu, 8 tháng 2, 2008

Logo Dynamics

For a presentation I needed a logo of Microsoft Dynamics. At that point I realized that I have never used an official logo for Microsoft Dynamics. Searching on the internet resulted in this page:http://www.microsoft.com/Presspass/gallery/ms-logos.mspx?FINISH=YESIt includes logo's for most Microsoft products including Visual Studio, Office, Windows and of course Dynamics.