on 05-19-2009 3:54 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.