TOC : Script API > JavaScript > JavaScript API > Component > Band > DataSubBand > Method >

 

GetDataSetRowCount

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > Component > Band > DataSubBand > Method >

 

GetDataSetRowCount

 

 

Gets the number of total rows of the given data set.

 

 

 

Prototype :

 

integer GetDataSetRowCount

(

        [ 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 band will be applied by default.

 

If set FieldPath using dataset of the data sub band itself, GetDataSetRowCount will return the same value as its parent band case. The parent bands of a data sub band are the data band or group header/footer band. Therefore, refer to the GetDataSetRowCount function of the data band or group header/footer band.

 

 

 

Example :

 

//ODI name : Sample, dataset name : Orders

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

 

//ODI name can be omitted

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

 

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

  _TraceLn(This.GetDataSetRowCount());

  _TraceLn(This.GetDataSetRowCount(null));

  _TraceLn(This.GetDataSetRowCount(""));

 

 

 

Available Events :

 

OnBind,  OnStartBind