List Image Column Current Item (PRIM_LIST.ImageCurrentItem)

Provides access to the Image for the current list item

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

Details

Prim_List.Image is a column in a List used to display images.

Each column type has a corresponding Column class that provides access to the individual entries in the column.

The image 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.

An image column is created whenever an Image control is dropped on the list.

If a Blob 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. If the field value at run time contains a valid image file, the image will be shown. This is a simple and convenient shortcut that simplifies the processing of text and image data when being read from a database.

Example

This example shows a 4 column list, each using a repository field as the source.

The image column has a source of a Blob field EMPTHM. This is rendered as an image at runtime.

     Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864) 

Define_Com Class(#PRIM_LIST) Name(#List) Displayposition(1) Left(8) Parent(#COM_OWNER) Tabposition(1) Top(8) Height(433) Width(841) Rowheight(28) Rowlines(False) Columnlines(False)
Define_Com Class(#PRIM_LIST.Image) Name(#ColumnEMPTHM1) Displayposition(1) Parent(#List) Source(#EMPTHM) Columnwidth(43) Imagesizing(BestFit) Cellmargintop(2) Cellmarginbottom(2)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnEMPNO1) Displayposition(2) Parent(#List) Source(#EMPNO) Columnwidth(104)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnSURNAME1) Displayposition(3) Parent(#List) Source(#SURNAME)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnGIVENAME1) Displayposition(4) Parent(#List) Source(#GIVENAME)

Def_List Name(#Employees) Fields(#Empno #Surname #Givename #Empthm) Type(*working) entrys(*Max)

Mthroutine Name(Load)

Define_Com Class(#xDemoDataServices.GetEmployees) Name(#GetEmployees)

#GetEmployees.ExecuteAsync( #Employees )

Evtroutine Handling(#GetEmployees.Completed)

Selectlist Named(#Employees)

Add_Entry To_List(#List)

Endselect

Endroutine

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)

Image

Repository enrolled image to show in the control

ImageAlignment

Position of the image within the view port

ImageFileName

File name of the image

ImageHeight

Height of the image. See ImageUnits

ImageLeft

Left position of the image. See ImageUnits

ImageOpacity

Percentage Opacity of the image

ImageSizing

Defines how the original image is sized

ImageTop

Top position of the image. See ImageUnits

ImageUnits

Specifies whether the image is measured using pixels or percentages

ImageWidth

Width of the image. See ImageUnits

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)

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

  • No labels