Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Cell Click event

    Code Block
    languagejs
    CWEH.registerHandler('BENE_WGT', CWEC.CELL_CLICK, function(columnId, value, record)
    {
    	LOGGER.info('The CELL_CLICK event is triggeredcaptured', [columnId, value, record]);
    });
    
    // Here, 'BENE_WGT' is the widget ID.


  • Row Click event

    Code Block
    languagejs
    CWEH.registerHandler('BENE_WGT', CWEC.ROW_CLICK, function(columnId, record, value)
    {
    	LOGGER.info('The ROW_CLICK event is triggeredcaptured.', [columnId, record, value]);
    });
    
    // Here, 'BENE_WGT' is the widget ID.


...

  • Cell Double Click event

    Code Block
    languagejs
    CWEH.registerHandler('BENE_WGT', CWEC.CELL_DBLCLICK, function(columnId, value, record)
    {
    	LOGGER.info('The CELL_DBLCLICK event is triggeredcaptured.', [columnId, value, record]);
    });
    
    // Here, 'BENE_WGT' is the widget ID.


  • Row Double Click event

    Code Block
    languagejs
    CWEH.registerHandler('BENE_WGT', CWEC.ROW_DBLCLICK, function(columnId, record, value)
    {
    	LOGGER.info('The ROW_DBLCLICK event is triggeredcaptured.', [columnId, record, value]);
    });
    
    // Here, 'BENE_WGT' is the widget ID.


...

Code Block
languagejs
CWEH.registerHandler(‘BENE_WGT’, CWEC.CELL_DATA_CHANGE, function(record, columnId, value)
{
	LOGGER.info('firedThe CELL DATA CHANGE event is captured.', [record, columnId, value]);
});
// Here, 'BENE_WGT' is the widget ID.

Context Click Event

A Context Click event is raised when you right-click on a cell, column or row in the widget. For example, when you right-click on a cell of the Widget Activity Summary > Saved widget, a context menu with edit and delete option appears.

Note

For the Context Click event to function, the attribute data-context-click = ”true” must be defined. As we are configuring the template for a column, we need to define the attribute data-column-id = '<Column ID>' as well.

The following is a sample screenshot of the Widget Activity Summary > Saved widget with the context menu enabled.

Image Added

To achieve this you need to define the context event attributes as follows:

Code Block
languagexml
<input
	type = 'text'
	data-context-click = "true"
	data-column-id = 'BENE_ID'
>
<!-- BENE_ID is the Reference Number column's ID. -->

On a Context Click, the column ID is returned followed by the template configuration (value) and the row details as shown in the following image:

Image Added

Note

Whether you define a Cell Click, Row Click, Cell Double Click, Row Double Click, Change or a Context Click event, the data that is returned will be:

  • Column ID
  • Template configuration (value)
  • Current row data