$.udb(ds).trigger()
note
This article is about the trigger() function of the DataSourceContainer object.
$.udb(ds).trigger()
Triggers an event on the data sources in the data source collection.
Returns a UdbDsc object which is an array of UdbDataSource objects.
Syntax
$.udb( *ds* ).trigger( *eventType*, *data* )
The optional ds is a data source selector.
The required eventType is a string that identifies the event to be triggered. The possible values for the 'eventType' parameter are described in the Events reference section.
The optional data is an array of additional parameters to pass along to the event handler.
Example
$.udb('EMP').on('rowselect', (event, r) => {
alert('Row: ' + r.index);
});
let rc = $.udb('EMP').rows('current');
$.udb('EMP').trigger('rowselect', { index: rc.index() });