Need a special offer?Find out if your project fits.
+

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

Answered
prathmesh asked on October 10, 2019

this.pivot.flexmonster.updateData({
          
          
          filename: this.configjsonservice.baseURL + "/optiq/reportdesigner/" + frmdate + "/" + todate + "/" + tablename + "/reportdesignerdata",
          requestHeader:{ 'Authorization':'bearer '+localStorage.getItem('accessToken') ,"Content-Type": "application/json"}
        })

1 answer

Public
Ian Sadovy 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.
 
Regards,
Ian

Please login or Register to Submit Answer