on 08-22-2013 11:30 AM
Hi Friends,
SAP UI5 introduce many data models like
1. OData Model
2. JSON Model
3. XML Model
4. Resource Model
In all four model which one is faster and reliable,secure for ui development.
Regards
Manoj
Hi Manoj,
Each of these model have some difference as mentioned below in the paragraph
The predefined models available in SAPUI5 are the JSONModel for JSON data, the XMLModel for XML data, the ResourceModel for resource bundle data, and the ODataModel for retrieving data from OData services. The JSONModel, XMLModel, and the ResourceModel are client-side models, so the data of the model is loaded completely and is available on the client, and operations such as sorting and filtering are executed on the client side without further server requests. The ODataModel, on the other hand, is a server-side model, so only the data that is requested by the UI is loaded from the server; any change of binding or list operations require a new request to the server.
from page https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/UsageInApp.html
Thanks and Regards, Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
There is nothing called preferred mode between the model's it depends on the metadata you are consuming from the service and act accordingly.
oData in turn returns the JSON/XML/Atom data.
If you need preferred data exchange format on front end between JSON/XML. JSON is the preferred data format cause its lightweight and its easy to access the data. There are quite lot of articles on web comparing the difference between JSON vs XML.
Regards,
Ajain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.