cancel
Showing results for 
Search instead for 
Did you mean: 

Extending a Fiori Application

Jayakrishnan
Active Participant
0 Kudos

Hi ,

   I am working on the Fiori based applications. In my app i have to extend the standard PO application. i have imported and done with all process by following an guide. but while running the application i can see the application in Launchpad. but while clicking it ,it does not showing the next page. i  have mentioned the error below. please guide on this.

Error:

Message was edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

former_member91307
Contributor
0 Kudos

Hi Jayakrishnan,

Is the standard app working locally?

If yes add the statement

   jQuery.sap.registerModulePath("<extension project name>", './');

        jQuery.sap.registerModulePath("ui.s2p.mm.purord.tracking", '../<name for the project on local server>);

Please post the code of your component.js here.

Confirm the names of the project running on server too.

Thanks and Regards, Venkatesh

Jayakrishnan
Active Participant
0 Kudos

Hi Venkatesh,

    Thank you for your reply, please find the Component.js file code  below.

jQuery.sap.declare("ui.s2p.mm.purord.tracking.Z_MM_PURORD_TPO.Component");

jQuery.sap.declare("ui.s2p.mm.purord.tracking.Component");

// use the load function for getting the optimized preload file if present

sap.ui.component.load({

  name: "ui.s2p.mm.purord.tracking", 

  url: jQuery.sap.getModulePath("ui.s2p.mm.purord.tracking.Z_MM_PURORD_TPO") + "/../MM_PURORD_TPO" // provide parent project url

  // we use a URL relative to our own component; might be different if

  // extension app is deployed with customer namespace

});

ui.s2p.mm.purord.tracking.Component.extend("ui.s2p.mm.purord.tracking.Z_MM_PURORD_TPO.Component", {

  metadata: {

  version : "1.0",

  config : {

  "sap.ca.i18Nconfigs": {

  "bundleName":"ui.s2p.mm.purord.tracking.Z_MM_PURORD_TPO.i18n.i18n"

  },

  "sap.ca.serviceConfigs" : [ {

  name : "GET_ALL_PRSet",

  masterCollection : "WorkflowTaskCollection",

  serviceUrl : URI(

  "/Z_MM_PURORD_TPO/proxy/sap/opu/odata/sap/ZPR_TRACK_SRV/GET_ALL_PRSet")

  .directory(),

  isDefault : true,

  countSupported : true,

  useBatch : true,

  mockDataSource : jQuery.sap

  .getModulePath("ui.s2p.mm.purord.tracking")

  + "/model/metadata.xml"

  } ]

  },

  customizing: {

  }

  }

});

Answers (2)

Answers (2)

agentry_src
Active Contributor
0 Kudos

Moved from SAP Mobile Platform Developer Center to SAP for Mobile community.  Nothing to do with SMP.

Regards, Mike (Moderator)

Jayakrishnan
Active Participant
0 Kudos

One more Error : -->  TypeError: ui.s2p.mm.purord.tracking.Component is undefined