cancel
Showing results for 
Search instead for 
Did you mean: 

disable searchhelp icon in the text input field which is in the searchhelp

Former Member
0 Kudos

Hello,

I have created a free programmed search help component. Once if you bind it

to any numeric field in your component and press search help then a calculator

pops up. One problem what I am having is the display of this calculator which shows

the entered number (it is a dynamic created input field)

has an icon where you can press for a search help. How can I

disbale that. It dumps if you try to press this search help icon with teh message

Component 'Usage USAGE_SH' does not exist. It tries to call a search help in search help.

method WDDOMODIFYVIEW .

  data lo_tc type ref to cl_wd_transparent_container.
  data lo_inputfield type ref to cl_wd_input_field.

  if first_time = abap_true.
    lo_tc ?= view->get_element( 'TC_INPUTFIELD' ).

    data l_binding_string type string.

    CONCATENATE `CALCULATOR.` WD_COMP_CONTROLLER->value_help_listener->f4_attribute_info-name
      into l_binding_string.

    lo_inputfield = cl_wd_input_field=>new_input_field(
         bind_value             = l_binding_string
         enabled                = abap_true
         id                     = 'VH_INPUT'
         length                 = '40'
         read_only              = abap_true
         view                   = view
*        visible                = E_VISIBLE-VISIBLE
*        width                  = width
    ).
    data flow type ref to CL_WD_FLOW_DATA.
    flow = CL_WD_FLOW_DATA=>new_flow_data(
*        cell_design = E_CELL_DESIGN-PADLESS    " CELL_DESIGN
        element     = lo_inputfield
        id          = 'FLOW_ID'
*        v_gutter    = E_V_GUTTER-NONE    " V_GUTTER
    ).

    lo_inputfield->set_layout_data( flow ).

    lo_tc->add_child( lo_inputfield ).
  endif.
endmethod.

Edited by: Ilhan Ertas on May 19, 2009 4:56 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member40425
Contributor
0 Kudos

Hi,

You can add following code.

data lo_nd_info type ref to 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 = '101' " 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

I hope it helps.

Regards,

Rohit

Former Member
0 Kudos

Rohit Makkar

thank you.

regards

ertas

Answers (1)

Answers (1)

Former Member
0 Kudos