Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PSOS - globals, variables, etc

Featured Replies

I am wondering how globals are treated when running a Perform Script On Server.  I know the user that 'starts' the script is the logged in user / account when running the script, so the security permissions are used but are globals independent for each PSOS 'session' or do they carry forward for multiple PSOS scripts?

An example might be better to illustrate my questions ...

1) a user runs a script that runs on server 'PSOS' that is set to NOT wait for completion, and in that script some globals are set, then various functions are run

2) the same user immediately runs a different script PSOS that is again not set to wait for completion and this script works with the same global fields.

 

When the second script is run, will the global fields still have the values from the first script OR will the second PSOS start with a blank slate where the globals need to be set fresh?

Each PSoS call is the equivalent of the user opening and closing the FMP file.  So global fields and all variables do not persist between the user's local session and their PSoS calls or between PSoS calls.

  • Author

Wim, this is very helpful.  Thank you very much!

I believe if you also have an on first window open script step that does a lot of house keeping you may need to add some logic and if running on server ignore the bulk of these tasks. Or if you require to have global variables or fields instantiated required for use in your script you need to do so. Any subscripts which may HALT on desktop for normal use will prevent the PSoS from executing.

 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.