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.

Updating Value List (based on calc that takes value list items and adds some custom items)

Featured Replies

I have a self-joined relationship: key_copyright = copyright holder so that I can filter records according to what shows in copyright holder field.

In List view, i've created a drop down with a "show" button next to it to filter my records according to what's displaying in the drop down. Eg. selecting "public domain" from dropdown then clicking "show" shows all records that have public domain in the self-joined field. This works fine.

I have a value list 1=values from copyright holder for the copyright holder field, and this works and updates pretty immediately.

I have a calc field = evaluate(valuelistitems from valuelist 1 + "all copyright holders" + Public domain)

This calc field updates well whenever a new copyright holder is inputed.

I use this calc field to then generate the valuelist for the filter dropdown, and that's where it gets stuck: It keeps displaying old data and does not update.

It works fine as is, but would be nice if the dropdown could update. Every now and then it looks like the values update, but I can't figure out what triggers it. I could easily add that trigger to the "show" button.

Any thoughts? Am I doing this in a roundabout way? Thanks!

Edited by Guest

I don't quite see the need for the Evaluate() calc. If there are records that have "public domain" in the CopyrightHolder field, then the value list based on this field should already include it. To add "all copyright holders", you could define a calculation field = CopyrightHolder & ¶ & "all copyright holders". Then define your second value list as values from this calculation field, and change the self-join to use this field as well.

  • Author

Hello, Thanks!

I think it will be easier if I copy and paste my calcs. I think I've already done what you're talking about. The need to "add" public domain is that I want it to display even when no copyright holders have that value.

copyright holder = manual entry / drop down is value list of all copyright holder values (Materials used - Copyright holders)/ this works great.

KEY_copyright key selection is a global that is just used for user to choose from dropdown of options. This dropdown is valuelist of copyright_display (see below) and is the one that keeps showing old values / does not update when new copyright holders are entered or old ones are deleted.

GLOBAL KEY_copyright (matches copyright holder in self join relationship.)

GLOBAL KEY_copyright=If(KEY_copyright key selection= "All Copyright Holders"; ValueListItems( Get ( FileName ); "Materials used - Copyright holders"); KEY_copyright key selection)

copyright_display=Evaluate(Quote("All Copyright Holders¶Public Domain¶" & Substitute(ValueListItems( Get ( FileName ); "Materials used - Copyright holders"); "Public Domain¶"; "")); Copyright holder)

I added the evaluate because the value list based on this did not seem to be updating. Still does not update with the evaluate there...

Thanks,

Stephanie

Edited by Guest

Perhaps it would be better if you posted a file. Your description cannot be correct (two fields named "copyright holder", for example).

  • Author

Sorry I can't post the file due to legal issues. I fixed the confusion in initial post. there is only one copyright holder field, which matches to GLOBAL key_copyright.

Thanks!

- S

What legal issues? Just make a copy of your file and delete everything except what's needed to see the problem. Or make a new file with just the elements you have described.

FWIW, I still don't understand your description: first you say you want to ADD the "Public Domain" value, then you show a calc that REMOVES it. What's worse, I don't understand the purpose behind this. If you need to show values that may not be in any record, use a custom value list. What makes "Public Domain" special in this regard?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.