sc_apl_status("Application", "Status")

The sc_apl_status() macro is used to control application access. It dynamically enables or disables applications based on user permissions or custom logic.

Parameters

  • application: The name of the application, or a variable containing the name, to be enabled or disabled.
  • status: The value or variable that defines the application's status. Accepted values:
    • "on": Enables the application.
    • "off": Disables the application.

Examples


// Example 1: Disable a specific application
sc_apl_status("atu_cad", "off");

// Example 2: Dynamic control using variables
sc_apl_status({var_name_appl}, {var_status});