Table of Contents

Initializing a session variable

By adding a shape data field of type InitVar to a page of a Visio drawing, you can initialize (i.e. declare) a session variable. The session variable will be loaded as soon as the page is opened in DataMiner.

Tip

For an example, see Ziine > Visual Overview Design Examples view > [data > VARIABLE1] page.

Configuring the shape data field

Add a shape data field of type InitVar to the page, and set its value to:

VariableName:Value

Depending on the DataMiner version, different placeholders are supported for this shape data field:

Minimum DataMiner version Supported placeholders
9.0.0 [Guid], [thisusername], [thisuserfullname] and [thismac]
9.5.1 [ThisGroup]
9.5.13 From this version onwards, dynamic content in general is supported in this shape data. This means the following placeholders are supported: [This Service], [This ServiceID], [This EnhancedServiceID], [This View], [This ViewID], [This Element], [This ElementID], [This Card Object], [This Card ObjectID], [FirstMac].
Note

If you want to initialize multiple values, separate the entries by pipe characters.

Initializing a session variable with a GUID

If you want to initialize a session variable with a GUID, use the following syntax:

VariableName:[Guid]

Examples

MyCounter:0
MyVar:1
VariableName1:value|VariableName2:value|...