Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Get list of fields from sap.ui.model.json.JSONModel()

$
0
0

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


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>