Last modified by Aurelie Bertrand on 2021/05/12 12:40

Show last authors
1 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).
2
3 These variables can then be used with the format: ##**${server.NameOfServerVariable}**##
4
5 = Process =
6
7 1. Open the following file : ##[répertoire de configuration DD]/Enterprise Server/ddenterpriseapi/config/**serversettings.xml**##
8 1. (((
9 (% id="cke_bm_293S" style="display:none" %) (%%)Locate the line : {{code language="XML"}}<group category="$uisrv.Advanced" id="serverParams" name="$uisrv.ServerParams"></group>{{/code}}
10 )))
11 1. Modify this line by : {{code language="XML"}}<group category="$uisrv.Advanced" id="serverParams" name="$uisrv.ServerParams">
12 <input disabled="false" mandatory="false" name="NameOfServerVariable" reg="false" sample="" showif="" src="" text="NameOfServerVariable" type="textfield" userparam="false" value="value of my variable"/>
13 </group>{{/code}}
14 **//à noter : //**
15 - ##NameOfServerVariable ##is to be changed by the desired name
16 - the ##value ##attribute must be initializad to the desired value
17 1. The server variable is now created !