Generating Set Field actions
To generate Set Field commands for an action:
-
Right-click the action, and select
Generate
Actions > Generate Set Fields.
The Add Set Fields actions dialog box is displayed. This dialog box shows all editable form fields in a tree that represents groups per branch.
- Select the fields for which you want to generate Set Field actions.
-
Specify this information:
- Type
- Select one of these values in the drop-down box:
- Overview: only overview fields are displayed.
- Details: only details fields are displayed.
- Default: Depends on the session type
- Show Initially hidden fields
- If this check box is selected, if the form field was initially hidden, this field is also displayed in the tree to select.
- Default: Cleared
- Show Only Search Key Fields
- If this check box is selected, only key fields of a specified index are displayed.
- You can select the index in an additional input field.
- Default: Cleared
- Show Only Maintable Fields
- If this check box is selected, only fields of the main table of the session are displayed.
- Default: Cleared
- Generate Step for the new actions
- If this check box is selected, a step is created under the current action. All generated actions are added to this step.
- Default: Selected
- Add missing actions in step
- If this check box is selected, missing Set Field actions are added to the already existing step. If multiple steps are present in the flow, then you can select a particular step in a drop-down box.
- This check box is only enabled if the previous check box, Generate Step for the new actions, is cleared.
- Default: Cleared
- Generate Variables
- If this check box is selected, output variables are created for the selected fields. If an input variable with the same name already exists, this variable changes to an input/output variable.
- Default: Selected
- Prefix
- If you specify a prefix, the names of any generated variables start with this prefix. A prefix is required if you generate variables for different sessions with the same field names.
- Default: 'i.'
- Generate If Variables
- If this check box is selected, an If variable action is created.
- Default: Selected
- Generate Info Fields
- If this check box is selected, an Info Field action is created.
- Default: Selected
-
Click OK. For all selected fields, an action is generated. Depending on the
information you specified, variables may also be generated for the selected fields.
The generated actions are displayed in the Actions tab in the BFlow Editor.
If you selected Generate Variables, the generated variables are displayed in the General tab in the BFlow Editor.