on 11-22-2011 11:40 AM
Hi all gurus,
I have to change dynamically a certain DROPDOWN_BY_KEY element, removing some of the available keys.
This is quite a simple question; how can I get the VALUE_SET associated to an attribute?
Given a context node, and the corresponding context node info, with an attribute "attr" , I know I can set a value_set by using the method:
context_node_info->SET_ATTRIBUTE_VALUE_SET .
But how can I GET that value set ? I've seen there's no GET_ATTRIBUTE_VALUE_SET() method.
In debug I've seen the value set is populated with several keys; I'd like to get them at runtime in order to check their "consistency" and eventually update the attribute value set.
Can anyone suggest me a way? Thanks .
Hello,
To retrieve the value set, first call the method get_attribute of IF_WD_CONTEXT_NODE_INFO passing the attribute name.
You will get the attribute info of type WDR_CONTEXT_ATTRIBUTE_INFO. The structure WDR_CONTEXT_ATTRIBUTE_INFO has a field value_set which is what you need if i understood correctly.
Hope this helps!
Best Regards,
Srilatha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks mates, problem solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I guess you can use method GET_ATTRIBUTES.
Thanks,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.