Skip to Content
-1

Data Binding

May 08, 2017 at 06:40 AM

41

avatar image

Hello friends,

Here I have attached a image displaying existing data from a northwind database. Now I want to add a new data in categories(Master view).Please help me to do that.

kind regards,

Malathi. P11.png

11.png (104.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sharath M G May 08, 2017 at 06:49 AM
1

You may have directly bound the results from oData to the Categories list in the master view.

Create a local model variable. ex: var catModel of type JSONModel. Trigger the service and bind the results of the service to the local model.

Then, bind this local model path to the categories list.

Tip: At every step debug the code in the browser to check if the data is retrieved from backend service and then bound to the local model.

Regards,

Sharath

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Thank you Sharath,

I will try this

0

Hi sharath,

I have tried the way you said. As I am a beginner, Can you please explain it clearly.

I don't know exactly where to bind the data because there is a path already exists.

Could you please share any examples.

Kind Regards,

Malathi.P

0
0