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 list : Exclude selected values

Featured Replies

For a database for articles, Each article has multiple tags. I have a basic setup with a portal showing records from the join table between Articles and Tags. I am trying to create a value list for tags that updates itself showing only unselected tags for an article. ARTICLES::cSelectedTags is a calculation=List(ARTICLE_TAGS::TagID_fk)&¶

Then ARTICLES::cSelectedTags is connected to a duplicate TO of TAGS::TagID using a not equal relationship operator. A value list is built using this relationship, would exclude the tags selected in the portal ?

Attached images show the relationship graph and setup for value lists.

For some reason the value list does not work? Any suggestions to fix it?

post-106903-0-71827200-1344149758_thumb.

post-106903-0-94758900-1344149791_thumb.

ARTICLES::cSelectedTags is a calculation=List(ARTICLE_TAGS::TagID_fk)&¶

Try making it =

List ( ARTICLE_TAGS::TagID_fk ) & "¶0"

See why here:

http://fmforums.com/forum/showpost.php?post/274656/

  • Author

Thank you very much for pointing out that article.

That article says "In version 9, a field used to match a Number field in a ≠ relationship is considered empty, unless it has an actual number in it."

The match fields in my case cSelectedTags and Article_TAGS_forVLunselectedTags::TagID are text fields. Does this mean that I have to use the Serial# field rather than the TagID text field (which is actually an autoenter calculation = SerialIncrement("TAG000000";Serial#). So updated the calculated field with a fictitious tagID "TAG99999999" to be appended to the top of the cSelectedTags

The only problem that I now have is that I have to manually refresh the window for the value list to update itself. Selecting a new tagID in the portal does not automatically update the value list to reflect the unselected Tags !!?

  • Author

OK, I get it after going through the attached fp7 file.

Thank you very much.

Case closed :)

If TagID is a Text field, then the matching field on the other side of a ≠ relationship must contain some text - for example =

List ( ARTICLE_TAGS::TagID_fk ) & "¶ "

Of course, this =

List ( ARTICLE_TAGS::TagID_fk ) & "¶0"

would work with both types.

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.