Open an HDV (trend) Window

If your tag contains a value that can be trended, then you may include a call to PKTrend in the Common module. This will watch for a left-click within the area of the widget and open a Historical Data Viewer window in response.

This code is generally incompatible with the control dialog code, which uses the same mouse button. The first four parameters should match the area as indicated by Left, Bottom, Right & Top because they specify the target area for the mouse. The last parameter is the object value of this point instance.

This function will automatically be disabled when the page is in editing mode.

For example:

((DisableTools || True(TrendPopupDisable)) ? Invalid : Self)\PkTrend(Left, Bottom, Right, Top, \Root, TRUE);