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

Hi.

I have an issue that is so basic and weird, I KNOW it's something silly I'm doing but stuffed if I can find out what it is.

In my database one of the table is called SETTINGS. There are half a dozen text fields in this table, all set to Global. The purpose of this table is to store info such as:the client's name, their SMTP server, etc etc.

The logic I have used is to have a script go to this layout, set global variables to each of these fields, then return to the original layout and display those variables.

Problem is that I can write the values into the table fields, and the script runs, picks up the variables, all happy. If I exit the database and come back in, that SETTINGS table has no values in it (the record count is OK, not that it matters), but the contents gone.

No other table does this.

Greg

First of all these are global fields, not global variables.

Secondly, this behavior is normal, and this misunderstanding about the behavior of globals is pretty common.

The globals are doing exactly what they are supposed to do. Globals are session-specific.

What you need is standard stored fields. You may also want the values stored in the standard fields to be stored in similar-named global fields for easier access by scripts, etc

Setting those global fields should be done as part of your startup script.

Do a search for "single record resource table". Hopefully others will chime in with further pointers about resource or preference tables.

Edited by Guest

  • Author

Hi Bruce.

Thanks for your response.

After a few fruitless efforts (originally), I felt a variable being set through a lobal field would definitely cover any problems, but in fact made it worse.

I changed them back to standard fields and then ensured there was only one record and the whole thing works like a charm.

Thanks for your help.

Greg

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.