Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

LineDescription
1This package must be imported.
3This invokes renders the Macro Security macro, passing it "restricted" as the name of the macro. It returns either a null string blank string (everything ok to continue) or an error string into the variable securityMessage.
5-6If an error was returned by Macro Security, it is thrown here and you would skip additional processing (thus preventing the macro from rendering its usual output).
9-16

These lines are used to validate each parameter for which a Parameter Restriction is needed. As noted above, these would be placed just after any parameter handling logic.

If a value was specified for the parameter, it invokes renders the Macro Security macro, passing it "restricted" as the name of the macro and "myRestrictedParameterName" as the name of the parameter.

If an error was returned by Macro Security, it is thrown here and you would skip additional processing (thus preventing the macro from rendering its usual output).

...