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.

double record numbers - performance question?

Featured Replies

Hello,

I'm having a problem with our order database. Two people are using the db. Every time one of the 2 wants to create a new order record a counter is increased and the order number field of the new record gets an automatically assigned order number. Works fine, except that every now and then (once in a month or so) they get two times the same ordernumber. I've already explained them that when they create a new order, they have to make sure the first field is filled in, and they have to switch to the next field (to make sure the new record is really written). But it still happens. What can I do?

Could it be that my FMpro server (v5.5) puts his write-commands and other to-do's in some queue somewhere and continues with the application? Or are the changes applied really really immediately directly pronto right now without delay?

In case it's done whit a queue, could it be that, worst case scenario, I have to wait seconds, even minutes, before the changes are applied? The server also is a PDC, antivirus server, and does some printing from time to time.

Thx,

bart

Is it a counter in field updated by your procedure or autoincreased field?

  • 2 weeks later...
  • Author

Sorry for the late reaction, Anatoli

I have 2 fields :

OrderNr. type:calculation options:Indexed,LastOrderNr. + 1

Last OrderNr. type:number

The script for adding a new record goes like this :

Enter Browse Mode []

Show All Records

Sort [Restore, No dialog]

Go to Record/Request/Page [No dialog, By Number...]

Go to Field ["OrderNr."]

Copy [select,"OrderNr."]

New Record/Request

Paste [select,"Last OrderNr."]

Go to Field ["Client"]

bart

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.