1. Kyungil Choi
  2. PowerServer
  3. Wednesday, 22 November 2023 01:30 AM UTC

Hello, there.

I wonder if I can get an arguments when I first run my program on PowerServer 2020.

For example, if I make a client program which runs on my desktop, I run it with "myprogram.exe test_arg" and then I get test_arg as a argument and I can use this in my program.

Just like that, I want get an argument  when my program run on PowerServer 2020, maybe like this way, "http://my_powerserver_url/myprogram?test_arg".

How can I get an argument when my program run on PowerServer 2020?

Can somebody help me?

Thank you in advance.

Kyungil Choi Accepted Answer Pending Moderation
  1. Thursday, 23 November 2023 02:39 AM UTC
  2. PowerServer
  3. # 1

This is resolved.

Thank you.

Comment
  1. Miguel Leeuwe
  2. Thursday, 23 November 2023 11:49 AM UTC
Well, thanks for NOT sharing your solution.
  1. Helpful
  1. Francisco Martinez @Appeon
  2. Thursday, 23 November 2023 14:41 PM UTC
  1. Helpful
  1. Kyungil Choi
  2. Friday, 24 November 2023 02:53 AM UTC
I meant it by "http://my_powerserver_url/myprogram?test_arg"; but I typed "http://my_powerserver_url/myprogram/test_arg";.

? --> OK, / --> 404

The problem was just my mistyping so I didn't mention it. Sorry about that.
  1. Helpful 1
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 22 November 2023 05:13 AM UTC
  2. PowerServer
  3. # 2

Wasn't there some place in a powerserver project where you can set arguments? I don't know about PS 2020, but in 2022 it should be possible: https://docs.appeon.com/ps2022/Define_the_PowerServer_projects.html (just search on that page for the word "argument")

If not, maybe it's simpler to use an INI file and read your values from there.

If different clients need to provide different arguments to the same application, then it's going to be trickier.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 22 November 2023 01:37 AM UTC
  2. PowerServer
  3. # 3

Hi Kyungil;

  Any arguments passed to the App should be available in your Application Object's OPEN event and passed into that event as an argument. 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.