Searching and updating the Macro cross-references

You can search for the Program, Screen, or Server 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

  1. In the Design Explorer view, select an open location (Open location).
  2. Click the Macro entity line to display its instances.
  3. Right-click a Macro and select References > Macro cross-references in the contextual menu.
  4. Look at the search result in the Macro cross-references view that is automatically displayed. The view title reminds the Macro name and the project (with the package if any) in which the Macro is called.

    This view displays the list of the instances that call the Macro in the local project, and the values of the parameters in each calling instance.

  5. To update the value of a parameter or indicate the value of a new parameter, click Edit the parameters in the view toolbar. This action is possible only if no design editor is opened on the instances that are displayed in the view.
  6. Click a cell in the table and enter the new parameter value.
  7. Click Save parameters modifications in the toolbar to save the modified parameters in the calling instances. The modifications are saved only if all the design editors of the instances present 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.


Feedback