🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Request headers are cleared after updateData() method call

Alex asked on December 17, 2019


There is an issue with request headers for csv data source after upgrading from 2.7.17 to 2.7.20.
Request headers are set in report object using ‘requestHeaders‘ property of the data source. On the first load headers are sent to server and everything is fine. But after reloading data through ‘updateData()‘ method headers missed.
Such behavior stops us from upgrading to the latest version. Could you give any suggestions how it can be solved?
Thanks for your help.

3 answers

Illia Yatsyshyn Illia Yatsyshyn Flexmonster December 17, 2019

Hello, Alex,
Thank you for reporting about that bug.
We have managed to reproduce the problem on our side.
The issue is going to be fixed with the next minor update ETA 30 Dec.
Also, we would like to kindly draw your attention to the fact that the updateData API call updates the whole dataSource object.
Being a property of the dataSource object, the requestHeaders object is impacted as well; it has to be explicitly defined as a parameter of the updateData method. Otherwise, the requestHeaders object will be removed as well as other undefined properties.
More information about updateData API call and its parameters, including the requestHeaders, can be found by the following link: updateData method.
We hope it works for you.
Kind regards,

Mykhailo Halaida Mykhailo Halaida Flexmonster December 31, 2019

Hi Alex,
We are glad to announce that the issue with request headers not being applied when using updateData() method call was fixed.
This is available in the 2.7.22 version of Flexmonster: https://www.flexmonster.com/release-notes/
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/
Please let us know if everything works fine.
Looking forward to hearing from you.
Best regards,

Alex January 2, 2020

Hello, Mykhailo
After upgrading to the 2.7.22 version everything works fine. Request headers are sent as expected.
Many thanks,

Please login or Register to Submit Answer