List - ShowPages Property

Specifies if list will be displayed in pages

Member of List (PRIM_LIST)

Data Type - Boolean

Details

Showpages allows for List (PRIM_LIST) entries to be displayed over a number of pages.

If ShowPages is selected, pages can be navigated using the arrows located at the bottom of the list.

The number of rows per page is determined by the Rows Per Page property.

The page number can be accessed with the CurrentPage Property.

Example

This example shows a list with 100 entries displayed over 10 pages
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME) Layoutmanager(#LayoutWebPage)
Define_Com Class(#PRIM_TBLO) Name(#LayoutWebPage)
Define_Com Class(#PRIM_TBLO.Row) Name(#Layout1Row1) Displayposition(1) Parent(#LayoutWebPage)
Define_Com Class(#PRIM_TBLO.Column) Name(#Layout1Column1) Displayposition(1) Parent(#LayoutWebPage)
Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem_List) Alignment(TopCenter) Column(#Layout1Column1) Manage(#List) Parent(#LayoutWebPage) Row(#Layout1Row1) Margintop(72)

Define_Com Class(#PRIM_LIST) Name(#List) Columnheaderheight(48) Columnlines(False) Displayposition(1) Height(728) Left(0) Parent(#COM_OWNER) Rowheight(48) Rowsperpage(10) Showpages(True) Tabposition(1) Top(72) Width(1200)
Define_Com Class(#PRIM_LIST.String) Name(#ListColumn) Columnunits(Proportion) Columnwidth(1) Displayposition(1) Parent(#List) Sortonclick(True) Source(#xDemoAlpha128)

Evtroutine Handling(#COM_OWNER.Initialize)

Begin_Loop Using(#xDemoNumber) To(100)

#xDemoAlpha128 := 'Entry: ' + #xDemoNumber.AsString

Add_Entry To_List(#List)

End_Loop

Endroutine

End_Com

See also

All Component Classes

Technical Reference

EPC1420030 V14sp2 November 2018