.execute() |
Executes a function in the context of this row set, even if this row set is not the selected one. This allows e.g. operations on records of this Rowset without disturbing the current (actual) selection of a row set. Returns the 'this' object. Syntax
The required function is the function executed.
Example var rowSet = $.udb(this.dsId).rowSet(pRef); rowSet.execute( function(){ if ($this.hasClass("previous")) dsi = rowSet.dataSetIndicator - 1; else if ($this.hasClass("next")) dsi = rowSet.dataSetIndicator + 1; else dsi = $this.prop("count"); if (dsi) rowSet.gotoDataSet(dsi); } ); |