Skip to Content

OData model default View binding

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 25, 2018 at 07:02 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 22, 2018 at 04:21 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.