dynamics crm 2013 - issue with Xrm.Page.data.entity.save("saveandclose") -
When I open an opportunity form and from there I have opened an opportunity product, but when I come back to the project And click Save on and Close I have returned to the Opportunity Product Page (which I have previously opened) instead of the chance list page.
Therefore, I have created a custom function to save the button and to write the code as the following:
Save and close the function () {Xrm. Page.data.entity.save ("saveandclose")} But the problem remains the same. I have fixed the problem with the following code:
function save and close () {Xrm.Page.data.entity.save (); If (parent.opener! = Undefined) {window.parent.close (); } And Xrm.Page.ui.close (); } Hope this help !!!!
Comments
Post a Comment