on 09-02-2014 8:37 AM
Hi,
I'm using a dropdownbykey element in my webdynpro view.
I've filled it with a valueSet (key , value);
The dropdown is working perfect, but I'm only able to get the selected value out of the dropdownbox.
wdContext.currentContextElement.getSelectedItem();
Is there a way to get the also the key of the element.
For example:
valueSet (1, "test");
with wdContext.currentContextElement.getSelectedItem(); I'm getting "test"
How do I get the key of this element?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi tim van ,
if you have implemented evs properly , then above code should give the key value , i.e accessing an attribute value for which evs is implemented will fetch the key value .
can u please share the complete code how EVS is implemented
Regards
Govardan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What data type returns "getSelectedItem"? Have you created a own SimpleType with enumerations?
Usually you should create a Class representing your SimpleType with enumeration. Then you can access key and value.
Regards
Tobias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.