cancel
Showing results for 
Search instead for 
Did you mean: 

OData model default View binding

imihailovs
Explorer
0 Kudos

Hello experts,

I am trying to understand where (using UI5 template application) the initial OData instantiation happens. Currently I have a View that was bound to OData entity set via the wizard and I cannot find a code piece anywhere in the application that would init OData model and send an initial request to a backend.

Everything works - I just want to understand the architecture a bit more (and reuse the standard code in other place in an app).

Any input is greatly appreciated!

Best regards,

Ilja.

Accepted Solutions (1)

Accepted Solutions (1)

imihailovs
Explorer
0 Kudos

Well, actually the SDK itself performs the binding for ALL models configured in manifest.json file automatically. If a breakpoint is placed in ODataModel.js class - it is possible to trace the Call Stack.

Answers (1)

Answers (1)

former_member484715
Contributor
0 Kudos

Hi Ilja Mihailovs,

In SAPUI5, mostly the initial OData instantiation happens at the manifest.json file, you give the OData service URL and other parameters such as default binding mode, local URI, etc. while declaring the OData. Go through the below links for more information :

Regards,

Arjun Biswas.

imihailovs
Explorer
0 Kudos

Well, actually the SDK itself performs the binding for ALL models configured in manifest.json file automatically. If a breakpoint is placed in ODataModel.js class - it is possible to trace the Call Stack.