PSOS runs the script and any sub scripts in the PSOS session.
Thanks for the prompt reply!
In order for sub scripts to be run within the single PSOS session, do they need to be evoked by PSOS, or can one use the simpler "Perform Script" call? Thanks again...
Taking it one step further...
If a subscript performs a basic:
Go to Layout [XYZ]
Go to Layout [original layout]
will the parent's original context be restored? Will the subscript return to the same record on the original layout from where the sub-script was called?
In general, just like PSOS looses global field context and global variable context, it seems that PSOS scripts need to be overtly "told" which layout, and which record of that layout to start on. It seems that if you merely start on record 2 of layout ABC, when you invoke a PSOS script, you cannot assume you will still be on record 2 of layout ABC on the server. It seems one must within the PSOS script overtly again declare:
go to layout ABC
enter find mode
set field to 2
rest of script
This seems necessary, to be sure the context of the PSOS script remains true?
PSOS runs on new thread on server, it starts with opening the file.
PSOS is not server compatible, so you can't use PSOS in script already run on PSOS.
As noted any script that runs PSOS runs in its own thread/session and will run the entire process that was started.
The thread (scripted process and any sub scripts) runs 100% independently from any other threads which means it has its own context in the file.
When the thread is finished it ceases to exist.
The thread behaves as if it was another user on the hosted file.