Quantcast
Channel: SCN : Unanswered Discussions - SAP for Mobile
Viewing all articles
Browse latest Browse all 5512

Extending a SAP Fiori App service url

$
0
0

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!


Viewing all articles
Browse latest Browse all 5512

Trending Articles



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