List Reusable Part Column Current Item (PRIM_LIST.PartCurrentItem)

Provides access to the reusable part for the current list item

Ancestors - List Current Item (PRIM_LIST.CurrentItem)Object (PRIM_OBJT)

Details

Prim_List.Part is a column in a List used to present an instance of a reusable part rather than the typical field based cell.
 
Each column type has a corresponding Column class that provides access to the individual entries in the column.
 
The reusable part for each item can be accessed independently using the current item for the column in the same way that other visual LANSA lists allow the current item for the list to be used.
 
A part column is created whenever a reusable part is dropped on the list. The Design property defines the class of part being used.
 
The *ListFields parameter used in the resuable part will define the data fields for the column.

Example

In this example, a simple part displays an address as a single cell rather than using 4 separate columns.
Begin_Com Role(*EXTENDS #PRIM_PANL *implements #prim_list.IListCellDesign *ListFields #ListFields) Displayposition(1) Height(68) Left(0) Tabposition(1) Top(0) Width(217) Layoutmanager(#TableLayout)
 
   Group_By Name(#ListFields) Fields(#Address1 #Address2 #address3 #postcode)
 
   Define_Com Class(#PRIM_TBLO) Name(#TableLayout)
   Define_Com Class(#PRIM_TBLO.Row) Name(#Row1) Displayposition(1) Parent(#TableLayout)
   Define_Com Class(#PRIM_TBLO.Column) Name(#Column1) Displayposition(1) Parent(#TableLayout)
   Define_Com Class(#PRIM_LABL) Name(#gAddress) Caption('') Displayposition(1) Ellipses(End) Left(0) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(0) Height(68) Width(217) Verticalalignment(Center) Marginleft(2) Marginright(2)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem) Alignment(TopLeft) Column(#Column1) Flow(Down) Manage(#gAddress) Parent(#TableLayout) Row(#Row1) Rowspan(3)
 
   Mthroutine Name(OnAdd) Options(*redefine)
 
      #gAddress := ("&1, &2, &3, &4").Substitute( #Address1 #Address2 #Address3 #PostCode.AsString )
 
   Endroutine
 
End_Com

Properties

Name Description
ComponentClassName ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembers ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternName ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTag Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentType ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeName ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
Enabled Enable or disable the list item Inherited from List Current Item (PRIM_LIST.CurrentItem)
Hint Hint to be shown for the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
HintPopup HintPopup to be shown for the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
HintTitle Hint title to be shown for the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
MouseOverStyle Style to be applied when the mouse enters the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
MouseOverStyles Collection of styles to be applied when the mouse enters the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
Name Name identifies the component Inherited from Object (PRIM_OBJT)
Owner Owner owns this component Inherited from Object (PRIM_OBJT)
Parent The component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
Part Reference to the part instance used in the cell
Popup Popup to be shown for the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
Style Style to be applied to the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
Styles Collection of styles to be applied to the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
ThemeDrawStyle ThemeDrawStyle to be applied to the current item in the column Inherited from List Current Item (PRIM_LIST.CurrentItem)
Visible Show or hide the list item Inherited from List Current Item (PRIM_LIST.CurrentItem)

Events

Name Description
CreateInstance CreateInstance is signalled when an instance of a component is created Inherited from List Current Item (PRIM_LIST.CurrentItem)
DestroyInstance DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from List Current Item (PRIM_LIST.CurrentItem)

Methods

Name Description
SetFocus Sets focus to the currentitem in the list Inherited from List Current Item (PRIM_LIST.CurrentItem)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020