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.

Best way to creat conditional value list in this instance?

Featured Replies

I'm creating a database for a company which fixes computers.

Whenever a customer comes into the company's shop, a record is added to a "session" table. This record includes a customer ID, computer ID, the time the session started, and the time it finishes (left blank until the session finishes, obviously).

I have another table called "session events". This table contains one record for every event that happens during the session: for example, "replaced motherboard", "installed filemaker" etc.

"session events" is linked to "session" via a session ID number, which is a serial number generated when a new session is created in "session". I want to create a conditional drop-down in "session events", that lists only those session ID numbers associated to events that are currently "open": i.e., those that exist in "session" but don't have a "session closed" time entered.

I'm a complete n00b as far as FM is concerned and although I've read through a number of tutorials and forum posts I'm none the wiser. There seems to be a number of ways I can do this, and I'm not sure which is the best way to proceed.

Create a new calc.

Case ( IsEmpty ( session closed ); session ID )

Use that calc field in your value list.

  • Author

Thanks for that. Could you go into a little more detail? Like where I create the field, what I have to select when I specify the contents of the dropdown, etc? I would really appreciate it as I'm totally new to FM.

Many, many thanks. J.

The calc is created in the session table. Then create your value list based off that calc field.

You can then attach the value list to layout based on seesion events.

  • Author

Thanks, that works perfectly.

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.