...

Code Block
languagejs
cbx.ns("namespace id"); 
listenerClass = Class(cbx.Observable,
{
	constructor:function(config)
		{
		},
			//Inside the following function, listeners related to all form components are registered. 
			registerHandlers:function()
				{ 
					//Form Listener 
					//this.fm.registerHandler('cbxpremodelload', function (fm, record){ 
					}); 
//Form Item Listener 
// this.fm.registerHandler("cbxdateclear", "<FORM_DATEFIELD_ID>", function (fm, event, 
fieldName, value)
	{
	}); 
	}
});
CFLR.registerListener("FORM_ID", listenerClass); 
	//Form Container Action button listener 
	//*
		CABR.registerHandler('ACTION_BUTTON_ID','CONTAINER_ID', function (config){
	}); */ 

Create a listener payments.intertransfer.js as follows:
cbx.ns("payments"); 
payments.paymentForm = Class(cbx.Observable,
 { 
	constructor : function (config)
		{
			this.fm = config.fm;
		}, 
	registerHandlers:function()
		{ 
	} 
});
CFLR.registerListener("PAYMENT_FORM", cbx.form.listeners.paymentForm); 

CABR.registerHandler('SUBMIT','PAYMENTS_CONTAINER', function (config)
	{
	//Form submit action goes here
	} 
CABR.registerHandler('CLOSE','PAYMENTS_CONTAINER', function (config){
CBXFORMCONTAINER.getActiveFormContainer().close();
	}
});

View the following pages

Page Tree
rootHandling Form Data Submission