Need to open new tab

I have looked at some of the other forum entries, but don’t see a way to do this any longer…

I have reporting software on my server, ART, it works fine, but when the link is called from XOJO into either a GraffitiPDF container or a htmlviewer container it opens a page to run the report (which does run in a new window), but then access to my web program is gone… you can not navigate back to the apps home screen but must log in again.

I want the first page to open in a new tab… is there a way to do this?

What is the code you use to show the PDF?

Web GoToURL has a second parameter for opening in a new window/tab, but it may cause the browser to block the new window as a popup ad unless it’s the direct result of a user action.

Ok, I added the “,True” and now it opens in a new window… can you explain this other issue:

I also have a dashboard created in ART; it works when my app is run in debug mode, but does not show when compiled and run from the server…

HTMLViewer1.LoadURL(“http://192.168.1.52:8080/art/runReport?reportName=Portman-dashboard&reportId=15&format=html&username=XXXXXXX&password=XXXXXXX”)

It could be several things.
Is your server on the same 192.168.1.xxx network?
Is there any firewall that could block the connection?
What OS on the server? What OS while debugging?

I’m sorry, I’m not familiar with the reporting tool “ART”. Alberto’s questions are all relevant and you should answer them. If you could provide resources on how to use ART, I could peek and poke, but unfortunately I don’t have any further insight.

2 Likes

HI Alberto,

  1. Yes, server and development PC are on the same network, I will look into the firewall question.
  2. Both the server and the PC run the same OS, Linux.

I had been using Monsalves DBreport software, but it is no longer developed and is getting difficult to use for web apps. ART is located here: https://areportingtool.com/

It seemed like a good alternative and does format the reports well (reports can be written with Jasper Studio and uploaded to the ART server).

Have you installed ART on the deployment server? 192.168. is a local address, and though you say they’re on the same network, it does appear that something is preventing the communication.

It looks like you will need to make ART publicly accessible by some means to allow users to get the report through ShowURL. It would be more safe to prevent that, command ART with Xojo, and then forward the report along.