Display Specific Columns


To display specific columns in the widget, you must use the visibleColumns property. The following is a sample code snippet:

CWEH.registerHandler('CT_ACC_SUMMARY_WGT', CWEC.CTAPPBEFOREINITIALIZE, function()
{
	this.visibleColumns = ['ACCOUNT_NAME'];
}); 
//Here, CT_ACC_SUMMARY_WGT is the Widget ID and CTAPPBEFOREINITIALIZE is the event ID.


The following screenshots show a sample widget in the CTModelHouse mobile application. Here, the Account Name column is made visible in the widget and the Account Type column is hidden.