Documentation Vision Report+ Documentation

Vision Report+ / Reference

Placeholders

This chapter lists the placeholders Vision Report+ replaces in report and print texts.

Overview

This chapter lists the placeholders Vision Report+ replaces in report and print texts.

Time placeholders need a .NET date and time format after the colon, for example %ExecutionTime:yyyy-MM-dd HH:mm%. Without a format (%ExecutionTime%) the text stays unchanged. In the format, HH is the 24-hour clock and hh the 12-hour clock without AM/PM; the @ menu inserts yyyy-MM-dd HH:mm. Unknown placeholders stay as typed.

The report time zone is the report's Time Zone (the service's time zone when none is set); a print uses the time zone of the PI Vision session that requested it.

Report placeholders

PlaceholderValueWhere usable
%ReportName%Report namePage Title (PDF), Worksheet Title (Excel), mail Subject, Message Header and Message Text, Teams Message Header and Message Text
%EventName%Name of the triggering event frame; the Label of a Condition trigger (Condition without one); Manually Created for a manual run of a report with an Event Completed trigger; empty without oneSame as %ReportName%
%ExecutionTime:<format>%Start time of the execution, in the report time zoneSame as %ReportName%
%EventStartTime:<format>%Start of the event or override time range, in the report time zone; left unchanged when there is noneSame as %ReportName%
%EventEndTime:<format>%End of the event or override time range, in the report time zone; left unchanged when there is noneSame as %ReportName%
%DisplayStartTime:<format>%Start of the page's display time range, in the report time zone. Mail and Teams texts use the first pageSame as %ReportName%
%DisplayEndTime:<format>%End of the page's display time range, in the report time zone. Mail and Teams texts use the first pageSame as %ReportName%
%TriggerValue%Condition trigger: value of the first input when the condition was met (Condition becomes true), when the period started (Condition period ends), or the new value (A new value is recorded), with units, for example 92.4 %; empty for other runsSame as %ReportName%
%TriggerCondition%Condition trigger: the condition as text, for example `Tank 3Level > 90`; empty for other runsSame as %ReportName%
%TriggerStart:<format>%Condition trigger: start of the condition period, in the report time zone; empty for other runsSame as %ReportName%
%TriggerEnd:<format>%Condition trigger: end of the condition period (the run time with Condition becomes true), in the report time zone; empty for other runsSame as %ReportName%

The report file Name takes no placeholders. Use the file name Extension instead: Trigger Time, Event Name, Display Start Time or Display End Time, formatted with Pattern (default yyyy-MM-dd HH:mm) in the report time zone.

PlaceholderValueWhere usable
%DisplayName%Name of the printed displayTitle in the Print pane and in the Vision Report Print symbol (Display mode); default title; mail Subject and Message Text of a display print
%ExecutionTime:<format>%Time the print was requested, in the print's time zoneSame as %DisplayName%
%DisplayStartTime:<format>%Start of the printed display time range, in the print's time zoneSame as %DisplayName%
%DisplayEndTime:<format>%End of the printed display time range, in the print's time zoneSame as %DisplayName%

With the Default display time a print sends no time range, so %DisplayStartTime:...% and %DisplayEndTime:...% stay unchanged.