sapui5

smart filter bar value help search


In the following Smart Filter Bar example when clicking on the Company Code value help, what is the purpose of the search field? It doesn't do anything when I am trying to use it. I am trying to implement similar in my app but it is not working either. enter image description here


Solution

  • I explain this in terms of OData request.

    If you enter "Value1" in the basic search field:

    search-focus=CompanyCode&search=Value1

    If you type "Value2" in the Company Code value help:

    $filter=(CompanyCode eq 'Value2')&search-focus=CompanyCode&search=

    If you enter values in both fields:

    $filter=(CompanyCode eq 'Value2')&search-focus=CompanyCode&search=Value1

    Hope this helps. Thank you.