Hi everyone,
I am trying to open a custom page from a model driven app from a custom button selected from the command designer. Unfortunately the custom page does not open when the button is clicked.
I have trawled through the forums trying to identify the cause but I have not come to a solution.
Fixes attempted:
Below is the java script from @dianabirkelbach, only the custom page name has been modified: https://dianabirkelbach.wordpress.com/2021/07/29/how-to-make-dialogs-for-model-driven-apps-using-custom-pages/
function openCustomPage(pageContext){ Xrm.Navigation.navigateTo({ pageType: "custom", name: "new_samplecustompage_off9d", entityName: pageContext.data.entity.getEntityName(), recordId: pageContext.data.entity.getId() }, { target:2, width: 700, height:400} ) .then(console.log).catch(console.error); }
Command Designer:
Troubleshooting tips already read:
Any support would be appreciated.
Best regards,
Hi everyone - I tried everything above on a different model driven app in a different solution in the same environment, and the button successfully launched the custom page.
Unfortunately I cannot identify what is different between both apps, but I guess this is one more test you could do if you're experiencing the same issue.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156