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

  1. Open the following file : [répertoire de configuration DD]/Enterprise Server/ddenterpriseapi/config/serversettings.xml
  2. Locate the line : <group category="$uisrv.Advanced" id="serverParams" name="$uisrv.ServerParams"></group>

  3. 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
  4. The server variable is now created !