Skip to main content

Developing an Application

 

OutSystems

Update Code Reused between Modules

When elements exposed by Producer modules are modified it has impact on Consumer modules reusing them. Depending on the type of changes the impact on Consume modules is one of the following:

Modified (not broken)
In this case, modifications will not provoke runtime errors in the Consumer modules.
This happens when the "signature" of an elements does not change.
For example, changing the logic of an exposed action.

Modified (broken)
In this case, modifications may provoke runtime errors in the Consumer modules.
This happens when you change the "signature" of an exposed element.
For example:
  • The name of an exposed element;
  • The name, number, or order of parameters/attributes of an exposed element;
  • The name, data type, or default value of parameters/attributes of an exposed element.
Missing
In this case, modifications will provoke runtime errors in the Consumer modules.
This happens because something is missing.
For example:
  • The element is not exposed or was deleted from the Producer module;
  • The Producer module does not exist in the OutSystems server you are connected to;
  • You don't have permissions to reuse the exposed element.

In order to update the changes to elements reused between modules, proceed as follows:

  1. Open the Consumer modules;
  2. OutSystems detects outdated elements reused from other modules and a dialog box is displayed for that matter. Answer Yes and the Manage Dependencies window is displayed;
  3. To update reused elements that changed proceed as follows:

    • Modified (not broken)
      In the Manage Dependencies window, elements are marked with .
      Click on to refresh them.

    • Modified (broken)
      In the Manage Dependencies window, elements are marked with .
      Click on to refresh them.

    • Missing
      In the Manage Dependencies window, elements are marked with . Uncheck them.

  4. Press the Ok button when done and fix any errors due to the changes.

  • Was this article helpful?