FeatureChooser

This topic provides you with information concerning the feature chooser as well as information about its properties.

Note: The Feature Chooser displays only features along with their attributes. Using VolatileInstances makes it possible for you to add attributes to this VolatileInstance and to display any kind of information in the Feature Chooser.

This page discusses:

See Also
Creating a Knowledgeware Dialog Box
About Widgets

Layout Design

A feature chooser enables you to select objects inside a proposed list.

Properties Explanation
Filtered Type
Is Enabled Defines whether the widget is enabled or not.
Is Shown Sets whether the widget is visible or not.
AttachedToBottom Sets whether the widget is attached to the bottom side of the grid.
AttachedToleft Sets whether the widget is attached to the left side of the grid.
AttachedToRight Sets whether the widget is attached to the right side of the grid.
AttachedToTop Sets whether the widget is attached to the top of the grid.
ConstantHeight Sets whether the widget has a constant height.
ConstantWidth Sets whether the widget has a constant width.
Title Corresponds to the title or to the text content of the widget.

Knowledge Items

Items Explanation
Visibility Widget display.
Sensitivity Activation of the widget ( react to user interactions or not).
ChosenItems List of selected items. Dynamically add or remove elements with the language changes the selection.
SelectedIndices List of indexes of the selected items. Dynamically adding or removing indices with EKL changes the selection.
ProposedItems List of items to display. Dynamically adding or removing items with EKL changes the content of the list.
TypeRestriction String that displays only the elements of a given type.
Height Height of the widget in pixels.
Width Width of the widget in pixels.
PresentedAttributes Names of attributes to display in columns separated by commas. Example to display the name and color : Name, Color.

Renaming Columns
If you want to rename one or more columns, add a CATNls file with the feature chooser name to the resource container of the know-how apps component. The new column names must be entered as follows: Original_Name="New_Name". The original names are those you can find in the Presented Attributes attribute (separated by commas) of the Feature Chooser. Use Import Files to add this file to the component. In the example below, the CATNls file name is FeatureChooser1.CATNls.

Adding an Icon

To add an icon, enter an icon name in the columnName_Icon attribute. In the example below, the first feature of the chooser is the icon named MyOwnIcon.

set f= NewFeatureChooser\ChosenItems[1]
f.SetAttributeString("Name_Icon","MyOwnIcon"

You can add icons dynamically on selection events and have the icons changed when you click the features. To do so, create a VolatileInstance and add attributes for the icon.