on 01-20-2009 10:40 AM
Dear experts,
i use three select options and they work fine.
In the node of the view i declared the attributes i need and bound a search help (F4 help) to them.
here is the problem.
One attribute has the help visible when i start the application, the other two not.
Can you give me a hint how to solve this ?
Thanks and best regards
René
Hi Rene,
I had the similar question earlier, later what i have found is like this:
1. I have a WDC with three Select options to it.
2. First Select options relates to the first attribute in my context node which takes the Data element as the Data type. For Ex: take BUKRS as the DE. This has pre-defined search help to the DE C_T001.
3. Second select options relates to the second attribute in my context node which takes the string as the data type. I manually assigned the Search help to that attribute 'C_T001'.
4. Thirs Select options relate to the third attribute inmy context node which takes the string as the data type. I manually assigned a Search help to it 'H_T002'.
5. In the WDDOINIT of my view, I have written the code as follows in the bottom of the post.
6. The observation is the search help assigned to the first attribute will be opened with out any problem or additional code to it.
7. The search help assigned to the second one at the context level wont be picked in the select-options.
8. The search help assigned to the third one will be picked if and only if there is manual assignment of the search help at the time of creating a selection field.
Conclusion: So, the search help assignment assigned to the attribute at context level is ignored. It will be considered only if the DE has that search help in the case of select-options.
Hope it is clear and appreciate your feebback.
Regards,
Shashikanth. D
First Select option.
Instantiating the Used component WDR_SELECT_OPTIONS
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_select_options( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
init the select screen
wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
wd_this->m_handler->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false
i_display_btn_execute = abap_false ).
create a range table that consists of this new data element
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'BUKRS' ).
add a new field to the selection
wd_this->m_handler->add_selection_field( i_id = 'BUKRS'
it_result = lt_range_table i_read_only = read_only ).
Second select option.
Instantiating the Used component WDR_SELECT_OPTIONS
DATA lo_cmp_usage1 TYPE REF TO if_wd_component_usage.
lo_cmp_usage1 = wd_this->wd_cpuse_use_select1( ).
IF lo_cmp_usage1->has_active_component( ) IS INITIAL.
lo_cmp_usage1->create_component( ).
ENDIF.
wd_this->m_wd_select_options1 = wd_this->wd_cpifc_use_select1( ).
init the select screen
wd_this->m_handler1 = wd_this->m_wd_select_options1->init_selection_screen( ).
wd_this->m_handler1->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false
i_display_btn_execute = abap_false ).
create a range table that consists of this new data element
lt_range_table = wd_this->m_handler1->create_range_table( i_typename = 'STRING' ).
add a new field to the selection
wd_this->m_handler1->add_selection_field( i_id = 'IF1'
it_result = lt_range_table i_read_only = read_only ).
Third Select options:
Instantiating the Used component WDR_SELECT_OPTIONS
DATA lo_cmp_usage2 TYPE REF TO if_wd_component_usage.
lo_cmp_usage2 = wd_this->wd_cpuse_use_select2( ).
IF lo_cmp_usage2->has_active_component( ) IS INITIAL.
lo_cmp_usage2->create_component( ).
ENDIF.
wd_this->m_wd_select_options2 = wd_this->wd_cpifc_use_select1( ).
init the select screen
wd_this->m_handler2 = wd_this->m_wd_select_options2->init_selection_screen( ).
wd_this->m_handler2->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false
i_display_btn_execute = abap_false ).
create a range table that consists of this new data element
lt_range_table = wd_this->m_handler2->create_range_table( i_typename = 'STRING' ).
add a new field to the selection
CALL METHOD wd_this->m_handler2->add_selection_field
EXPORTING
i_id = 'IF2'
it_result = lt_range_table
i_value_help_type = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
i_value_help_id = 'H_T002'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rene,
According to me i guess you want to set the search help for the atribute which do not have search help set to it . If that is the case then i guess you might be using the add_selection_field( ) method for select options. In that method we have an option to set the search help or OVS into that
call method wd_this->m_handler->add_selection_field
exporting
i_id = 'the attribute name for which you want the serach help option to be set''
I_WITHIN_BLOCK = MC_ID_MAIN_BLOCK
i_description = 'Project Decsription'
I_IS_AUTO_DESCRIPTION = ABAP_TRUE
it_result = lt_range_table
i_obligatory = abap_true
I_COMPLEX_RESTRICTIONS =
I_USE_COMPLEX_RESTRICTION = ABAP_FALSE
i_no_complex_restrictions = 'X'
i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev
i_value_help_id = 'USE_OVS' "if you are using ovs set the OVS name here
I_VALUE_HELP_MODE = 1 "it will disable the f4 functionality
I_VALUE_HELP_STRUCTURE =
I_VALUE_HELP_STRUCTURE_FIELD =
I_HELP_REQUEST_HANDLER =
I_LOWER_CASE =
I_MEMORY_ID =
i_no_extension = abap_true
i_no_intervals = abap_true
i_as_checkbox = abap_false
I_AS_DROPDOWN = ABAP_FALSE
IT_VALUE_SET =
I_READ_ONLY = ABAP_FALSE
I_DONT_CARE_VALUE =
I_EXPLANATION =
I_TOOLTIP =
PLz check the below links for more details. hope you will be more clear.
Working with Select Options in Web Dynpro for ABAP by Abhimanyu Lagishetti
Using Select Options in a Web Dynpro(ABAP) Application by Rich Heilman
Regards,
Sana.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
my problem now is that the field help will only be displayed if its bound to the data element directly.
How can i display the field help for the personnel number. Here the field help is bound to the field itself.
Thanks and best regards
René
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rene,
If you are binding these attributes to the input fields of table thn i dont think you will be able to see the search help button unless you click on the input field... we were facing similar concerns are were not able to sort it out..... if it is simple input fields there must not be any problem..... in that case provide some more details...
regards
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.