Skip 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.

Issue with global variable

Featured Replies

I have a separate table in my system containing 5 variables. Invoice number, cash order number, packing slip number etc.

This number is retrieved via the set field function, and the new incremented number is set (back) via set field; invoice number = invoice number + 1 etc etc.

However, I've noticed now that for some reason, these 5 variables has recently been reset back a day, ie, i've suddenly ran into duplicate invoice numbers.

I've found no fault in my code, and it works perfectly when trying it over and over again. Can some client accidently set these variables back? Lets say you don't use a client for a couple of hours, then suddenly something happens and the variables are reverted?

Ive made over a 100 invoices with this setup, and I only have 10-12 duplicates, mosty dual duplicates, one or two triples.

any suggestion?

Edited by Guest

When you say variables, do you mean fields set to global storage?

Is this system hosted or single user?

Finally, you should rely on FM's builtin auto-enter serial numbers for unique key ids in each table, rather than generating them yourself.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.