Tag: sap fiori
-
The different count modes in SAPUI5
In the UI5 framework, we do differ how we want to setup the count requests, when an OData service gets called. The mode how this count should be sent and retrieven, can be set in the manifest.json file. Therefore we can set the following options: Count mode Description Inline Count is retrieved by adding $inlinecount=allpages to data…
-
Fetch an empty structure of an entity in an OData service
Did you asked yourself, how to get an empty structure, with empty strings and booleans set to false from your OData service to use it later in a local JSON model. To achieve this, we need here again the service metadata from our OData model. Test case To test our code from above, we have…
-
Fetch a JSON meta structure from an entity of an OData service in SAPUI5
I recently had to fetch a complete structure of an entity in my OData service to get the labels and attribute type like Edm.DateTime etc. Please note that this tutorial only has been tested with an OData V2 service. This allows you to works with large entities for example to handle an Excel export function,…