Frequently used MS DYNAMICS CRM parts of code


1. Hide a Field:  Xrm.Page.getControl(“controlname”).setVisible(false);

2.Get a ValueXrm.Page.getAttribute(“name”).getValue();
3. Set a Value:   Xrm.Page.getAttribute(“name”).setValue(“info”);
4. Set as Read-Only: Xrm.Page.ui.controls.get(“name”).setDisabled(true);
5Formatting Fields:

document.getElementById("jobtitle").innerHTML="<font color=#ff0000>software engineer</font>";

 

 

 



Labels:



Subscribe

Receive Quality Tutorials Straight in your Inbox by submitting your Email below:

Delivered by FeedBurner

Protected by Copyscape Duplicate Content Checker