🎉 Flexmonster Pivot Table & Charts v2.8 has arrived!Read the blog post
Get Free Trial
Get Free Trial

how to make datasource call to mandatorily take requestheader or do not consider the calls to datasource which are failed

prathmesh asked on October 10, 2019

          filename: this.configjsonservice.baseURL + “/optiq/reportdesigner/” + frmdate + “/” + todate + “/” + tablename + “/reportdesignerdata”,
          requestHeader:{ ‘Authorization’:’bearer ‘+localStorage.getItem(‘accessToken’) ,”Content-Type”: “application/json”}

1 answer

Ian Sadovy Flexmonster October 11, 2019

Hello Prathmesh,
Thank you for the question.
Currently, the following API calls support requestHeaders for the data source: connectTo() / updateData() / setReport().
So, in case you need to use request headers for all requests, you have to use the above methods. 
Please note that getReport() and save() do not expose request headers.
Hope it was helpful.

Please login or Register to Submit Answer