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 from two fields in two different tables

Featured Replies

  • Newbies

As the subject states, I would like to create a value list with data from two fields in two different tables.

Is this possible?

Hello admiralpumpkin,

Welcome to the forums!

There is no native feature for the creation of compound lists. However it's possible to script the creation of such a list.

So if you require a drop-down list, for instance, you might define the field as a button which assembles a current version of the combined list prior to activating the field. :(

I think it is, hopefully this is what you mean.... example attached.

In short:

1) create a value list of each seperate field you want to use in the combined value list.

2) create a table for the sole purpose of storing the combined values. Create a calc field in this table = ValueListItems("MyDBFileName";"MyValueListName1") & ¶ & ("MyDBFileName";"MyValueListName2").

* note: "& ¶ &" seperates the last value in the first list from the first value in the second.

3) Create a value list that is based on the combination calc.

Where I see a problem is adding or removing values from either field. The Combine field will not update since it can't be an unstored calculation and be used in a value list.. ugh. So I turned the entry field into a button (and disabled it from being entered in browse mode) that triggers a script that deletes all records in the Combine table and then creates a New Record, in effect refreshing the calculation. Maybe someone can come up with a better way to refresh the calculation.

TwoFields.zip

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.