today we had to change the value of a filed(Disabled) in a crm form when another field value was getting changed. we were able to do this firslty and when saved, the data got saved perfectly.
we were happy till we saw that when updated the disbaled field value was not changed eventhough we have actually changed the value by modifying the affected field.
after sone time we thought that since we are using javascripts the value is not getting passed to the server, because the server thinks that the value has not been changed.
So we used the followinf statement to check whether the value will be chnaged and what do you know, it worked perfectly.
crmForm.all.[fieldName].forceSubmit = true;
As i got to know this is very useful when it comes to disbaled fields. whether the field value has got chaned or not when saving the value of this field will be sent to the server.
This blog describes mostly about the work (CRM 365, CRM 2016, CRM 2015, CRM2011, CRM 4.0, CRM 3.0, C#,Javascript and SQL Server) i do.
Subscribe to:
Post Comments (Atom)
Retrieving Calendar of a Bookable Resource in Dynamics
There are occasions where we need to retrieve working days and working times of a resource in Dynamics grammatically. This is quite possible...
-
There is a bit of change in CRM 2011 than CRM 4. The code is below. Microsoft.Xrm.Sdk. EntityReference Moniker1 = new Microsoft.Xrm.S...
-
When you create a new security role from scratch and then assign only that role to a system user and when you log to the CRM site you might ...
-
There are occasions where we need to retrieve working days and working times of a resource in Dynamics grammatically. This is quite possible...
No comments:
Post a Comment