I have a standard Purchase Order browser/editor which is for both local purchase and Import purchase orders. I want to use separate menu for Local purchase and Import Purchase but use the same UI where I want to pass the parameter procurement Type = local or import. When I tried to use the same screen, notified that it is not allowed. What would be the way I can use the same screens for this purpose? If it is not possible at all, what would be the suggested solution?
To add the same screen into menu twice (or more), you need to register such screen with different ids in web-screens.xml. For example:
<screen id="screen1" template="com/company/demo/web/person/person-browse.xml"/> <screen id="screen2" template="com/company/demo/web/person/person-browse.xml"/>
After that, you will be able to add screen1 and screen2 to the menu and open the same physical screen with different params.