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.

Featured Replies

I am using a global variable to capture the current value in a field and then re-insert that value if the new value chosen is invalid (statuses must follow a pre-defined progression). If an invalid status is selected, I display a dialog that says the selected status is invalid and then my script inserts the value of the global variable to restore the status to the original value.

I am thinking I will have a problem with a multi-user system (which this is). If my co-worker and I change statuses on two different items at the same time it looks like one of us may end up with the wrong status when finished.

Are global variables restricted to my login or are they system wide? My guess is that there is one global variable for the entire system and therefore I may run into an issue with my current scenario.

Any thoughts would be apprciated.

Global variables and global fields are session specific. Each user in a multi-user system has their own. Global fields default to the value that the field had when last closed as single user or what is explicitly set in a Startup script.

Btw, I don't see the need for a $$var, why not just capture $orig_value?

Edit: Why can't your system calculate status rather than have the user set it?

Edited by Guest

  • 2 weeks later...
  • Author

bcooney,

Thanks for the reply. This is good news. I was concerned that a global variable set by one user would be accidently referenced by another user logged on at the same time. Since globals are session specific this won't be an issue.

My understanding is that you must preface a global variable with "$$". Otherwise it is considered a local variable if you only use a single "$". Is that not the case? This variabe is being set in one script and being referenced in another. Doesn't this require a "$$" before the name?

Thanks again for your help.

There are two ways for one script to "know" about a value in another script. The first way is to use a $$var, since their values persist for the entire session, until set to nothing. Another way is to pass a value to the other script using a script parameter. I often use a subscript that returns "an answer" to a calling script using Exit Script ( myValue). Then in the the calling script use, Get Script Result. You do not need to declare a $var.

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.