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.
...
on demand file set id = MV_(framework Id)_(VIEW_TYPE),
For example, if a component developer is trying to develop a List view component in jQuery UI framework, the file set ID would be MV_jqui_LIST.
Registry Signature:
CLCR
Code Block | ||
---|---|---|
| ||
CLCR.registerCmp({'COMP_TYPE':'<<VIEW_TYPE>>'}, <<Your view class name>>); |
APIs to be supported: NA
Events to be raised: The list of available events and the view event mapping for component developers are as follows:
- viewchange → The event lets the business app developers perform certain operations when the view is being activated or being switched.
Supported Supported views: All
Arguments Arguments to be passed: view ID → of the view that is being activated
- cellclick → The event that needs to be raised when the user performs a double-click on any of the records in the view.
Supported Supported views: LIST, PAGING, CLASSIC-GRID
Arguments Arguments to be passed: record → The JSON of the record on which the action has been performed
- contextclick → The event that needs to be raised when the user performs a context click on any of the records in the view.
Supported Supported views: LIST, PAGING, CLASSIC-GRID, CHART
Arguments Arguments to be passed:
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
For all the other supported views,
...
- 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: 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
...