cancel
Showing results for 
Search instead for 
Did you mean: 

Change context properties at runtime (value_help_id)

Former Member
0 Kudos

Hi,

I have to change the property "value_help_id" at runtime, because different user should see different value help.

So, I can change the properties "visible", "required", "read_only" and "enabled" with help of IF_WD_CONTEXT_ELEMENT->SET_ATTRIBUTE_PROPERTY, but how can I change other properties at runtime? Is it possilbe at all?

Thanks and best regards,

Roman

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer this to change your search help :

data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'ATTR1' " Your attribute Name
value_help_mode = '121' " Valid value help mode
value_help = 'Z187442'. " Search help name

The various possible values that you can pass to value_help_mode are as shown below.

deactivated 101

automatic 111

ddic 121

ovs 131

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Yes you can..You need to get the context attribute reference in IF_WD_CONTEXT_NODE/IF_CONTEXT_NODE_INFO to get the attribute reference...using which we can set teh value help at runtime where you have relevant methods..

Regards,

Lekha.