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.

conditional VL - not working find mode

Featured Replies

I have several variations of conditional value lists that work fine in browse mode (fm8.02) However, they do not work in find mode.

The simplest one I have is this: I want to isolate class agents in my people database. I check a text field for "class agent". (indexed). I create a calculation called zClass Agent that is a text calculation with the words "Class Agent". I make a TO to filter these values and voila. I get a filtered list of just my class agents. However, you can't search on it in find mode. Is this a common problem in fm8.02 or am I missing some big lightbulb with filtering?

Look at the field control behavior of your field and make sure you have "Allow field to be entered In Find Mode".

  • Author

Yes, I have allowed fields to be entered in find mode.

I have other conditional value lists (on a portal) that do the same thing. It will show the both conditions fine in browse mode, but then in find mode, it will display the first set of conditions, the . It is not a field behavior issue - it is definitely either in the relationship or filtering in 8 just sucks.

I think what's happening is that you are trying to find on a subset of your value list. For example, if I have a grouping for FRUITS and MEATS, my value list will have Oranges, Pork, Beef, Apples, Grapes, Veal, etc. Thus, I first click on the main grouping and select FRUITS, I expect to see only Oranges, Apples, Grapes in the subset. If I first click on the subset, there should be nothing since I have not yet define my main group that I want to filter from.

My recommendation would be to use a find script where a user will be prompted "What would you like to find? MEAT or FRUIT, then setting your main grouping based on the user selection and then have a go to script step that will go to the subset and will only show the filtered value list.

Enter Find Mode

Show Custom Dialog ["What Would you like to find?"]

If Get (LastMessageChoice) = 1

Set Field [Maingroup; "Meat"]

Go to Field [select; Subgroup]

else

Set Field [Maingroup; "Fruit"]

Go to Field [select; Subgroup]

End if

Pause/resume script[]

Perform find[]

Edited by Guest

  • Author

I don't have these kind of issues in filemaker 6. You can have conditional value lists based on a subset and everything works fine -even when finding. You choose the main category, then based on that main category, the second list filters properly. I just don't understand why I am only having trouble in find mode.

I hear you. I've also been having some problems with portals not refreshing properly.

Could be a bug, or could be a relational setup issue.

I create a calculation called zClass Agent that is a text calculation with the words "Class Agent". I make a TO to filter these values and voila. I get a filtered list of just my class agents. However, you can't search on it in find mode.

In Find Mode, the calculation is not evaluated (how can it be, when someone might want to enter find criteria in it?) so the relationship for your conditional value list cannot be established.

The solution is to change your zClass Agent to a text field with global storage. Then in Browse Mode, insert the filter text. BTW: If you might have other categories that you'd want to filter by, you can use the same global field, so you might change the name of it to something more general.

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.