Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

This setting can only be changed by an admin!

Custom Date Ranges

An administrator has the possibility to configure custom Date Ranges with absolute or relative timestamps in /PIVision/Scripts/app/editor/symbols/ext/libraries/weruPIVisionSuiteConfig.js:

Code Block
var weruTimePicker = {
	yearButtonCount: 10,
	customButtons: [
		[
			["Last 2 Days",'-2d','*']
		],
		[
		    ["Easter 2022",'2023-04-15T00:00:00Z','2023-04-18T00:00:00Z'],
			["Christmas 2022",'2023-12-24T00:00:00Z','2023-12-27T00:00:00Z']
		],
	]
};

The arrays in the customButtons array define separate groups which get displayed underneath each other.

Each group can consist of multiple buttons. The first string in the definition corresponds to the display name that the user sees in PI Vision. The second parameter is the start timestamp and the third one the end timestamp.

These timestamps can be given in relative formats with “*” or in absolute formats with UTC timestamps.