cancel
Showing results for 
Search instead for 
Did you mean: 

Difference b/w DropDownByKey and DropDownByIndex

Former Member
0 Kudos

Hi,

Can any one clear difference between DropDownByKey and DropDownByIndex in Webdynpro. How that is exactly working. Real time example will be helpful.

Thanks,

Deepak

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dropdown by key is a UI element which is having key-value pair. You can put this key- value using the SVS service or from the dictionary simple type.

One context variable(not a node) is sufficient to store all the values for this.

If u r using dictionary values, assign the dictionary type to this context variable.

For SVS, load the values to this context variable using the code.

Then bind this context variable to DrodownbyKey's Value.

For a dropdown by key, after loading the values( either from dictionary or by SVS ) , if you get the value, you will be getting the key for the corresponding value.

In the same way, if u set a key present in dropdown, it will automatically display the corresponding value.

Dropdown by Index gets the value from node.There is no key-value pair. We can load the values to it in the same way we load values to a table.(ie. By from a context node)

Answers (1)

Answers (1)

Former Member
0 Kudos

Javadoc?

Armin