# Variables in Text Objects

Texts objects in TISGraph can contain variables, which can be used to display certain dynamic data.

 Variables Example

For instance, the variable in the text string "As of ${PrintTimeStamp}" will in be replaced by the actual current time stamp when rendered on the drawing pane, e.g. "As of 03/08/2014 14:22:21".

The following variables are supported:

Variable Description Example
${PrintTimeStamp} (To be precise: Timestamp of exporting/printing the PDF) 08.11.2018 12:17:16
${PrintTimeStamp (y)} only year 2018
${PrintTimeStamp (M)} year and months Nov 2018
${PrintTimeStamp (d)} full date 08.11.2018
${PrintTimeStamp (h)} date and hours 08.11.2018 12
${PrintTimeStamp (m)} date, hours and minutes 08.11.2018 12:17
${PrintTimeStamp (s)} full timestamp 08.11.2018 12:17:16
${PrintTimeStamp (yyyy-MM-dd HH:mm:ss)} two or more date format characters are interpreted as part of a format string. 2018-11-08 12:17:16
${PrintUser} User who initiated the print N.N.
${Page} Current Page 1
${NumberOfPages} Total Number of Pages in the Document 3
${DocumentName} Document Name "Testdokument"
${DocumentPath} Absolute path of the document including its name

There are also variables for observation ranges, namely range name, start timestamp and end timestamp. You can configure the range to be used for these variables in the text object's edit dialog.

Variable Description Example
${Constraint1} observation range full data¹ Date Range of Interest: 01.01.2011 — 31.12.2012
Variable Description Example
${Constraint1 (Start)} Start timestamp of the observation range¹ 01.01.2011
${Constraint1 (Start,y)} 2011
${Constraint1 (Start,M)} Jan 2011
${Constraint1 (Start,d)} 01.01.2011
${Constraint1 (Start,h)} 01.01.2011 00
${Constraint1 (Start,m)} 01.01.2011 00:00
${Constraint1 (Start,s)} 01.01.2011 00:00:00
Variable Description Example
${Constraint1 (End)} End timestamp of the observation range¹ 31.12.2012
${Constraint1 (End,y)} 2012
${Constraint1 (End,M)} Dez 2012
${Constraint1 (End,d)} 31.12.2012
${Constraint1 (End,h)} 31.12.2012 23
${Constraint1 (End,m)} 31.12.2012 23:59
${Constraint1 (End,s)} 31.12.2012 23:59:59

¹ By default, start and end timestamp have day precision. Currently, other formatting patterns are not implemented for observation ranges.