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.

Global variable problem

Featured Replies

I have a table with invoices, and a table with the current invoice number. 3 users are connected to the server wich is hosting these tables.

I've been using the global variable function to store the most recent invoice number. I also have used the "Set field" function, something like this:

Set field: invoice number; number_table:invoice number

and then, I must update the invoice number so I use set field again and enter invoice_number+1

this works really great with one user, but not with 2, because the global variable is not global enough. It's only updating on the local computer, and not on every connected client.

How can I solve this issue?

because the global variable is not global enough. It's only updating on the local computer, and not on every connected client.

How can I solve this issue?

Globals are unique to each client.

Invoice number should be an AutoEnter field incremented by 1.

Michael

  • Author

What kind of routine would you suggest would be the best in order to retrieve and update the invoice number?

Not usre why you would want to "Update" an invoice number.

Define a new field. Click on the options button>Check the box Serial Number> Choose the next value you want and increment by 1.

Then every record that is created will get a Unique Invoice number.

Michael

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.