Report Customization at runtime?

Posted by: sjdunne on 18 February 2021, 1:21 pm EST

  • Posted 18 February 2021, 1:21 pm EST

    i'm evaluating ActiveREports JS for a new project. We allow the user to select different options to modify the appearance of the report, which we then apply at runtime. Examples of changes include:

    hiding/suppressing or modifying the field for a group header/footer

    hiding fields/labels/lines

    moving fields/textboxes/labels/lines

    it appears that some modification of a report is supported, like changing page orientation in this example:
    https://www.grapecity.com/activereportsjs/docs/DeveloperGuide/ActiveReportsJSViewer/LoadingReports/LoadingFromJSON#loading-reports-as-json-resources

    are we able to modify properties of any objects in the report?

    thanks
    Shawn
  • Replied 22 February 2021, 10:27 pm EST

    Hello, Swan,
    Runtime modification of a report object is supported.
    Here is an example of code that hides the first item of the report body.

        const bodyReportItems = report.Body?.ReportItems;
    if (bodyReportItems?.length) {
    bodyReportItems[0].Visibility = { Hidden: true };
    }


    By the way - you can schedule a free demo session at https://calendly.com/activereportsjs/activereports-js-demo and we can talk in detail about the requirements you have for a reporting solution and whether ActiveReportsJS can fulfill them.
Need extra support?

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

Learn More

Forum Channels