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.

Value Lists - Showing Active Records Only

Featured Replies

I have a table and layout devoted to 'Courses' which has a Course ID, Course name, room number, etc. Also, courses are given a "Status" as either Active or Inactive.

I then have a 'Registrations' table and layout where I pull courses into via a value list. The value list is comprised only of the Course ID and Course Title...and it works fine.

I'd like the value list in the Registration layout to only display those courses which are Active. I tried doing this:

If (Status = "Active" ; CourseID ; " " )

along with this:

CourseTitle&" "&Section&", "&Program

The idea was to create a value list based on these two field calculations. Admittedly, I am not well versed in scripting. This was a good guess but it didn't work. I, obviously, have to have Course ID in the mix as it is the primary key and is the relationship with registrations.

Any ideas?

Jason

  • Author

Ok, I have found that one of my problems was trying to use two calculations in the value list. If I just use this :(

If (Status = "Active" ; CourseID ; " " )

and Course Title I get a full list of courses in my drop down. However, if I test to see whether or not an Inactive course makes the list I find that it does but without the CourseID. Only the Course Title shows up. So I've one part of the battle. Now, what do I put at the end of this statement instead of "" that will keep it from displaying at all?

If (Status = "Active" ; CourseID ; " " )

You can use Case (Status = "Active"; CourseID ), then when defining your value list, reference this field as the primary instead.

  • Author

Excellent! Tha did the trick.

What I ended up doing was this:

Case ( Status = "Active"; CourseID)&" "&Case ( Status = "Active"; CourseTitle)

This assured that if Course ID and CourseTitle were Inactive then neither would show.

Thanks so much!

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.