List DateTime Column Current Item (PRIM_LIST.DateTimeCurrentItem)

Provides access to the Date/Time for the current list item

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

Details

Prim_List.DateTime is a column in a List used to display date time data.
 
Each column type has a corresponding Column class that provides access to the individual entries in the column.
 
The entry field for each item can be modified 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 date time column is created whenever a date or time related field is dropped on the list. The Source property will be set to the field and it will be used as a column in the underlying working list.

Example

This example shows a single column list updating each button after it's added to the list.
 
When a button is clicked the current item for the column is accessed and the column caption shows which button was clicked.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864)
 
   Define_Com Class(#PRIM_LIST) Name(#List1) Displayposition(1) Left(64) Parent(#COM_OWNER) Tabposition(1) Top(32) Height(369) Width(609)
   Define_Com Class(#PRIM_LIST.DateTime) Name(#ColumnXDEMODATE1) Displayposition(1) Parent(#List1) Source(#xDemoDate) Showtime(False) Columnreadonly(False)
   Define_Com Class(#PRIM_LIST.DateTime) Name(#ColumnXDEMODA_11) Displayposition(2) Parent(#List1) Source(#xDemoDateTime) Columnreadonly(False) Showtimebutton(True)
   Define_Com Class(#PRIM_LIST.DateTime) Name(#ColumnXDEMOTIME1) Displayposition(3) Parent(#List1) Source(#xDemoTime) Showdate(False) Showdatebutton(False) Columnreadonly(False)
 
   Evtroutine Handling(#Com_owner.CreateInstance)
 
      #xDemoDateTime := #xDemoDateTime.Now
      #xDemoDate := #xDemoDateTime.Date
      #xDemoTime := #xDemoDateTime.Time
 
      Begin_Loop To(10)
 
         Add_Entry To_List(#List1)
         #xDemoDateTime.Currentitem.Checkbox := True
 
      End_Loop
 
   Endroutine
 
End_Com

Properties

NameDescription
CheckBoxCheckbox controls whether the date and time picker is enabled
CheckedChecked indicates whether the check box is selected
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
DisplayAsUTCDisplayAsUTC controls whether the default date and time formatting displays as UTC
EnabledEnable or disable the list item Inherited from List Current Item (PRIM_LIST.CurrentItem)
HintHint to be shown for the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
HintPopupHintPopup to be shown for the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
HintTitleHint title to be shown for the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
MaxDateMaxDate sets the maximum date and time that can be specified
MinDateMinDate sets the minimum date and time that can be specified
MouseOverStyleStyle to be applied when the mouse enters the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
MouseOverStylesCollection of styles to be applied when the mouse enters the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
NameName identifies the component Inherited from Object (PRIM_OBJT)
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentThe 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)
PopupPopup to be shown for the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
ReadOnlyReadOnly controls whether the cell can be used for input
ShowDateShow or hide the calendar button in the control
ShowDateButtonShow or hide the date button in the control
ShowDateButtonImageImage to use instead of the default image
ShowTimeShow or hide the time portion of the control
ShowTimeButtonShow or hide the time button in the control
StyleStyle to be applied to the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
StylesCollection of styles to be applied to the current column/item Inherited from List Current Item (PRIM_LIST.CurrentItem)
ThemeDrawStyleThemeDrawStyle to be applied to the current item in the column Inherited from List Current Item (PRIM_LIST.CurrentItem)
ValueValue sets or retrieves the date and time
VisibleShow or hide the list item Inherited from List Current Item (PRIM_LIST.CurrentItem)

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from List Current Item (PRIM_LIST.CurrentItem)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from List Current Item (PRIM_LIST.CurrentItem)

Methods

NameDescription
SetFocusSets focus to the currentitem in the list Inherited from List Current Item (PRIM_LIST.CurrentItem)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2