How to create a server variable?
Last modified by Aurelie Bertrand on 2021/05/12 12:40
Sometimes creating a server variable can be useful, especially if you want to have a reference to your home directory or your server root (server creation automation, for example).
These variables can then be used with the format: ${server.NameOfServerVariable}
Process
- Open the following file : [répertoire de configuration DD]/Enterprise Server/ddenterpriseapi/config/serversettings.xml
<group category="$uisrv.Advanced" id="serverParams" name="$uisrv.ServerParams"></group>
Locate the line :- Modify this line by : <group category="$uisrv.Advanced" id="serverParams" name="$uisrv.ServerParams">
<input disabled="false" mandatory="false" name="NameOfServerVariable" reg="false" sample="" showif="" src="" text="NameOfServerVariable" type="textfield" userparam="false" value="value of my variable"/>
</group>
à noter :
- NameOfServerVariable is to be changed by the desired name
- the value attribute must be initializad to the desired value - The server variable is now created !