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.