List CurrentItem - Visible Property

Show or hide the list item

Member of List CurrentItem (PRIM_MD.ListCurrentItem)

Data Type - Boolean

Details

The Visible property controls whether a cell in a column is visible.
 
To hide items by default when added to the list, the Visible property of the column can be set to false.

Example

When a value is entered, the items in the list are hidden if the value number entered isn't in the item value.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(569) Width(633) Theme(#SYS_THEME) Layoutmanager(#LayoutPage)
 
    Define_Com Class(#PRIM_TBLO) Name(#LayoutPage)
    Define_Com Class(#PRIM_TBLO.Row) Name(#LayoutPageRow) Displayposition(1) Parent(#LayoutPage)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutPageColumn) Displayposition(1) Parent(#LayoutPage)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutPageItem) Column(#LayoutPageColumn) Manage(#List) Parent(#LayoutPage) Row(#LayoutPageRow)
    Define_Com Class(#PRIM_TBLO) Name(#LayoutList)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutListColumn1) Parent(#LayoutList) Displayposition(1)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutListColumn2) Displayposition(2) Parent(#LayoutList) Units(Pixels) Width(120)
    Define_Com Class(#PRIM_TBLO.Row) Name(#LayoutListRow) Parent(#LayoutList) Displayposition(1)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutListItem1) Parent(#LayoutList) Row(#LayoutListRow) Column(#LayoutListColumn1)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutListItem2) Column(#LayoutListColumn2) Manage(#ListRaisedButton) Parent(#LayoutList) Row(#LayoutListRow) Sizing(FitToWidth)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutListItem3) Alignment(TopLeft) Column(#LayoutListColumn1) Manage(#ListSpinEdit) Parent(#LayoutList) Row(#LayoutListRow) Sizing(None) Flow(Down)
 
    Define_Com Class(#prim_md.List) Name(#List) Parent(#COM_OWNER) Displayposition(1) Tabposition(1) Left(0) Top(0) Height(569) Width(633) Layoutmanager(#LayoutList) Rowheight(138)
    Define_Com Class(#PRIM_MD.ListSpinEdit) Name(#ListSpinEdit) Caption('Caption') Displayposition(3) Dragstyle(None) Left(0) Parent(#List) Tabposition(1) Top(0) Height(48) Width(513) Source(#xDemoNumber) Helperposition(None)
    Define_Com Class(#PRIM_MD.ListRaisedButton) Name(#ListRaisedButton) Caption('Delete') Displayposition(1) Dragstyle(None) Left(513) Parent(#List) Tabposition(3) Top(48) Height(42) Width(120)
 
        Evtroutine Handling(#Com_owner.CreateInstance)
 
            Begin_Loop Using(#xDemoNumber) From(0) To(100)
 
                Add_Entry To_List(#List)
 
                #ListRaisedButton.CurrentItem.Visible := #xDemoNumber.mod( 2 ) = 0
 
            End_Loop
 
        Endroutine
 
End_Com

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2