Dear visitor, despite the COVID-19 outbreak, our team continues operating at full speed.

Also, here is the form where you can apply for a special discount and we will contact you with possible options. Stay safe and continue achieving your business goals.

Fill the form
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