Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

get value from parent form using javascript

$
0
0

I am working on CRM 2011 online.
I would like to get field(allotmenttypecode) from parent entity (contract) into child entity form(contract line).
When the form of contract line is open (onload) I am using the script below to get value from parent.
          window.parent.opener.Xrm.Page.data.entity.attributes.get("allotmenttypecode").getValue();

but it always return error message: window.parent.opener.Xrm.Page.data.entity is null or not an object.
Please help me out.


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>