cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Value Selector

Former Member
0 Kudos

Hi All,

Can you pls explain me how to create simple value selector?

Regards,

TG

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Thomas,

DropDownByKey provides static data in DropDown and DropDownByIndex makes it dynamic.

<b>DropDownByKey:</b> Is used when u want to use data dictionary type.For this create a dictionary of simple type in the dictionary.

Creating the Simple Type:

Ur project>dictionaries>Data Types-->Simple Types right click and select Create Simple Type.

After entering the name and package, open that and click on "enumeration" tab at the bottom of the same. Now add the Value and Description to be displayed.The created simple type can be used for DropDownByKey.

Binding it to the UI element:

Now create a valueattribute and change the type to the dictionary type(created simple type). Finally bind the DropDownByKey UI element to the value attribute.

<b>DropDownByIndex: </b>Is used while we have to get the data from the database. Here we directly bind the DropDownByIndex UI element to the context node(attribute).

Regards,

Jhansi

Former Member
0 Kudos

The steps are as below:

Create a dictionary simple type containing an enumeration

Create a context attribute of this type

Bind the selectedKey property of a DropDownByKey UI element to the context attribute.

Thanks

Gaurav

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos