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.

Filter Drop Down and Popup Value List not working

Featured Replies

I have been struggling with this one for too long, and I believe that it should be simple, so I'm here to ask for help. 

 

I have an Employees table. The user can mark an employee "Inactive" when they are no longer with the company. It's a number field with 0 if they are still employed and 1 when they are no longer employed. 

 

I am trying to show only active employees on my drop downs. I can only get it to show ALL employees and I'm not sure what I am doing wrong.

 

Here's what my TO relationship looks like:

 

EzuNRVg.png

InactiveKey = 0

 

Here is what my Value List looks like: 

M5jXWvQ.png

 

What am I doing wrong?

 

Thank you,

Ryan

 

 

What am I doing wrong?

 

Hard to tell without seeing your fields and, possibly more interesting, their types and contents.

 

Here is a working sample: 

ActiveEmployees_eos.fmp12.zip

Hi eos,

I was just getting ready to say the same thing. I’ll add, be sure that the related fields, are not a result of a calculation.

 

Hi Ryan,

 

It speeds up the process sometimes if you attach a copy of your files or a mockup.

 

Lee

First, your mistake is that your value list is set to show values from Employees::UserID, instead of from Employees_Active_TO::UserID. The 'starting from' TO is also wrong: it needs to be Employees, not Employees_Active_TO.

 

 

Note that you could make this much simpler by defining a calculation field cActiveUserID =

Case ( not Inactive ; UserID )

and base your value list on that, without requiring any additional TOs/relationships.

  • Author

comment, your solution was incredibly simple. I am switching to that and thank you.

 

Thank you, Lee and eos for your information as well. I wasn't aware that you could not use a calculated field in a relationship as I thought I had seen that on an informational blog.

I wasn't aware that you could not use a calculated field in a relationship

 

That's an incorrect statement. The only limitation is that the matchfield/s on the "other" side of the relationship (the one that supplies the related records) must be indexable. This would rule out unstored calculation fields - not calculation fields per se.

  • Author

Ah, OK. I will keep that in mind. But still, I like your solution better than the direction I was going.

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.