Using table in header or making a custom header

Posted by: arian on 4 September 2023, 11:57 am EST

    • Post Options:
    • Link

    Posted 4 September 2023, 11:57 am EST - Updated 5 September 2023, 5:10 am EST

    I am trying to make some formulas in Header from routes table but as in documentation we cannot add table on Header so i make a table header to look like header and this works good but the problem is i want different filters on header different filters on rows.

    It doesnt have to be table but it should be able to use DataSource which i will give and apply some filters but it should repeat in every page

    Is there any other way to make custom header so i can add tables there and filter data

  • Posted 5 September 2023, 7:50 am EST

    Hi Arian,

    I would suggest you to use Fixed Page Layout Reports instead. As in Fixed Page Layout Reports data regions in fixed layout reports have the Fixed Width and Fixed Height properties to specify the size that could be taken at runtime.

    For adding a dynamic header, you can simply have a table on top of the fixed page layout report and then add a SubReport which refers to your Continuous Page Layout Report.

    You can also Filter the Sub Report to the main report based on the DataSet in the main report by using Parameters.

    Please refer to the attached sample reports.

    For more information on this please refer to the following pages of our documentation:

    I hope this resolves your query. If the issue persists then please share a sample report with dummy data so we can test the issue at our end and get back to you accordingly. Additionally, You can also attach images showing the current and the expected report design.

    Dynamic Header.zip

  • Posted 6 September 2023, 5:31 am EST - Updated 6 September 2023, 5:36 am EST

    Hello Akshay,

    Thank you for your reply.

    Sorry that i forgot to mention that i am using ActiveReportJs inside a React Application.

    Since i am saving all reports objects in database can you please provide the key how can i list them in subReports and when i select it to be added in Report object

  • Posted 7 September 2023, 11:22 am EST

    Hi Arian,

    You can add predefined resources into the designer such as data sources, images and reports. To show SubReports into the Designer component you would have to pass a list of ReportResourceInfo to the Designer component. Please refer to the following lines of code:

    const reports = [
      {
        id: "reports/CustomersTable.rdlx-json",
        displayName: "Customers Table",
      },
      {
        id: "reports/TaxiDrives.rdlx-json",
        displayName: "Taxi Drive Report",
      },
    ];
    
    <Designer report={{id: "reports/report.rdlx-json"}} reportList={reports}/>
    

    For more information on this please refer to the following pages of our documentation: Use Predefined Resources

    For reference, I have also attached a sample application.

    Regards,

    Akshay

    features_designer-resources_React.zip

Need extra support?

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

Learn More

Forum Channels