Creating a Substitution Variable
GUI
Procedure
-
Open a substitution variable screen.
Level Commands Enterprise Shared Objects > Substitution Variables Host Environment Node Application Application fragment -
In the Substitution Variables table, click
Add.
A row is added to the table.
- In the Name column, type a name for the variable.
- In the Type column, select the variable type from the drop-down list.
- Optionally click the Description and Local Value columns and provide a description and value respectively.
- Click Save.
CLI
Procedure
-
In the data file, specify a SVar
element in base format. Nest the
SVar element under a parent
Enterprise,
Environment,
Host,
Node,
Application, or
AppFragment element.
<SVar xsi:type="amxdata_base:SubstitutionVariable" name="svarName" type="String" value="svarValue"/>
-
In the build file, set the
action
attribute of the
AMXAdminTask element to
set or
add and
the
objectSelector attribute to
//SVar.
The add action adds variables in the data file that don't exist in the database
and updates variables defined both data file and database. The set does the
same as add and deletes variables in the database not defined in the data file.
<AMXAdminTask action="add" objectSelector="//SVar"/>
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.