Hi all,
We have a data service (.xsjs) returning json dynamically, meaning the format is not always the same.
There can be several string fields and several numeric fields defined, depending on the query that is executed in the .xsjs file.
This works great.
Now, in the view.controller.js we load from the service into a sap.ui.model.json.JSONModel().
Still good, but now we need to get the fields and types (string or numeric) from the JSONModel to define for example a flattened data set for a VizChart.
How can we achieve this?
Thanks and regards,
Oliver