cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass Dynamic input value in view

former_member187227
Participant
0 Kudos

Hi all,

     I'm working in HCP application, in the master view i want to pass the dynamic input value through item set, there pass the value directly like '00003001' but in that place have to pass input dynamic value and cal the oData service to display the data in master view Whether it's possible please suggest me some idea. i attach the code snippet here. Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

Hello Vinothkumar,

you wanna filter the list of your UI5 app?

You can do that using the sap.ui.model.Filter class. Create an instance with your required filter value and apply it to the binding of the list. sap.ui.model.FilterOperator contains all possible filter operators.

An example can be found in the UI5 tutorial regarding filtering: OpenUI5 SDK - Demo Kit

The coding has to be done in an appropriate method of your controller of course.

Best Regards,

Florian

former_member187227
Participant
0 Kudos

Hi Florian Pfeffer,

            Sorry, i want to call the oData service the with dynamic input value..

pfefferf
Active Contributor
0 Kudos

But that would be done by applying the filter to the binding.

former_member187227
Participant
0 Kudos

Hi Florian Pfeffer

         ok let me try that option and intimate.