Zum Hauptinhalt gehen

Open GCX report as dialog

Kommentare

5 Kommentare

  • Alisa Lindley

    Hi Vincent,

    When you say you would like the report to open in a dialog box, do you mean you would like the PDF to open in the viewer UI? If so, unfortunately this is not possible, though it's something you could suggest as a desired feature in the Ideas section.

    If you are alright with the report opening in a new tab and are using the SaaS version of Workflow, you can use the Open Window activity. If you are using an on-prem installation, you could try the system.open-url command in a Run Command activity with the parameter set to the report's href.

    I hope that helps!

    0
  • Vincent

    Hi Alisa

    Thanks for your help.

    Tried both of your suggestions. Don't have Open Window activity so must be on-prem install. Not sure parsing the system.open-url correctly (see image) in Run Command activity.

    Ideally would like the report to open as a (perhaps html ?) dialog in current viewer (or a new tab is fine). RunReport activity has format parameter, not sure what format that would be to do this.

    Thanks,

    Vincent

    0
  • Alisa Lindley

    Hi Vincent,

    Looking at your screenshot, it seems you're missing an equals sign in the command parameter. Please try =$runReport1.href so that Workflow knows it's an expression, not a string.

    As for the output, I'm not sure if it's possible to display it as HTML since VertiGIS Studio Reporting is designed to create downloadable reports (PDF, DOCX, XLSX, and RTF), not web content. With the help of a server-side workflow, you may be able to find a way to convert the RTF to HTML, then publish the report page, but this would be very complicated and is not guaranteed to work. As I mentioned earlier, the Ideas section would be your best bet for requesting more support for various report outputs.

    1
  • Vincent

    Hi Alisa.

    Will add that to Ideas section for Reporting as per your suggestion.

    Changed the command parameter but get no output using system.open-url as the command.

    Thanks for your help

    Vincent

    0
  • Alisa Lindley

    Hi Vincent,

    Does the report generate properly otherwise? For example, if you open the browser dev tools by pressing F12 then check the Console tab while running the workflow, does an href get output successfully?

    If the report generates successfully, but the PDF doesn't open in a new tab, you may want to check your browser's pop-up settings.

    Note that depending on the complexity of the report template and the number of features you are running it on, it may take a significant amount of time for the report to generate, meaning the tab with the PDF output will not open immediately.

    Alisa

    1

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.