I'm opening a new window for a different entity using the following with some parameters
window.open("/main.aspx?etn=ld_statistical&pagetype=entityrecord&extraqs=" + encodeURIComponent(extraqs),"_blank", features, false);
I'm trying to close it via javascript after calling a save function.
I've tried the following:
window.close(); //throws a confirmation
window.top.close(); //throws a confirmation
Xrm.Page.ui.entity.save("saveandclose"); //this loads the default dashboard too
Xrm.Page.ui.close(); //(loads the default dashboard).
David J