cancel
Showing results for 
Search instead for 
Did you mean: 

Attaching search help to dynamically created input field

d060155
Employee
Employee
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

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

Answers (0)