Skip to Content

Couldn't retrieve data from ODATA service from Custom Fiori application

Jan 18, 2017 at 04:55 AM


avatar image
Former Member

Hi All,

I am trying to develop custom Fiori app from the scratch in Standard coding format.(XML View).

I initially tried with Split app (master and detail screen ) and it worked perfectly fine.

But now I want to display the data using "object header" control in the first screen itself.

How do I do that??

My code:

onInit: function()

{ this.oRouter = sap.ui.core.UIComponent.getRouterFor(this); this.oRouter.attachRoutePatternMatched(this._routePatternMatched,this); },

_routePatternMatched: function(oEvent){

var oArguments = oEvent.getParameter("arguments");

var pfnum = oArguments["PfNum"];

var oModel = this.getView().getModel();

var sPath = "/coc_displaySet('"+pfnum+ "')";

var oContext = new sap.ui.model.Context(oModel,sPath);


Is this code correct or I have to try it some other way?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers