on 04-07-2016 5:18 PM
Hi Experts,
Could you please explain how to create a dropdown in search GUIBB?
In Form UIBB it is configurable - but couldn't find a option for the same in search uibb.
Hi Soumya,
In the feederclass of your search GUIBB you'll find a method IF_FPM_GUIBB_SEARCH~GET_DEFINITION. Try this code :
data: ls_field_descr_attr like line of et_field_description_attr,
lt_set type fpmgb_t_namevalue,
ls_set type fpmgb_s_namevalue.
ls_field_descr_attr-name = <name of your field>.
* set the type to enumeration
ls_field_descr_attr-is_of_type = if_fpm_guibb_search=>gc_attribute_types-enumeration.
* Fill the value set of the enumeration
ls_set-name = 'Item 1'.
ls_set-value = '01'.
append ls_set to lt_set.
ls_set-name = 'Item 2'.
ls_set-value = '02'.
append ls_set to lt_set.
ls_descr_attr-enumeration = lt_set.
append ls_descr_attr to et_field_description_attr.
Best regards
Liesbeth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have used the above logic in my code.(SEARCH UIBB - GET_DEFINITION) method. But if i select the blank space from the drop down after selecting any values, input field reset to the previously selected value from value set. Its not accepting blank space for 2nd time.
Could you please let me know is anything else needs to be done in the code.
Thanks in advance.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
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.