Skip to Content
avatar image
Former Member

SAPUI5 value help based on other field on the view

Hello Experts,

I'm learning SAPUI5 and need help here. I have two input fields on a form Company Code and Profit Center. I need to invoke value help select dialog for profit center based company code entered. The service implementation for backend functions are working fine, but need help in UI to make a call and display the filtered list in the select dialog. Any kind of help is highly appreciated.

Thanks,

Shekar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 25, 2017 at 11:56 PM

    Hi Chandra,

    Do you mean you want to filter profit center based on selected company code?

    Regards,

    Tri

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Chandra,

      You could try.

      var companyCodeFilter = new Filter("<your_company_code_field>", FilterOperator.EQ, <company_code_value>)
      this.getView().byId(<your_profit_center_list_id>).getBinding("items").filter(companyCodeFilter);