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.

creating a key with patterncount function

Featured Replies

hi.

background: a publisher's contact database.

i'm trying to create instances of a contact table that only show 1 kind of contact (1 for editors, one for authors). there's currently a field that holds the "contact catergory", but it's not quite adequate to create a relationship on. for example, it holds information such as "US Editor" or "Foreign Editor". I need a key that is just "Editor" to create the relationship based on another global field (editor key or author key).

I thought I'd make a calculation field and use patterncount such that any record with "Editor" in the "catergory", regardless of what kind editor, would just get plain old "editor" in this calculation. but i can't get it to work.

any advice?

Am I right in assuming that these contacts live in a related table?

In this case, they will hold a foreign key to the "main" table.

My approach would be:

1. Add a calc'ed field like "IDforEditors", with "case (patterncount (categoryField ; "Editor" ) ; foreignKey ; "" ).

2. Add a table occurence of the related table, which you link with the "Main" table's primary key to the calculated foreign key. Do likewise for all other categories you want to filter on ("IDforAuthors" etc.).

3. To only show one related record for each category, just display the fields from each TO on your Main tables layout (outside of a portal), or if you only need the data in some other calculation, just refer the fields with that TO - in either case you will only get data from one (the first) record, which I think is what you wanted.

Hope this helped.

cheers,

eos

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.