cancel
Showing results for 
Search instead for 
Did you mean: 

Set/Get ODATA Model in Component.js

tamilselvanm
Participant
0 Kudos

Hi Guys,

I need to use global model and declared the odata model in component.js.

I am reading the global model in controller file but the OData call is failing.

Component.js

Controller.js

Regards,

Tamilselvan

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

why don't you put the model in manifest?

AlexNecula
Active Contributor
0 Kudos

You need to check the request in the developer tools. Check what the response and the error log say.

tamilselvanm
Participant
0 Kudos

Hi Alex,

It seems the request is correct in developer tools.

Regards,

Tamilselvan

AlexNecula
Active Contributor
0 Kudos

Hi tamilselvanm, I can see in your request that it failed: "HTTP request failed".

tamilselvanm
Participant
0 Kudos

Hi Alex,

I updated the OData URL in component.js and OData call is success in Controller page.

I set the named model in View1 and its data's are not passing to View2 table.

Kindly help.

Regards,

Tamilselvan