Skip to content

Server-Side Variables

Many server-side variables are available in text nodes.

Processing order:

System Variables

  • [[kv.v. .....]] all variables in kv.v. scope
  • [[kv.v.owner.name]] Owner Name, also in footer
  • [[kv.v.owner.contact]] Owner contact, also in footer
  • [[kv.v.owner.footer]] Footer additional text
  • [[kv.v.owner.language]] Default language
  • [[kv.v.user.username]] username
  • [[kv.v.user.userid]] user id
  • [[kv.v.user.currency]] currency
  • [[kv.v.user.teamid]] teamid
  • [[kv.v.user.app_name]] user's current application name
  • [[kv.v.api.version]] version
  • [[app_name]]
  • [[apimethod]] - GET/POST
  • [[apipath]] - example {{host}}/api/srs/xtet?param=param
  • [[userpermission]] - comma-separated list of permissions
  • [[basepath]] - example http://test.com
  • [[srs_name]] - srs_name
  • [[srs_id]] - srs_id
  • [[session_id]] - Sql Server UUID, database friendly
  • [[ipv4]] - IPv4 address
  • [[trace_identifier]] - trace correlation
  • [[user_agent]] - user agent

User Variables (defined in srssetup)

Example:

XML
<itm model="command"  name="srssetup"  opts="server">select getdate() currentdate</itm>
  • [[currentdate]] current date