Projects.setTheme

Changes the Theme for all the Projects in the Workspace. This will change all the forms set to use the Project's Theme to the one at the specified path.

The path should be relative to the root of the Project or one of its dependent projects. It must start with a forward slash as a path separator.

The new Theme must have the same Framework and collection of Property Sets as the current Theme otherwise the Form may not look as expected.

Important: project.setTheme(...) must be on the last line of a script. After the setTheme function call is executed, the next script configured in the server event will be executed.

For further information see:

JavaScript example:

 projects.setTheme("/themes/myTheme");
 

Parameters

java.lang.String  theme,