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.

generating unique id for key field

Featured Replies

:( I know there has to be a simple, elegant solution for this, but I seem to have brain-lock. I have a simple database with three tables. The first and second table is related with a one-to-many relationship. I currently have an id created by using Auto-Enter Serial Number field options.

Serial numbers work great unless you need to later work on a copy of the database to make changes and then import the data into the modified file. Obviously when you do the import a new set of serial numbers are generated - not good. What is the CORRECT method for generating serial numbers that won't recalculate/redefine with import into a duplicate database.

you could use the number equivalent to the time stamp and concatenate the record id. that should be relevantly a good general use UID

check this out

http://fmforums.com/forum/showtopic.php?tid/100135

Edited by Guest

Whoa, you do not generate new serial numbers on import. Turn off that option when you import and just bring your records in with their original serial numbers. Remember to sort by serial number field and find the maximum value and set the counter to one number greater than that maximum.

All this can be scripted, and done with a click of a button. Use the Set Next Serial number script step.

Or, work on the system while it's down or make small changes while it's in use and avoid the import/export routine altogether.

You can also try 360Works ScriptMaster Plugin it is Java incased in a plugin it has a function to create UID's

http://www.fmforums.com/forum/showtopic.php?tid/189032/

  • Author

The ideas so far are good. I've got a nasty calculation that would create a unique identifier if I didn't want to use the serial number. I don't want to get locked into having to set the import to avoid auto-updates...I may need that feature.

I want to create an id (some calculation) and then never let it change again. I wish I could always do updates on site or via VPN, but it's not always an option...

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.