In the previous UI you could create menu that has dynamic list of menu items. For instance, in the Entity Service Model form, the right click menu had a “Schedule Touch” option that listed Task and Schedule Item templates based on whether the touch type was associated with those templates. I do not see how to achieve this in the 9 UI, is there an example or a guide you can point me to?
You can use the <Menu> control to show a dynamic collection, and bind a UI event to execute the action with the selected value as a parameter. See the example below, which shows the list of call record templates and handles the action in the “addRelatedCallRecord” event. This example is taken from EntityActList.layout.