Skip to Content
avatar image
Former Member

Simple Value Selector

Hi All,

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

Regards,

TG

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 18, 2007 at 01:25 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Mar 21, 2007 at 04:46 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 22, 2007 at 12:15 PM
    Add comment
    10|10000 characters needed characters exceeded