Hi Fiori Devs!
I need a helping hand to adding some basic extensions to the front end of the Approve Requests app without changing the backend!
So what that means is:
- Hide some buttons and fields on the Approve Requests UI5 app.
- Use the standard ODATA service /sap/opu/odata/IWPGW/TASKPROCESSING/.
If I run my standard approve requests app we’ve implemented from Fiori launchpad I get my workflow items which is great! See here:
HOWEVER! When I launch my extended approve requests app I get no entries.
I also notice that in my extended app when I debug with google Chrome there’s no ODATA call which is calling the TaskCollection payload....
I can see my custom Component.js being loaded via the Chrome Dev Tools.
To extend my application I've look extensively at the following documents :
Fiori Approve Requests Extensbility Cookbook - https://service.sap.com/sap/support/notes/2021057
Extending a Fiori App - Simple Use case - Part 2
Extending and Testing SAP Fiori Apps
Before anyone mentions "use WebIDE!", our organisation is looking at this but we have to make do with Eclipse whilst my powers that be sort out getting me WebIDE.
Basically what I've done in Eclipse Juno with SAP Toolkit 1.1.4 is:
1. Download standard BSP app CA_ALL_APV using the Team Provider tools in Eclipse Juno.
2. I create new SAP Fiori Extention Project without replacing the Odata service.
3. Modify my Component.js file and I upload the extended Approve apps project "approveRequstsExtension" to custom BSP Application "ZCA_ALL_APV_EXT"
I suspect the culprit is around here somewhere in my Component.js file:
jQuery.sap.declare("cross.fnd.approve.requests_ext.Component"); jQuery.sap.registerModulePath("cross.fnd.approve.requests", '/sap/bc/ui5_ui5/sap/ca_all_apv'); jQuery.sap.require("cross.fnd.approve.requests.Component"); sap.ui.component.load({ name: "cross.fnd.approve.requests.Component", url: jQuery.sap.getModulePath("cross.fnd.approve.requests_ext") + "/sap/bc/ui5_ui5/sap/zca_all_apv_ext" }); cross.fnd.approve.requests.Component.extend("cross.fnd.approve.requests_ext.Component",{ metadata: { version : "1.0", config : { }, customizing: { } } });
4. After I submit my changes, I prepare a new tile doing the usual Fiori Launchpad Admin, lpd_cust, pfcg to launch my custom app URL "/sap/bc/ui5_ui5/sap/zca_all_apv_ext" can launch my app successfully but with no data. I've also created a new semantic object "ApproveRequestsExt" and Application Alias "ApproveRequestsExt" too.
Just a reminder that I can see my custom Component.js file load in Chrome Dev Tools /sap/bc/ui5_ui5/sap/zca_all_apv_ext when I launch my app with no data.
Anyone who knows where else I should look?
Regards,
Ben