This section shows how field visualizations can be used in lists:
PRIM_GRID (Grid Control), PRIM_LTVW (ListView Control) and PRIM_TRVW (Tree Control) all support Field Visualization. They differ a little in what they allow but if a feature is allowed it can be implemented in the same way as any other control. The following details a little of how these controls differ in their Field Visualization features.
Moving on to how Field Visualization is used in the List components:
The various columns of the List components PRIM_GDCL (Grid Column), PRIM_LVCL (ListView Column) and PRIM_TVCL (Tree Column) all have properties that support Field Visualization. These properties include:
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.
Field Visualization in a List component is somewhat trickier than Field Visualization on a form. Forms are pretty straight forward as you simply add the classes to the field source and then use those classes on a form. You cannot get into too much trouble as you can only access functionality that you have added to your field source. The list components are a little harsher on less experienced users. This is because with a list component all you ever have to work with is a column. This means that the full set of Field Visualizations is always available whether or not they are relevant to the field currently sourced to the column. For this reason greater care should be taken when using Field Visualization in the List components. Ensure you have read all the samples and have a clear understanding of what you are trying to accomplish before proceeding. When in doubt refer to the provided samples for a clue.