Previous Topic Next topic Print topic


Mass Processing from a Dialog Table

The use case is an action that shows elements in a dialog table. The elements in the dialog table should be selectable. The selected elements should be processed by a subsequent tool and the changes to the elements should be visible after the action completes.

In the example shown below an action is modelled by which a change qualifier can be set to all selected elements.

The example model assumes that the AWM elements are identified by a name and a type.

The action to set the change qualifier consists of three tools:

  1. Tool to set the list in the dialog.
  2. UI tool to prompt the change qualifier to be set and to display the selection list provided by the previous tool.
  3. Tool to update the selected elements with the specified change qualifier.

It is crucial that the action is defined as a mass processing action.


Table Mass Processing 1

The first tool in the sequence just returns a file descriptor which contains a list of elements.


Table Mass Processing 2

Table Mass Processing 3

The second tool in the sequence is a modelled dialog. The dialog has a property representing the change qualifier as String input parameter from parameter type User_Input. The second input parameter is the file descriptor provided by the preceding tool. It is of parameter type Previous_Tool. In order that the elements in the table are selectable the attribute "UI Multi Selection" in the relationship "Tool has Input Parameter" must be set to true. The modelled dialog tool is modelled like this:


Change Qualifier UI Tool

The last tool in the sequence does the update of the change qualifier to the elements selected in the table dialog. The tool gets as String input parameter the change qualifier property and as MassProcessing input parameter the identifying properties of the selected elements. All input parameters have to be modelled as parameter type Previous_Tool. The tool returns as ToolDefinedResourceOperations the identifying element properties and the new change qualifier value.

The third tool is modelled like this:


Table Mass Processing 4
As in this example, if the tool is a tool of type "Execute ISPF command", the resource operations have to be returned in the ISPF table TAUTOTBI. A resource operation generated by this tool could be:
 UPDATE-ELEMENT: AWMTST01 XML CHANGE123
Previous Topic Next topic Print topic