Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers