CRM 2011 CrmEncodeDecode is Undefined



Problem: 
CrmEncodeDecode is Undefined

Solution:
parent.CrmEncodeDecode.CrmXmlEncode(sFetchXml);

I put parent infront of CrmEncodeDecode because im using it in webpage and i need to call
parent page only i can load the CrmEncodeDecode.


Webpage act as a child for a record form.That mean every webpage if u need to use the field value,
there need to put parent infront of all the crm code.

eg. parent.Xrm.Page.data.entity.attributes("fieldname").getValue();

0 comments: