cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown in Search GUIBB

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

0 Kudos

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.

Answers (0)