Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3510

Extending SAPUI5 Applications - Purcharse Orders

$
0
0

I'm working on an extension, a new view I think is in the method this.getRouter init () attachRoutePatternMatched (this.onRouteMatched, this).; this.getModel gives me error, how you can return to instantiate the service or service to pass a new view in an extension?

 

Attached files

 

Component.js.

jQuery.sap.declare("nw.epm.refapps.ext.po.apv.po.tgv.com.Component");

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

sap.ui.component.load({

  name: "nw.epm.refapps.ext.po.apv",

  // Use the below URL to run the extended application when SAP-delivered application located in a local cloud environment:

  //url: jQuery.sap.getModulePath("nw.epm.refapps.ext.po.apv.po.tgv.com") + "/../../nw.epm.refapps.ext.po.apv/webapp"

  // Use the below url to run the extended application when SAP-delivered application located in a cloud environment:

  url: jQuery.sap.getModulePath("nw.epm.refapps.ext.po.apv.po.tgv.com") +

  "/../orion/file/p1009225trial$P1009225-OrionContent/nw.epm.refapps.ext.po.apv/webapp" // we use a URL relative to our own component

  // extension application is deployed with customer namespace

});

this.nw.epm.refapps.ext.po.apv.Component.extend("nw.epm.refapps.ext.po.apv.po.tgv.com.Component", {

  metadata: {

  version: "1.0",

  config: {},

  customizing: {

  "sap.ui.controllerExtensions": {

  "nw.epm.refapps.ext.po.apv.controller.S3_PurchaseOrderDetails": {

  "controllerName": "nw.epm.refapps.ext.po.apv.po.tgv.com.controller.S3_PurchaseOrderDetailsCustom"

  }

  },

  "sap.ui.viewExtensions": {

  "nw.epm.refapps.ext.po.apv.view.S3_PurchaseOrderDetails": {

  "extensionAfterForm": {

  "className": "sap.ui.core.Fragment",

  "fragmentName": "nw.epm.refapps.ext.po.apv.po.tgv.com.view.S3_PurchaseOrderDetails_extensionAfterFormCustom",

  "type": "XML"

  }

  }

  },

  "sap.ui.viewModifications": {

  "nw.epm.refapps.ext.po.apv.view.S3_PurchaseOrderDetails": {

  "poItemsTable": {

  "visible": false

  }

  }

  },

  "sap.ui.viewReplacements": {

  "nw.epm.refapps.ext.po.apv.view.S3_PurchaseOrderSummary": {

  "viewName": "nw.epm.refapps.ext.po.apv.po.tgv.com.view.S3_PurchaseOrderSummaryCustom",

  "type": "XML"

  }

  }

  },

  routing: {

  routes: [{

  pattern: "",

  name: "vista",

  target: ["master","vista1"]

  }],

  targets: {

  vista1: {

  viewPath: "nw.epm.refapps.ext.po.apv.po.tgv.com.view",

  viewName: "vista1",

  viewLevel: 2

  },

  reemplazo: {

  viewPath: "nw.epm.refapps.ext.po.apv.po.tgv.com.view",

  viewName: "S3_PurchaseOrderSummaryCustom",

  viewLevel: 2

  }

  }

  }

  }

});


Viewing all articles
Browse latest Browse all 3510

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>