Skip to Content
0
Aug 27, 2019 at 06:33 AM

How to add Header parameters to the downloading file in sapui5?

210 Views

Hi experts,

I have a requirement to add custom header parameter to the downloading file for read operation. Below are the code details,

oModel.setHeaders({

"template": "X"

});

oModel.read("/ContractSet('00')/$value", {

success: function (oData, oResponse) {

console.log("success");

}.bind(this),

In the network tab, it is showing as successful and can see the header parameter template:X is passed. But the header parameter is not triggered in the backend. Is this backend issue or frontend issue? Do backend people need to maintain any? or is there any different way to send header parameter for downloading files from frontend?

Kindly help me in resolving this.

Thanks & Regards,

Ayesha

Attachments

download-1.png (13.4 kB)
download-2.png (18.4 kB)