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

On the setup screen where we specify primary keys in 2.6, there is a column labeled "Custom PK" that accepts a SQL statement.  The help button for that column doesn't do anything and I was unable to find anything in your documentation.

I'm thinking of using it to specify "SELECT xp_AssetID + '.US' FROM Assets" so that the primary key going from the spoke to the hub has the particular spoke's user code appended.  Is this what the function does?  And then when it if it comes back to the spoke it is just the original xp_AssetID (without the appended code)?

 

Howard

I assume this is for a non-FileMaker database, right? I don't think that checkbox appears for FileMaker.

The original reason for this checkbox was to run a stored procedure / trigger in the SQL database that is responsible for generating the primary key. That value would then be stored into whatever column is indicated as the primary key.

I don't recommend it for the purpose you're proposing. I would recommend using either an incremental serial number, and specifying MirrorSync-managed keys, or using a UUID and specifying developer-managed keys. You can certainly give it a shot on a test database to see what happens, but I can tell you for sure (if you select developer-managed keys) that the primary key will be the same in both directions - it will not add or drop the prefix depending on which way it's going.

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.