Searching and updating the Macro cross-references
You can search for the instances that call a Macro. You can also update the values of the call parameters from the Macro cross-references view that displays the search result. Then, for example, if you add a parameter in the Macro, you can use this view to indicate its values in the calling instances.
Procedure
- You can start the search from one of the following views:
- The Design Explorer view,
- The Design Search result view,
- The References result view.
The location where you want to start the search must be opened (
icon).
- Right-click a Macro and select References > Macro cross-references in the contextual menu.
- Look at the search result in the Macro cross-references view that is automatically displayed.
- To update the value of a parameter or indicate the value of a new parameter, click
in the view toolbar. This action is possible only if the design editors of all the instances that are listed in this view are closed.
- Click a cell in the table and enter the new parameter value. You can indicate linked instances as parameters. The name of the linked instance must be preceded by the entity type: E= for Data Element, D= for Data Structure, or S= for Segment. You can indicate a linked instance in two ways:
- You can directly enter the entity type, the equal sign, and the instance name. The existence of the instance name that you enter is not controlled.
- You can also use a content assist wizard to make the input easier. To open the wizard, click Ctrl and the space bar simultaneously. The following entity types are then displayed: E= for Data Element, D= for Data Structure, and S= for Segment. Double-click one of these lines to select it. The instances of the selected entity type are then listed in the wizard. The generation context of the calling instance is taken into account for the list display. You can double-click an instance to select it. You can also filter the instances list first by entering the beginning of the name.
When the calling instance is generated, the parameter is replaced by the linked instance and the references are automatically created.
- Click
in the toolbar to save the modified parameters in the calling instances. The modifications are saved only if the design editors of all the instances that are listed in this view are closed.
Note: If, meanwhile, some of the modified parameters of the view were modified in a different way in the design editors of the calling instances, the modifications of the view overwrite the modifications of the design editors.If you open the CP Lines tab of the calling instances, you can see the new values.
- You can export the result in a CSV format and use it in a spreadsheet
program. To do so, click Export the query result (
) in the view toolbar.
- Result view of a Macro cross-references search
This view displays the results of the Macro cross-reference search for the instance that is selected in the Design Explorer view or the result view of a search. The reference search was requested from the References > Macro cross-references choice of the Macro contextual menu.
Parent topic: Starting a search
Feedback