cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch data by user input key in SAP UI5 from HANA .xsodata service

rajesh_baldha
Explorer
0 Kudos

Dear Experts,

I am new to SAP UI5 and HANA .xsodata.

I have created one demo application in SAP UI5 and one xsodata service in hana cloud, which prints table data from database to application in ui5 table control.

Now I want to fetch data according to user input key like ID in table.

below are details which I have created.

I don't know which side to change and what to change

Can any one help me to get this problem sort out.?

My Demo application is :

Page :

.xsodata :

Destination :

Data Source :

Model :

View :

Thanks in Advance

Regrads,

Rajesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member365727
Active Contributor
0 Kudos

you have all the data on HANA accessed via xsodata service...now if you want to access a specific record by id this is like applying a filter to the model.

You have to change the code in UI5 and pass the filter parameter to oData query. Checkout the Walkthrough - Filtering tutorial

rajesh_baldha
Explorer
0 Kudos

Hello Srikanth,


Thanksa lot, now it's working.

Regards,

Rajesh

Answers (0)