johnnyhenderson replied

401 weeks ago

Hello,

I created a new ribbon button and I have configured this button to open a html webresource in a new window. Now I'm trying to set a field from this popup html webresource. I tried this via the following two ways but without success:

window.parent.Xrm.Page.data.entity.getEntityName(); //this seems to work when the html webresource is embedded in the crm form
window.top.opener.parent.Xrm.page.data.entity.getEntityName() //this return the error: Unable to get value of the property 'Page': object is null or undefined

Can anyone help me?

Thank you!!


For More Details Production Management Video
Please log in to post a reply.