We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

question about save

Resolved
long yu asked on May 15, 2020

hello :
when we do save with style "server", if we can specify the "Content-type: application/json"  plz ?
 
 
 

2 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster May 15, 2020

Hello,
 
Thank you for contacting us.
 
We would like to kindly explain that the media type can not be changed in case the save method is used. It is due to the fact that not only the report is sent, but the Form Data (content-type: application/x-www-form-urlencoded) with additional information about the report itself.
 
In case the different media type needs to be specified when saving the report on the server, we recommend the following approach.
Get the report using the getReport API call provided by the component. Next, Ajax can be used in order to save it on the server with an appropriate media type (application/json).
 
More information about the method can be found in our documentation.
 
Do not hesitate to contact us in case additional questions occur.
 
Kind regards,
Illia

Public
long yu May 18, 2020

ok, thanks a lot !

Please login or Register to Submit Answer