1. VINOD NAIR
  2. PowerServer
  3. Wednesday, 18 December 2024 14:44 PM UTC

After a PowerServer application is launched and running, is there a way to close the browser tab from where it was launched? The reason I ask this is every so often the end user accidentally goes back to the browser and instead of creating a new tab to access other resources they accidentally click enter on the same tab where the application was launched and it starts another session.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 December 2024 16:43 PM UTC
  2. PowerServer
  3. # 1

Hi Vinod;

  FWIW: My STD Framework uses the Mutex SDK API to handle this so that neither Native, PowerClient and/or PowerServer Apps do not get caught with multiple instances open regardless of how they are launched. Food for thought.  HTH

Regards .. Chris

Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 December 2024 15:34 PM UTC
  2. PowerServer
  3. # 2

You can probably modify the landing page HTML/JS files and add code after the application is launched that closes the tab with javascript: https://stackoverflow.com/a/2076307

 

Regards,
Francisco

Comment
  1. VINOD NAIR
  2. Wednesday, 18 December 2024 15:41 PM UTC
With PowerServer 2022 R3, there are no HTML/JS files, right? I was hoping there was some configuration in PowerServer to do that. Basically after the cloudapplauncher downloads and launches the application it shuts down the browser tab.
  1. Helpful
  1. Francisco Martinez @Appeon
  2. Wednesday, 18 December 2024 15:44 PM UTC
There is no such option in the PS project.

The landing page, where the user opens the application from in the browser, is an HTML file and has backing JS files. You can modify these files to achieve the effect of the browser tab closing after the cloud app has been launched.
  1. Helpful
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.