PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Spawning a session  (Read 116 times)

Mike Hatfield

  • Gold Member
  • ****
  • Posts: 72
    • View Profile
Spawning a session
« on: April 18, 2024, 01:34:40 AM »
Hi All, I'm running a plus/cs windx session.
I want to be able to open a new window/session from the current program.
In that new window I want to have it run a program that will display some lines of customer information text. When I find the text I want to switch back to the calling windx session and be able type in some of the text. When I'm done I want to close the new window/session either by clicking on the new session 'x' or issuing a close/drop or whatever in the calling program.
 
Would you believe in the nearly 26 years of programming with Pvx/PxPlus I've never had occasion to do this.
Is this accomplished by spawning a session or is there an easier way. I did do a test with *plus/cs/spawn. It gives me a new session window but none of the global variables from the calling application.
If this is the correct approach how would I place the following in the spawn argument cmdline   -  PROCESS "ARCM_INFO",%PATH_ROOT$+"dictionary/SM_CZ.EN",R2$

I don't seem to be able to do this with a dialogue window. IE Once inside the dialogue window you can't swith back and forth between the dialogue and calling program.

Thanks
Mike H

EVa

  • Gold Member
  • ****
  • Posts: 55
    • View Profile
    • EDIAS
Re: Spawning a session
« Reply #1 on: April 18, 2024, 03:19:11 AM »
As this appears to be a Nomads application, can't you use a concurrent window instead of spawning a new (but completely separate) session ?

James Zukowski

  • Diamond Member
  • *****
  • Posts: 307
    • View Profile
Re: Spawning a session
« Reply #2 on: April 18, 2024, 08:58:00 AM »
And to make things easier for the user, you could include a "Copy" button with each data field which will put it on the clipboard. They could then just click in the field and paste it.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike Hatfield

  • Gold Member
  • ****
  • Posts: 72
    • View Profile
Re: Spawning a session
« Reply #3 on: April 18, 2024, 09:39:00 PM »
What if the application is not Nomads - Character only?
Mike H