Sets the current page.

This viper method also supports the extension viper syntax.


Smartsite SXML CopyCode image Copy Code
this.setcurrentpage(enum position)
this.setcurrentpage(integer pageNumber)

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
page.<id>.setcurrentpage(enum position)
page.<id>.setcurrentpage(integer pageNumber)


Name Data Type Description
position Enum The position.
Enum values:
  • First
    First page.
  • Previous
    Previous page.
  • Next
    Next page.
  • Last
    Last page.
pageNumber Integer The page number.

Return Value


Used in

Macro Description
Paging Paging macro. Holds state for paging through large datasets.
Can be used in combination with existing datatables to page through large datasets.
Use in combination with macros/vipers that return datatables.