...
Englisch |
---|
To further extend the use of Add-Ins we have the possibility to use variables. These can be used as read-only values within Add-In scripts. A variable consists of
A variable can be set/overwritten on the following levels, with ascending order:
For this, open the respective Variables view, and add the defined variables. Defining a Variable TypeA variable is either of type To define a new type click on the Variable Types button. Next, click on Add new type. Give the type a name (e.g. Switch), and add a number of selectable variable values, for example:
Click on Save to save your variable type. Review your types, then close the dialog to return to the variables page. Defining a VariableTo define a new variable click on the Variable definition button. Provide a variable name and select the variable type from the drop down list. Select the default value of the variable from the previously defined selections of the variable type. Select the checkbox Use as password if you want to hide the contents within the UI with asterisks ( Click on the checkbox to save your variable definition. Using variablesNow, you can use your variable in the following way: Variable values can be used using the object
System variablesSystem variables manage specific aspects of the smart configuration.
Example for a status query: The following code snippet shows the general approach for a status query. Change the variables “Systemvariable” and “Value” according to your needs. Enter the actual Addin code under the commented line “Code will be executed, if variable is met.”.
Available System variables:
|