Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section shows how field visualizations can be used in lists:

...

Grid Control

The LANSA Grid offers the most complete feature set for Field Visualization in a List component. Any cell of the grid can be visualized as per the rules for the column. As the grid offers the full feature set of Field Visualization functions it is with this component that most of the samples to follow will use.

List View Control

The LANSA List View control also offers the full feature set of Field Visualization but they are subject to the limitations of a ListView. Limitations include:

  • ListView must be have ViewStyle(Report).
  • Only Column with DisplayPosition(1) is editable.

Tree Control

The LANSA Tree Control only allows Edit Appearance capabilities of Field Visualization. This is because a Tree Control must always look like a Tree Control.

...

Display Appearance

Defines how the item is to be drawn. DisplayAppearances include:

  • Check Box
  • Edit
  • Image
  • ImageAndText
  • MultiLine Edit

Edit Appearance

Defines how the item is to be edited. This is distinct from DisplayAppearance as you have a greater choice of options to choose from with EditAppearance. EditAppearances include:

  • Check Box
  • Edit
  • Image
  • ImageAndText
  • MultiLine Edit
  • ReusablePart
  • SpinEdit

Editor Part

The name of the component to be used for editing when the EditAppearance is set to ReusablePart. The part entered must conform to the following rule:

  • Reusable Part must have a default property. It is through this property that the current value will be set and get values in the list.

UsePicklist

This property has been added to PRIM_EVEF, PRIM_EVSE, PRIM_GDCL, PRIM_LVCL & PRIM_TVCL. It is a design-time only property. The purpose of this property is to specify whether the picklist of a field, once specified, is to be used as part of the formatting for the relevant component.

The primary purpose of this property is seen as a way to introduce Field Visualization concepts bit by bit to a large system. Older components can work as they always have with UsePicklist=FALSE whereas new components can have UsePicklist=TRUE to gain access to new functionality.

Editor

The actual Editor used by the column.

...

Example:A PRIM_EVSE ( SpinEdit ) has been defined for a numeric field that also includes a Picklist. If the UsePicklist property is FALSE then when visualized the SpinEdit will work as normal through the range of allowable numbers. If UsePicklist=TRUE then the SpinEdit will cycle through the picklist values.

...