I'm trying to open a modal dialog from an editable subgrid. The function is successful, yet the dialog is not launched. The following is the code:
function OpenModal(executionContext) { debugger; // Inline Page var pageInput = { pageType: "custom", name: "PolicyCommissionModal" }; var navigationOptions = { target: 2, position:1, width: {value:50, unit:"%"}, title: "Policy Commission Form" }; Xrm.Navigation.navigateTo(pageInput, navigationOptions) .then( function success() { console.log("success"); } ).catch( function (error) { console.error(error); } ); }
Can we open Custom Pages as a modal from a subgrid?