How to get sub report file from a url with parameters

Posted by: experdot.xie on 31 May 2020, 9:01 pm EST

  • Posted 31 May 2020, 9:01 pm EST

    There is a url exposed a main report :
    http://localhost:52185/customApi/activereportsapi/GetDesignerFile?main-report.rdlx-json
    I open it in a web viewer, but the viewer can't load its sub report.
    Request URL: http://localhost:52185/Forguncy/customApi/activereportsapi/sub-report.rdlx-json
    Request Method: GET
    Status Code: 404 Not Found

    Actually, the sub report's request url should look like this:
    http://localhost:52185/customApi/activereportsapi/GetDesignerFile?sub-report.rdlx-json

    Is there a way to solve the issue?
  • Replied 31 May 2020, 9:03 pm EST

    Request URL: http://localhost:52185/customApi/activereportsapi/sub-report.rdlx-json
    Request Method: GET
    Status Code: 404 Not Found
  • Replied 1 June 2020, 9:59 pm EST

    Hello,

    Could you please explain this in the detail. How are you passing the subreport in the main report? Which Js FW are you using? From WebViewer, you mean JSViewer?

    It very helpful for us if you send us the sample so that we can replicate the issue at our end.

    Thanks,
    Mohit
  • Replied 3 June 2020, 12:25 pm EST

    Thanks for your reply. We want to integrate the ActiveReportsJS 14.0 to our own website.
    1. Firstly, the end-user designs rdlx-json report file in the official ActiveReportsJS Web Designer.
    2. Then the end-user uploads the rdlx-json report file to our website and download the report by ActiveReportsJS Viewer.
    3. The uploaded report file is exposed as a url such as http://example.com/GetDesignerFile?abc.rdlx-json
    4. We write the code like following:

    var fileName="abc.rdlx-json";
    var url=`http://example.com/GetDesignerFile?${fileName}`;
    viewer.open(url);

    5. It looks good. But for the nested report file, for example, "abc.rdlx-json" is referenced the "sub-report.rdlx-json", the sub report file can't load in the web viewer because of wrong url be requested by the viewer.
    Expected:
    http://example.com/GetDesignerFile?sub-report.rdlx-json
    Actual:
    http://example.com/sub-report.rdlx.json

    Now we must use the url parameter to pass the file name and have no solution for the issue.
  • Replied 8 June 2020, 1:51 am EST

    Hello,

    Sorry for the delay!. I have asked from the development team (ARJ-2062) and will inform you once I got any reply from them.

    Thanks,
    Mohit
  • Marked as Answer

    Replied 10 June 2020, 6:50 pm EST

    Hello,

    Did you try to use WebAPI like http://example.com/GetDesignerFile/abc.rdlx-json

    Thanks,
    Mohit
  • Replied 11 June 2020, 1:16 pm EST

    mohitg said:


    Did you try to use WebAPI like http://example.com/GetDesignerFile/abc.rdlx-json


    We've redesigned the WebAPI. Thanks a lot.
Need extra support?

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

Learn More

Forum Channels