SCREEN FUNCTION DYNAMICS - EVENTS FOR CHARTS

  

DEVELOPER

Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Screen Function Dynamics Charts > Screen Function Dynamics - Events for Charts

The chart is generated based on the data that comes from the standard PROIV Selection Cycle. The rows in a selection cycle represent data records. Alternatively for Meter chart, you can manually set the data with a range of values. See instructions for more information.

You must associate the selection cycle with a chart object. At runtime, the first column in the selection cycle is hidden, and is used to hold the data from the row that is clicked, the second column is visible but the data is used to represent labels or legends (depends on chart type), the other columns represent data so they must hold the numeric data.

You can define the following events or the process points for the chart:

On Focus - The logic is executed when the chart gets focus.

Lost Focus - The logic is performed when the chart loses focus.

Right Click Menu – The associated menu appears when you right-click on the chart.

Note: Meter charts cannot be clicked at runtime, so do not support Custom and Standard validation.  The On focus and Lost focus logic points and the right-click menu are still available for Meter chart.

 

1.    Double-click the chart object.
The Chart properties window appears.

2.    Click Events tab.

3.    By default, the chart’s selection cycle name appears under the Associated Selection Cycle group. To modify, enter or select the selection cycle you want to associate with the chart.

Note: Click Global check box to select a global function.

4.    For Meter charts, do either of the following based on the Meter Source:

a.    To modify the selection cycle, on the Meter Source list, click Cycle and select a selection cycle under the Associated Selection Cycle group.

b.    To configure values, on the Meter Source list, click Values and enter / select the values / variables for the Minimum, Maximum, Needle 1, Needle 2 and Needle 3 as required.

5.    To set up the process points for the chart:

a.    On Focus: Enter the logic id for the chart to perform when it gets focus.

b.    Lost Focus: Enter the logic id for the chart to perform when it loses focus.

c.     Right Click Menu: Enter or select the menu which appears when you right-click on the chart.

d.    Click OK.

Comment on this topic

Topic ID: 500695