Class Description: Views are those entities that hold the actual business data of the end users. Hence this layer may or may not require server calls to fetch the business data from the server. Since the UI here renders the actual business data, the business app developers will be more interested in configuring UI related functionalities like cell click, context click, etc. It becomes the prime responsibility of the component developers to raise these events with appropriate JSON data.

...

For chart view, a JavaScript object containing the following information is expected:

'VIEW_ID': The view ID of the chart component

'X_LABEL': The x-axis label corresponding to the drill-down operation

'X_VALUE': The x-axis value corresponding to the drill-down operation

'Y_LABEL': The y-axis label corresponding to the drill-down operation

'Y_VALUE': The y-axis value corresponding to the drill-down operation

...

  • cellsingleclick → The event that needs to be raised when the user performs a single-click on any of the records in the view.

              Supported views: LIST, PAGING, CLASSIC-GRID

              Arguments to be passed: record → The JSON of the record on which the action has been performed.

  • groupcontextmenuclick → The event that needs to be raised when the user performs a context click on any of the records in the group view.

              Supported views: GROUP, ADVGROUP

              Arguments to be passed: record → The JSON of the record on which the action has been performed.

  • groupdoubleclick → The event that needs to be raised when the user performs a double-click on any of the records in the group view.

              Supported views: GROUP, ADVGROUP

              Arguments to be passed: record → The JSON of the record on which the action has been performed.

  • forminitialized → The form event allows the user to do certain operations when the form view has been just initialized.

Supported                Supported views: FORM

              Arguments to be passed: fm → The form manager object that corresponds to the configured form ID.

  • formbeforeinitialize → The form event that allows the user to do certain operations before the form view has been initialized.

Supported                Supported views: FORM

                Arguments to be passed: fm → The form manager object that corresponds to the configured form ID.

  • treeclick → The event allows the developers to do certain business operations while a tree panel has been clicked.

                Supported views: TREE

Arguments                Arguments to be passed: nodeId → The ID of the tree node that is clicked.

  • graphdrilldown → The drill-down event on charts that allows the developers to perform certain business operations when a chart element has been drilled down to reveal more information.

              Supported views: CHART

Arguments              Arguments to be passed: object with the following information:

'VIEW_ID': The view ID of the chart component

'X_LABEL': The x-axis label corresponding to the drill-down operation

'X_VALUE': The x–axis value corresponding to the drill-down operation

'Y_LABEL': The y-axis label corresponding to the drill-down operation

'Y_VALUE': The y-axis value corresponding to the drill-down operation

The following table provides a mapping of the view types and the supported business events:

...