Creating a JS Class for App

When an App is created in Canvas, it does not expect any JavaScript code to be created by default. The following details are provided for scenarios where there is a need to listen to user interaction with the App and handle those events as appropriate.

The following sample code is a simple JS class for an App with the Id BEN_SUMMARY_LIST. Assuming the file name is beneficiarySummaryClassicList.js

CWEH.registerHandler('BEN_SUMMARY_LIST', CWEC.CELL_CLICK, function(colId, colValue, rowData)
{
	// Cell click logic goes here
}); 

Refer the following pages: