1. David Motty
  2. PowerServer
  3. Wednesday, 1 February 2023 18:04 PM UTC

Hello Appeon Community,

       I have a question regarding an older PB client sever application that I am trying to convert to PowerServer 2022 could app.  The existing Client Server app is actually 5 different EXEs that all access the same database (Oracle).  The main EXE has the login screen, and the other 4 EXEs are modules that are opened by the main EXE by executing the the "Run" command, and passing in an encrypted argument that contains the username/password info...  Not pretty, but this is a very old system that evolved from 5 different systems from what I have been told...

So my question is; 1) what would be the PowerServer equilivant of the following peice of code:

******************************************************

// Execute EXE with ls_CommandLine (the username/password) as Parameter.
// Added executale relative path
if Run( "..\mars_wr\mars_wr " + ls_commandline ) = -1 then
     messagebox( f_languagetext( "Error","Erreur" ), f_languagetext( 'WR Cases module not found.', 'Module WR non trouvé.' ) )
end if

******************************************************

Basically, I am asking if there is a way to launch one cloud app from another one?  In PB you always had the good'ole "Run" function that you could use to run exe's on the device.  

What is the equivalent for PowerServer and these cloud apps?

Followup Question: 2) if there is an equivalent function to the Run command (and it is possible for one cloud app to open another) can this work with a local development deploy, or would it need to be fully deployed first?

 

Thanks in advance for your time,

David Motty.

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 1 February 2023 22:14 PM UTC
  2. PowerServer
  3. # 1

Hi David ;

  There are now two scenarios ...

  1. The secondary Apps are local EXE's
    • The other Apps now become EXE's that are deployed as "External" resources to the main PS App.
    • Thus, you would use the RUN() command from AppA to run B, C, D, ... etc.
  2. The secondary Apps are also PowerServer based
    • So you would now treat these other PS Apps like they are WEB Apps.
    • So for example, I use the HyperLinkToURL() command of the iNET object to run other PS apps (just like any URL).

HTH

Regards ... Chris

 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 21 November 2023 20:52 PM UTC
Hi David;

Hmmm ... that's a great question. I have not seen or heard of using the HTTPClient for that functionality.

Where did you see / read about that?

Regards .. Chris
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 22 November 2023 00:38 AM UTC
You still would use the OpenURL function (not HTTPClient object). To pass parameters you would just append the values to the URL and read it into the PowerServer app as commandline parameter. Refer to "Commandline argument" in this doc: https://docs.appeon.com/ps2022r2/Define_the_PowerServer_projects.html
  1. Helpful 1
  1. Miguel Leeuwe
  2. Wednesday, 22 November 2023 05:32 AM UTC
Wasn't the HyperLinkToURL() function declared obsolete?
  1. Helpful
There are no comments made yet.
David Motty Accepted Answer Pending Moderation
  1. Wednesday, 1 February 2023 19:51 PM UTC
  2. PowerServer
  3. # 2

Thanks for your reply Mike, but we already have ideas for a work around or a rewrite.  That would be simple and guarantee me some work for the next few weeks. Unfortunately, a rewrite of the old application(s) is not in the budget as it would be seen as making changes to the client server application (this department is not putting any more money into client server apps... 

I am permitted to make a minor change.  I am just hoping to find out if the same functionality exists in the PowerServer cloud app world.  If not, they are looking at using a different product other than PowerBuilder/PowerServer solution.

So, a way to open the cloud app from another cloud app, did you know if it exists? If you don't, maybe someone else on here might?

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Wednesday, 1 February 2023 19:36 PM UTC
  2. PowerServer
  3. # 3

you can run an exe (only works if it is downloaded already).   

 

If you do get this to work the way it currently does, then you probably will end up using at least 2 or more licenses per user because of the way you have your application setup as 5 different applications and connections.

 

i would consider spending the time setting this up as a single application rather than trying to get your old work arounds working.   

 

 

 

 

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.