cancel
Showing results for 
Search instead for 
Did you mean: 

Get a runtime VALUE_SET of a given DROPDOWN_BY_KEY element.

matteo_montalto
Contributor
0 Kudos

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 .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

matteo_montalto
Contributor
0 Kudos

Thanks mates, problem solved

ChandraMahajan
Active Contributor
0 Kudos

Hi,

I guess you can use method GET_ATTRIBUTES.

Thanks,

Chandra