1. Gururaja Udupa
  2. PowerServer
  3. Friday, 6 September 2024 07:48 AM UTC

When a Powerserver app is launched from another Powerserver app by using "Run" command (Note: Single Sign on), that app opens in the background instead of the foreground. How to bring to foreground automatically, Any PB functions or any workaround available?

 

Thanks,

Gururaja Udupa

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Saturday, 7 September 2024 06:45 AM UTC
  2. PowerServer
  3. # 1

Hi Gururaja,

If you use a PowerServer app to run another PowerBuilder app instead of the PowerServer app, can you reproduce the same issue?  If you can also reproduce the same issue on another client PC, this may be caused by the current solution used to start the Cloud App. Kindly please report your issue via our support ticketing system to ensure it is being properly received by our tech support and tracked at: https://www.appeon.com/standardsupport/

Regards, Logan

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 6 September 2024 17:15 PM UTC
  2. PowerServer
  3. # 2

Hi Gururaja;

  One workaround would be to use the "FindWindowW" MS-Windows "C" API call to locate the 2nd App's main window (after the RUN command executes) and then use a SetFocus to that App in order to bring it to the foreground. FYI ...

FUNCTION LongPTR  FindWindow ( ref String classname, ref string windowname ) Library "USER32.DLL" ALIAS FOR "FindWindowW"

HTH

Regards .. Chris

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.