Item Selector
In Bootstrap (TBS) and JQuery Mobile (JQM), the values are listed in a drop-down.
The Item selector returns the group of selected values in the same order as they were selected. You can also rearrange the order of the selected values.
The form manager's getvalue (fm.getValue(ITEM_SELECTOR_ITEM_ID)) provides the user selected values.
- Form Items > Data Selection > Item Selector.
- You can perform any of the following steps to add values to the Item Selector:
- Managing List of Values (LOV) for Form Fields
OR - Adding values through the form designer
- Managing List of Values (LOV) for Form Fields
Click the SETTINGS icon of the Item Selector item. In the pop-up text box, type the values in the following format:
1 (rawkey) : 1 (rawvalue) (for example, 1 : Yes)
You can specify multiple values by using comma to separate the values (for example, 1 : YES, 2 : NO, 3 : MAYBE)
- Only raw values get displayed in the box. The raw keys do not get displayed.
- To select a view, click View ID lookup and select the view type of your choice.
- In the Key Column field, enter the column ID from the selected view that stores the value selected in back-end.
- In the Value Column field, enter the column ID from the selected view that displays the value in the Combo drop-down.
- In the LOV Category field, specify the LOV (List of Values) Category.
- In the LOV Parent ID, specify the Parent ID of the selected LOV (List of Values) Category.
OR
- Adding values through data-support class of the form
Item Selector allows adding two types of values through data-support class of the Form:
1. Pre-Defined data values (See Adding Pre-Defined Data Values)
2. Dynamic data values (See Adding Dynamic Data Values)
After creating the class, add the class path of the data support class in Form tab>Data Support Class in the form designer.
The following table provides information about the properties that are applicable to this form item:
# | Property | Description | Sample Value |
---|---|---|---|
1 | Form ID | Unique ID of the Form on which you want to place the Form Item. | LOAN_DTL_FRM |
2 | Item ID | Unique ID to the Form item. | LOAN_INFO_PANEL |
3 | Item Type | To identify the item type in a form. | ITEMSELECTOR |
4 | Channel | Assigns the form item compatibility for various devices | Desktop / Tablet / Mobile |
5 | Bundle Key | Name of the key associated with the property file which provides the localized label text for the current form item. | |
6 | Plain Label | Text entered in Plain Label field appears as the label of the form item without the resource bundle key translation. 18.1: If you are using the property files, leave the Plain Label field as blank. Display Name Key is the property-driven label key for the form item. 19.1: In Canvas 19.1, the Display Name Key field is a configuration-driven label key for the form item. See About Display Name Key and Plain Label from 19.1 and Managing Display Names for Forms for more information. | |
7 | Display Name Key | LOAN INFO | |
8 | Edit | Selected: Renders the Form in edit enabled mode. | Selected |
9 | Visibility | Selected: Shows the form item on the Form. | Selected |
10 | Help | Selected: Renders the form item with a help icon. | Selected |
11 | Anchor | Defines the size of the form item in terms of percentage (without % symbol). | 50 |
12 | Selected: Allows printing the form item while printing the form. | Selected | |
13 | Column Span | Occupies the specified number of item spaces horizontally for the current item. | 1 |
14 | Label Alignment | Indicates the alignment of the labels of the form items. | Top |
15 | Hide Label | Selected: Hides the label of the form item. | De-selected |
16 | Mandatory | Selected: Shows the red asterisk ({}{*}) on the label of the form item, and converts the particular field as mandatory. | Selected |
17 | Conditional Mandatory | Selected: Shows the blue double asterisks ({}{}) on the label of the form item, and converts the particular field as conditional mandatory. If selected, write the conditional logic in the CFEC.PRE_VALIDATE event. See Form Item Handlers for more information. De-Selected: considers the particular field as normal. If 'Mandatory' is already selected, do not select this property. | De-Selected |
18 | Add Icon | By making use of Add Icon option, you can add an icon to the form item. Perform the following steps for adding an icon to a form item:
| Selected |
19 | Multilingual input allowed | Selected: Supports the multilingual characters to be entered into the form items. | De-Selected |
20 | Switch | Enables you to switch from one form item to another form item along with the applicable properties and their values. To switch from one form item to another form item, execute the steps that follow:
| NA |
21 | Clone | Enables you to create a duplicate of the selected form item along with its applicable properties except for the Item ID. | 2 |
22 | Event Wiring | The Event Wiring option enables you to assign various events for different set of actions. For detailed information on Event Wiring, refer Form Items Event Wiring. |