on 05-12-2020 1:03 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use
this.getOwnerComponent().getModel()
Regards
Anmol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.