We had a requirement to provide the user with a selection of the Product Categories, in the service’s dialog. Here is a quick example of how the SysOperation framework UIBuilder classes can be leveraged to display intricate lookups.
Contract with the linked UIBuilder
The hierarchy and the category are the RefRecId’s
Without the necessary changes in the UIBuilder, the dialog displays a simple drop down, listing all the available categories in the system:
Register the overridden lookupReference() method for the Category field:
The Category dialog field now displays a nicely formatted lookup of the category structure for the selected hierarchy: