Skip to main content.

Thursday, January 20, 2011

Here's what I found recently, I hope you can use this as reference.
The way of this new CRM form is different. It looks like that this form using "hidden" field, so when you change any value of each field. The OnChange event will fill this "hidden" field.

However it looks fine you use the CRM 4.0 Javascript style in CRM 2011, but when you save it, the value will not saved

Set Value
CRM 4.0
crmForm.all.Field.DataValue = 10;
CRM 2011
Xml.Page.getAttribute(“Field”).setValue(10);

GetValue
CRM 4.0
var x = crmForm.all.Field.DataValue;
CRM 2011
var x= Xml.Page.getAttribute(“Field”).getValue();

Hide Tab
CRM 4.0
crmForm.all.tab1Tab.style.display = “none”
CRM 2011
Xml.Page.ui.tabs.get(1).SetVisible(false);

Set IFrame Source
CRM 4.0
crmForm.all.IFRAME_frame.src= “http://www.any.com”;
CRM 2011
Xml.Page.getControl(“IFRAME_frame”).setSrc(“http://www.any.com”);

I hope this will be useful

Comments

No comments yet

Add Comment

This item is closed, it's not possible to add new comments to it or to vote on it