Skip to Content
0

SAPUI5 value help based on other field on the view

Oct 25, 2017 at 09:45 PM

49

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Tri Minh Le Oct 25, 2017 at 11:56 PM
0

Hi Chandra,

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

Regards,

Tri

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Yes Tri,

Based on the company code entered, the value help for profit center should list profit centers only for that company code.

Thanks,

Chandra

0

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);
0