• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

    Possible bug in Reports module?

    Mango feedback
    3
    6
    252
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dan
      dan last edited by

      Hey Guys, I think there may be a bug relating to pathing in the reports module in v4.2.x.

      When I created a report and ran it, it came up in the logs that it couldn't find /images/logo.png
      It seems to be trying to use an absolute path of /images/ instead of a relative path, as I created a sym-link /images/logo.png and linked it to /opt/mango/web/images/logo.png and that fixed the issue.
      I don't think everyone would be keen to put a symlink in their root filesystem.

      I don't suppose that path would be settable anywhere in the GUI?

      Cheers
      Dan

      1 Reply Last reply Reply Quote 0
      • CraigWeb
        CraigWeb last edited by

        The reports module is not supported in v4. How did you load the module?

        dan 1 Reply Last reply Reply Quote 0
        • dan
          dan @CraigWeb last edited by

          @craigweb sorry by reports module I mean excelReports module.

          Cheers

          1 Reply Last reply Reply Quote 0
          • Jared Wiltshire
            Jared Wiltshire last edited by

            Hey Dan. Thanks for reporting this. This is a bug, we will get a fix out soon.
            Thanks,
            -Jared

            Developer at Radix IoT

            dan 1 Reply Last reply Reply Quote 0
            • dan
              dan @Jared Wiltshire last edited by

              @jared-wiltshire thanks Jared.

              Jared Wiltshire 1 Reply Last reply Reply Quote 0
              • Jared Wiltshire
                Jared Wiltshire @dan last edited by

                @dan said in Possible bug in Reports module?:

                @jared-wiltshire thanks Jared.

                No problem, I have committed a fix which will be included in the next Mango core release. The bug was in the core, not the module.

                As an alternative work-around you could override or create a new email template .ftl file and replace the <@img logo="true"/> with <@img src="logo.png"/>

                To create a new email template for your Excel report -

                • Copy the supplied template to your overrides, e.g. cp /opt/mango/web/modules/excelReports/resources/ftl/excelReports/reportEmailBody.ftl /opt/mango-data/overrides/ftl/excelReports/myTemplate.ftl
                • Restart Mango
                • Edit your report to use the new template file

                Developer at Radix IoT

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post