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.

ID fields Text or Numeral

Featured Replies

What is the advantanges or disadvantages of using ID files as a Numeral or a Text.  I am seeing both being used and since I am brand new to relational databases using id  _kp and _kf  fields I am trying to get started right. 

 

Thanks.  I did search the forum for this info and didn't find it.  It seems to work either way in my experiments. 

 

Mark Jones

Mark

 

the important part is that they are Unique and not mismatched so as to not rely on a Text ID field and a Number ID field matched in a relationship in some cases it will fail especially if you are using these fields in an SQL query,

 

Numbers are smaller take up less space. However require some planning to make sure they remain unique ( imports ) 

 

Text as ID field can use Get ( UUID ) function which returns a unique string essential for syncing solutions and for solutions that are distributed.

 

using the _kp or KEY PRIMARY and _kf or KEY FOREIGN is just a way to label what that field is used for. In most cases my preference is just to make sure that each table has an ID or UID field and that any other table where there needs a foreign key simply just label it so as uid_customer or uid_invoice always knowing that a uid ----< uid_entity is the relationship.

 

Unique to FileMaker is the muti-key when you can take a text field with return separations such as "1001¶1002¶1003" and match that field to the unique table in another table useful as a way to populate a portal based on a scripted logic to derive the list of IDs needed to sustain the relationship. In this case a text field and a number field will work.

 

This was a much used technique before we had multi-predicute relationships (fmp7). and still very much used.

  • Author

Thanks for the information.  I saw it being done both ways on youtube help videos and was curious. 

 

Filemaker is a great product and does so much. 

 

Mark Jones

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.