cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing MetaData in SAPUI5

Former Member
0 Kudos

Hello

I would like to access the texts from the ABAP dictionary and use them as labels on the UI5 controls, I have tried using the getServiceMetadata function of the oData model,but i was unable to convert to JSON model which i can used further.

I have followed following thread

http://scn.sap.com/thread/3385666

Can anyone guide me to convert it to JSON model.

Thanks and Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Roshan



var meta = <your_oData_Model>.getServiceMetadata();


var json = new sap.ui.model.json.JSONModel();


json.setData(meta);

Regards

Andy