sc_set_theme('String Theme')

This macro allows to dynamically change the theme that will be used in the applications.

When used, the theme is changed in the session, causing all applications accessed later to receive the informed theme.

Parameter

This macro has only one parameter, which must be named after the theme that will be applied.
This parameter can be passed in two ways.

 

Example 1 - String with the name of the theme.
sc_set_theme ('BlueBerry');

Example 2 - Local variable receiving the value of a field or a global variable.
$ set_theme = {field_name};
sc_set_theme ($ set_theme);

 

Related Links
See how to dynamically change the theme of a project using the macro.