cancel
Showing results for 
Search instead for 
Did you mean: 

odata Model

0 Kudos

hello experts .

i am trying to use the unnamed odata model that i created in the manifest.json

i want to bind data from the default odata model to a smart form WITHOUT showing initial values and without using the CreateEntry("/entitySet("XXXX")).

i dont know how to get the default model and bind data .

i tried :

var oModel = this.getModel("unnamed"); but it is undefined

best regards

Accepted Solutions (1)

Accepted Solutions (1)

mateuszadamus
Active Contributor
0 Kudos

Hi ibti

Please check this link, seems like a very similar question:

https://answers.sap.com/questions/12538321/how-to-access-named-models-defined-in-manifestjson.html

regards,

Mateusz

Answers (1)

Answers (1)

former_member540067
Active Participant

Use

this.getOwnerComponent().getModel()

Regards

Anmol