A script-enabled browser is required for this page to function properly.

SRW.GET_PAGE_NUM built-in function

This function returns the current page number. This is useful when you want to use the page number in the field's Format Trigger property.

Syntax


SRW.GET_PAGE_NUM (page_num);

Parameters

Description

page_num

Is the variable in which you want to place the current page number.

Restrictions

SRW.GET_PAGE_NUM is only meaningful in a format trigger. It has no effect when entered in other places.

Example

Suppose you want to perform a computation based upon a page number. In the field's Format Trigger, you could use the SRW.GET_PAGE_NUM function:


BEGIN
  DECLARE PAGE_NUM NUMBER;
    BEGIN
      SRW.GET_PAGE_NUM (page_num); 
      SRW.SET_FIELD_NUM (0, page_num + 3);
    END;
END; 

See also

About the Reports Builder built-in package (SRW)

SRW built-in package