TOC : Script API > JavaScript > JavaScript API > GeneralScript > Page > Method >

 

GetPageIndexInReportTemplate

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > GeneralScript > Page > Method >

 

GetPageIndexInReportTemplate

 

 

Gets the page index (zero-based index) based on the report in which the specified page is located.

 

 

 

Prototype :

 

integer GetPageIndexInReportTemplate

(

        No Arguments

)

 

 

 

Reference :

 

Though multiple report files have been bound as a report, the page index of a report template (i.e., OZR file) will be returned.

 

Since the page index starts from zero (0), show a page number as sum of return value plus 1.

 

 

 

Example :

 

var objPage = This.GetPage();

_TraceLn(objPage.GetPageIndexInReportTemplate());

 

 

 

Available Events :

 

OnAddToPage,  OnCheckValidity,  OnClick,  OnEndBind,  OnFocus,  OnKillFocus,  OnLocationUpdated,  OnValueChanged