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.

DwindlingValueList Sample - No Joy when match field is empty

Featured Replies

I have been playing with the attached sample file for the dwindling value list, but have struck a problem in that the dwindling list only displays if there is already a value in the matchfield. If the matchfield is empty (or contains just a pilcrow) the value list doesn't display.

The value list depends on an inequality (≠) relationship between a calculated field and a related field from which the values are drawn, but Filemaker doesn't seem to evaluate it if the calculated matchfield is empty, even though the window is refreshed via a script.

http://fmforums.com/forum/attachment.php?attid/10308/

I have managed to work around it by having the calculation set a "nonsense" value if there is no valid relationship, but is there a better/more "elegant" way?

In the calc, make following change:


// FOR VERSION 8.5:

"~¶"& List ( Affiliations::OrganizationID ) & "¶ " 



// FOR PREVIOUS VERSIONS:

// "~¶"& ValueListItems ( Get (FileName) ; "MyOrganizationsIDs" ) & "¶ "

...allthough there seems to be done something like it; a in the end, that you perhaps have ignored

--sd

Edited by Guest

  • Author

Thank you Soren.

I didn't ignore it; just didn't notice it.

Happy gadflying!

I am somewhat confused here. First, you say something doesn't work. To illustrate the point, you link to a file that DOES work. Next, Søren suggests how to fix the file that works. Is this a conspiracy to drive us crazy, or what?

No I fixed something that already were fixed, only the quetioner havn't paid enough attention to the tiny after the final pilcrow.

--sd

I fixed something that already were fixed

Exactly.

  • Author

I am somewhat confused here. First, you say something doesn't work. To illustrate the point, you link to a file that DOES work. Next, Søren suggests how to fix the file that works. Is this a conspiracy to drive us crazy, or what?

Thanks Comment. The file indeed does work.

After editing the Calc.

Attached is the calc as provided. I am using FMP8A and there is no "tiny space" after the final pilcrow. No conspiracy either.

Soren's post just pointed out that the calc for pre-8.5 versions needed to be finished off same as the 8.5 version.

AsProvided.png

OK, now it makes a little more sense. I didn't notice your application version, and I have never tested the calc on version 8.

The strange thing is that it does work "as provided" in version 7 - but not in version 8.5, and apparently not in version 8 either (I don't have 8 installed).

The cure is indeed to change the calc to:

ValueListItems ( Get (FileName) ; "MyOrganizationsIDs" ) & "¶ "

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.