Seiteneigenschaften |
---|
Deutsch |
Hier wird sämtlicher Inhalt des Dokuments in Deutsch eingefügt! |
Englisch |
---|
VariablesTo 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 variablesVariable 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:
ValuesWritingTo modify the configuration that is sent to a device you can use
Changes made by The same can be achieved by using
Changes made by Reading
There is no equivalent |
Seiteneigenschaften |
---|