This page describes how to create a custom menu item that executes a quick report.
The Bundle Execution property on custom menus of type Quick Report enables the custom menu to operate on several objects selected in an overview window. If not used, the custom menu operation only applies to one selected object. The Quick Report must also be designed to support bundled execution. This means it must be of type "SQL Statement" and the where clause of the SQL statement must use the IN operator. See the following example:
SELECT * FROM IFSAPP.SUPPLIER_INFO WHERE (SUPPLIER_ID, NAME) IN ([&SUPPLIERVALUES])
The where clause above has a substitution variable (quick report parameter) which is surrounded by square brackets. The square brackets indicate that it is an expandable report parameter and it will be accepted by the SQL parser validation.
The window columns that will be used as parameter to the Quick Report are defined in Expandable Parameters on the custom menu.
Source Key Names are the window columns. Parameter is the Quick Report parameter (substitution variable). The Expandable Parameters will only be enabled when the checkbox Bundle Execution is checked.
When the Quick Report is executed the substitution variable will be replaced with the column values for the selected rows in the window of the custom menu. The SQL statement above for example will look like this if the custom menu was executed on two selected rows:
SELECT * FROM IFSAPP.SUPPLIER_INFO WHERE (SUPPLIER_ID, NAME) IN (('1','SUPPLIER 1'),('2','SUPPLIER 2'))