I'm wondering if it's possible to show the navbar for Dynamics CRM when you're loading a web resource directly with url( /WebResources/WebResource?data=exampleData
). I have tried with /WebResources/WebResource?data=exampleData&web=true
but no luck.
I have been able to show the navbar for my web resource when adding it to the navigation menu and loading it with this url( /main.aspx?page=Area&area=NewSubArea&web=true
). But I haven't been able to pass data in the url with this solution.
Unfortunately navBar
option is available only for Xrm.Navigation.openForm under entityFormOptions
, where you can give the values on/off/entity
For Xrm.Navigation.openWebResource that option is not there, so only way to achieve is copying the CRM CSS classes from browser developer toolbar & use it in your HTML to match the look & feel. This is unsupported as it may break in future.
But you can inspire the CSS file content & mimic in custom CSS as web resources.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.