1. Marco Meoni
  2. PowerBuilder
  3. Thursday, 27 January 2022 07:09 AM UTC

Good day,

as you can see in the picture, when starting a PowerClient/PowerServer app from the web browser, an empty page is left there.

I haven't found any option in index.html, autoconnect.html, autodownload.html, autoinit.html to avoid this.

This would be nice for users who dont want a desktop link, but needs to start PC/PS apps from a company webpage.

Any idea?

Thanks,

.m

 

Accepted Answer
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 15 February 2022 15:19 PM UTC
  2. PowerBuilder
  3. # Permalink

Hello Zhaokai,

I find a workaround using iframe_a

https://www.w3schools.com/html/tryit.asp?filename=tryhtml_iframe_target

So you can take it as solution for PS 2022 ;-)

Best,

.m

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 15 February 2022 15:29 PM UTC
Thanks Marco!
  1. Helpful
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Monday, 7 February 2022 00:22 AM UTC
  2. PowerBuilder
  3. # 1

Hi Marco,

For <a> tag , we don't have a feasible workaround, PowerServer 2022 will enhance it.

Please try html script below, you can create function to dynamically set src of img, please refer to autoconnect.html file in application folder for details, then call this function in button clicked event.

<!DOCTYPE html>
<html>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<img id="img" src="http://127.0.0.1:26568/Setup.ico/https://demo.appeon.com/sales" style="display:none;"/>
</body>
</html>

Regards,
Kai

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Sunday, 30 January 2022 20:42 PM UTC
  2. PowerBuilder
  3. # 2

Hello ZhaoKai,

thanks for your answer, #1 and #2 are indeed already part of the deployment.

Step #3 has very curious html syntax, 26568 (and 26569) are ports opened by the ICA launcher, right?
However

  1. the ICA is immediately started when html page is loaded
  2. After ICA is closed, webpage needs to be refreshed in order to start ICA one more time

I would rather like the user to have a webpage with a button/link to click, which then starts the ICA.
After the click, the webpage remains visible.

 

<html>
<body >
<h1>My awesone landing page</h1>
<p>Click the link to start SalesDemo</p>
<a href="/./salesdemo_ps/?param=myparam">Click here</a>
</body>
</html>

As you can see, the href starts SalesDemo ICA (with a parameter), but unfortunately an empty webpage is displayed.
How to trigger ICA startup without abandoning html page above?

Thanks,

.m

Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Friday, 28 January 2022 05:17 AM UTC
  2. PowerBuilder
  3. # 3

Hi Marco

If you start the application via Launcher with background service, the application does not need an index.html to start.

Please try the steps below:

1. Upload Cloud App Launcher with background service, please refer to article below.
https://docs.appeon.com/ps2021/About_cloud_app_launcher.html

2. Install Cloud App Launcher with service on client machine. This is explained in the “How cloud app launcher is installed” section in the above article.

3. Then you can start the application via the URL like below from your webpage.
http://127.0.0.1:26568/Setup.ico/%application URL%

For example:

<!DOCTYPE html>
<html>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<img id="img" src="http://127.0.0.1:26568/Setup.ico/https://demo.appeon.com/sales" style="display:none;"/>
</body>
</html>

Regards,
ZhaoKai

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.