Skip to Content
avatar image
Former Member

Dropdown in Search GUIBB

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 08, 2016 at 10:07 AM

    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


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      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.