on 02-24-2015 4:02 PM
Hi all,
I have a table having certain attributes and corresponding dictionary search help names. Based on the attribute name I create input fields at runtime and I want to attach the search helps selected from the former table to the dynamically created input field. I would appreciate any help.
lr_input_field = cl_wd_input_field=>new_input_field(
bind_value = lv_bind_value_context
enabled = 'X'
id = lv_input_field_id
* on_enter = co_on_enter
state = lv_state
visible = if_wdl_core=>visibility_visible
tooltip = lv_tooltip
view = ir_view
).
Thanks!
Best regards,
Royce
Hi,
You will be assigning the search help to the context attribute but not the input field! Use set_attribute_value_help( ) method of context node.
sample code:
data lo_nd_info type ref to if_wd_context_node_info.
lo_nd_info = lo_NODE->get_node_info( ). " NODE is the name of context node in which the attribute is
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'ATTR_NAME' " Attribute Name to which the input is bound and want to assign Search help
value_help_mode = '121' " Value help mode 121 for DDIC
value_help = 'ZSH_NAME'. " DDIC Search help name
hope this helps,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.