pui.rebuildSubfileMenu( choices, values )
In Genie, when the Detect Subfile setting is set to True and the Detect Subfile Patterns setting is set to False, Genie will search for subfile options, such as 2=Change and 5=Display, and create a right-click subfile menu for these options. Â This function allows you to programmatically override the options on this menu.
Parameters:
choices - menu options to display
choices values - values to place in the subfile option box when a menu option is selected
Example:
pui.rebuildSubfileMenu( ["Select", "Change", "Display"], ["1", "2", "5"] );