Hi All,
I have used the follwing function to Open model form by sekecting record from subgrid. The issue is I need the details of the field of this popup form to execute the next line but it is not stopping till Save and the next line of code is getting executed once we just open the form.
Below is the fuction to open modal form
function openRecordFormInPopup(selectedRecordId)
{
var prodId== selectedRecordId.slice(1, -1);
var pageInput = {
pageType: "entityrecord",
entityName: "sd_enityprod",
entityId: prodId
};
var navigationOptions = {
target: 2,
height: { value: 100, unit: "%" },
width: { value: 100, unit: "%" },
position: 1
}
parent.window.Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
function success() {},
function error() {}
);
}
How Can I execute the next function call after this form is not saved..Can anyone please modify it???