on 02-05-2014 6:00 AM
OData model is a model based on a OData Service which a REST based model. OData allows you to perform SQL Query like operation on the URL(and it is like ODBC for Web!!). You can read more about OData service in Home | Open Data Protocol | ODataOpen Data Protocol | OData.
As per UI5 Documentation
The ODataModel is a server-side model, so the whole dataset is only available on the server, the client only nows the currently visible rows and fields.
When you bind a control to an OData model , it comes with many features out of the box such and filtering capability, sorting, pagination etc. However the corresponding server side implementation needs to be in place. Using SAP Netweaver Gateway you can expose SAP ERP data in form of OData service and which can be easily consumed in UI5.
On the other hand JSON model is client side model based on JSON data to be used for small set of data.
Regards,
Atanu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The OData model is a server side model and is exposed via a URL. For example : http://services.odata.org/Northwind/Northwind.svc/.
In UI5 you can define a OData Model object using the OData service URL. The UI5 OData Model object will be responsible for calling various URLs to access different resources exposed by the OData service. May be you can have a look at to get more information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.