How do Headers in Data Sources and Data Sets work?

Posted by: cibarra on 16 October 2024, 5:58 pm EST

    • Post Options:
    • Link

    Posted 16 October 2024, 5:58 pm EST

    Hi,

    I have a question about how Headers work in Data Sources and Data Sets of a report in ActiveReportJs.

    I know that both items (Data source, data set) can specify headers and query parameters. In a case where one header is set in the data source and the same header is set on a data set with a different value, does the header in the data set overrides the header value of the data source when the request of the data set occurs?

    Hope you guys can help me answering this question.

    Regards

  • Posted 17 October 2024, 4:45 am EST

    Hi Cesar,

    The purpose of Parameters and Headers properties in the DataSet is the same as one of Query Parameters and HTTP Headers properties of the data source. You can set up parameters and headers on the data set level if the ENDPOINT of the parent data source is the base URL or empty value. These properties are only applicable to the Remote JSON data source type.

    In the scenario you described where both a Data Source and a Data Set have headers with the same name but different values, the header defined at the Data Set level overrides the one in the Data Source when the Data Set request is made.

    We hope this helps!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels