Skip 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.

Multi-Key confusion

Featured Replies

I have researched this site thorougly for information on multi-key techniques and have seen several posts, but nothing to explain it. Please forgive a beginner. FM help says it's simply a many-to-many. That doesn't appear to be what the forum posts were referring to. What I envisioned was a method of writing more than one Key field (for instance Invoice#) within one field (Service:Invoice#) that allowed each Invoice# to be listed and it's related child looked up. I hope I'm making sense. Seems I remember something about doing this using carriage return. I think I want something similar to Colbat Sky's Rolling Log, EXCEPT, I don't want it to write to individual records but to individual lines within a fields record. From what I've heard, I DON'T want to consider Repeating fields. This (I believe) would need to be held within a text (or numberic) field and not left within a global.

Can someone clarify ? confused.gif

No, not multiple key *fields*.... mutliple values in the *one* key field separated by carriage returns.

Thusly: the following values entered into a prinary key field...

1

Yes, a multi-key field is simply a key field (defined as a text field) with more tha one line in it. The carriage return stops indexing on one value and starts indexing on the next, so that as Vaughan says, separate groups of related records can be addressed from the one key field.

To write to a key field, you would normally use:

Set Field ["YourKeyField", "DesiredKeyValue"]

but to write to a multi-key field, you would use something along the lines of:

Set Field ["YourKeyField", "Case(not IsEmpty(YourKeyField), "

  • Author

I might be confusing myself again ... that happens more and more as I get older crazy.gif but, if the multi-key is TEXT and the LineItems:Invoice# is numeric won't I have a mis-match data type?

  • Author

I think I just answered my own question. I will be joining on the unique s/n discussed, right Ray? AND, that will also be a text field.

Yes, that's right - both fields will be text. wink.gif

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.