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.

Creating Subset of Value List

Featured Replies

  • Newbies

I have a table of over 10,000 health codes that I'd like the user to select from but I'd like to limit the list to the most relevant ones.  I've added a field in the table called "relevant" and I'd like to display all values with this field set to "Yes"  When the user selects one of the codes it should populate a portal row.  I know how to do it easily in MSAccess but I've tried using a multi-predicate selection in FMP12 without any success.  Have any ideas?

 

Brian

I'm fairly new to this, but I am currently doing something similar so I might have a solution.

 

I would suggest doing the following: Create a table and populate one field with your list of codes. Then, create a number field, "Relevant." Go through your list, and for each one you want to be on the "relevant" list, put a 1 in the relevant column. Relate this table to others as necessary

 

Next, create a filter script that will filter out records without a "1" in the relevant field. In your data entry layout, tie a dropdown list to that list of codes. When prompted to chose values, select use field and select the values. Finally, next to your list, put a button tied to your filter script. When pressed, it will sort out non-relevant codes. This will allow you to have both long and short lists.

 

I think that would work, but I'm a novice.

I have a table of over 10,000 health codes that I'd like the user to select from but I'd like to limit the list to the most relevant ones.  I've added a field in the table called "relevant" and I'd like to display all values with this field set to "Yes" 

 

A simple way to achieve this is to add a calculation field to the Codes table =

Case ( Relevant = "Yes" ; HealthCode )

then define your value list to use values from this calculation field.

 

 

Note: if you make Relevant a Number field, using 1 for True and 0 or empty for False, you can simplify the calculation to =

Case ( Relevant ; HealthCode )

 

 

 

 

 

I think that would work, but I'm a novice.

 

Why not try it out yourself, before suggesting it to others?

  • Author
  • Newbies

The "Case ( Relevant = "Yes" ; HealthCode )" worked great.  Thanks for the quick reply.

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.