Skip to Content
Mar 05, 2015 at 01:19 PM

How to read oData property



i am creating an application where I need to read one of the property from oData service and then need to do some conversion and display converted data in UI5 page.

For example: odata service name is Service and property name is property1, i need to read property1 if it is '01' i need to display 'Gas' and if '02' need to display 'Elec' in UI5 page.

I do understand a function is required in controller to do the conversion and then need to send converted data to view. But how to pass the data back to view from controller function and how to read property from odata service.

Can some please help?