For classic ui we can define parameters in the site map that automatically gets filled in for example:
~/Pages/MQ/MQPS4010.aspx?SourceID=ProdOrderDet
this automatically select ProdOrdDet for the SourceID when a user clicks that specific site map, and we can have multiple site maps for the same screen with different SourceIDs specified. I tried the same logic for modern ui using this:
~/Scripts/Screens/MQPS4010.html?SourceID=ProdOrderDet
however, the screen opens with no SourceID selected. What would be the syntax for modernUI screens?
What syntax for site map parameter url for modern ui
Best answer by jinin
Hi
This behavior is supported in Classic UI, where query string parameters in the sitemap URL (for example, ?SourceID=ProdOrderDet) are automatically mapped to the screen when it opens.
In Modern UI, this functionality is not currently supported. The HTML-based screens do not automatically bind arbitrary query string parameters from the sitemap URL to filter or DAC fields, so a URL such as:
~/Scripts/Screens/MQPS4010.html?SourceID=ProdOrderDet
will simply open the screen without populating the SourceID field.
At this time, there isn't an equivalent Modern UI URL syntax that provides the same behavior as Classic UI. If you need to prepopulate values in Modern UI, it would require a customization or another navigation approach rather than relying on sitemap URL parameters.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.