set-system-var

This command creates a system variable.

Syntax

set-system-var name value

Parameters

name
Specifies the name of the variable to be created, and takes the var://system/contextName/name form.
var://system
Specifies the prefix that identifies a global variable.
contextName
Specifies the name of the context for the global variable.
value
Specifies the value to assign.

Guidelines

The set-system-var command creates a new system variable that actions or stylesheets can access with the dp:variable() function. System variables, while globally accessible, must be defined within a specified context.

For example, var://system/Notes/jim is correct as it sets the variable jim in the context Notes within the system scope.

However, var://system/Notes and var://system/Notes/ are incorrect as they specify only a scope and context, but not a variable.

Use the get-system-var command to print the value of a system variable to the CLI.

Example

Create the counter system variable in the signerID context.
# set-system-var var://system/signerID/counter 0
#