Hi Experts,
I'm opening a web resource using Xrm.Navigation.navigateTo and passing some parameters to it.
Here is my code:
var pageInput = { pageType: "webresource", webresourceName: "wo_ProductGrid", data: encodeURIComponent(params) }; var navigationOptions = { target: 2, // 2 is for opening the page as a dialog. width: 1400, height: 1000, position: 1 // Specify 1 to open the dialog in center; 2 to open the dialog on the side. Default is 1 (center). }; Xrm.Navigation.navigateTo(pageInput, navigationOptions).then( function success() { },function error(e) { } );
Now, in the web resource how can I extract the parameters from the URL?
I used decodeURIComponent(window.location.search) but it doesn't decode parameters properly.