Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM2011-How to close Dialog-"Unsaved Changes"(Not the parent Window) from a Javascript

$
0
0

CRM2011-How to close Dialog-"Unsaved Changes"(Not the parent Window) from a Javascript


I am using below Javascript to close the Dialog-"unsaved Changes" but it is now working. 

var attributes = Xrm.Page.data.entity.attributes.get();
  for (var i in attributes)
    {       attributes[i].setSubmitMode("never"); }

Am i missing something?? If i use Xrm.Page.ui.close(); under the above lines it is closing the parent window as well. 

Any response on this would be much appreciated.


Madhu M.


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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