TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > TextBox > Method >

 

IsDataSetLastRow

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > TextBox > Method >

 

IsDataSetLastRow

 

 

Indicates whether the current row cursor is on the last of the dataset

 

 

 

Prototype :

 

bool IsDataSetLastRow

(

       [ string DataSetPath ]

)

 

 

 

Arguments :

 

DataSetPath

DataSet Path in the form of "ODI name.dataset name"

can be omitted or set to null or ""

 

 

 

Reference :

 

If dataset path is omitted or set to null or "", the dataset path of the TextBox will be applied by default.

 

If call IsDataSetLastRow in a data band in master-detail relationship or group header/footer band, the last row becomes the last of each master or group dataset, not the last of entire dataset. And it returns true whenever master or group dataset has changed.

 

 

 

Example :

 

//ODI name : Sample, dataset name : Orders

  _TraceLn(This.IsDataSetLastRow("Sample.Orders"));

 

//ODI name can be omitted

  _TraceLn(This.IsDataSetLastRow("Orders"));

 

///Dataset path can be omitted or set to null or ""

  _TraceLn(This.IsDataSetLastRow());

  _TraceLn(This.IsDataSetLastRow(null));

  _TraceLn(This.IsDataSetLastRow(""));;

 

 

 

Available Events :

 

OnBind,  OnStartBind