/
DatePicker

DatePicker

Functionality of the Tool

This control is used to change the time range of the PI Vision display with a few clicks. For this purpose, the buttons in the DatePicker are used directly to quickly display, for example, the first quarter of the current year or a specific month of a past year.

Default Configuration

The configuration file “weruPIVisionSuiteConfig.js” is located on the PI Vision Server and contains the default configuration for the PI Vision Suite:

/PIVision/Scripts/app/editor/symbols/ext/libraries

In the "weruTimePicker" section, the number of years for which year buttons are generated in the past can be specified. The default value is 10.

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:

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.

Related content

Werusys Industrieinformatik Institut für angewandte Systemanalytik und
Industrieinformatik GmbH & Co. KG 👽
Kaiser-Wilhelm-Ring 40
50672 Köln

Tel.: +49 (0)221 97 03 48 – 0

kontakt@werusys.de
www.werusys.de