Hi experts,
I would like to extend/modify the Fiori paystub app service url. Therefore I changed the metadataUrl variable in the Service.js from
if(jQuery.sap.getUriParameters().get("local")){this.metadataUrl="sap/opu/odata/sap/SRA006_SRV" }else{this.metadataUrl="/sap/opu/odata/sap/SRA006_SRV"
to
if(jQuery.sap.getUriParameters().get("local")){this.metadataUrl="http://myserver.otherhost.com/sap/opu/odata/sap/SRA006_SRV" }else{this.metadataUrl="http://myserver.otherhost.com/sap/opu/odata/sap/SRA006_SRV"
The changed Service.js file is successfully loaded to the browser (confirmed with browser dev tools), so the old file is not cached.
But the pdfs are still requested from
http://server.applicationRunsOn.com/sap/opu/odata/sap/SRA006_SRV/PDFPayslips(12)/$value
instead of
http://myserver.otherhost.com/sap/opu/odata/sap/SRA006_SRV/PDFPayslips(12)/$value
Any hints, what is missing here?
Thank you!