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.

loop through value list?

Featured Replies

hi,

I'd like to find out if it is possible to automatically select the next value in a value list through a looping script, in a similar way to the go to record (first/next - exit at last) options.

I'd like to use this for my room bookings database. I have relationships set up to show if a particular room is unavailable at a certain date/time period and I would like a script to loop through the list of rooms, and copy the names of rooms that are available into a global.

Thanks,

PJ

If you filter the relationship to show just the rooms that aren't booked for the specified day, you can allow the user to select from a value list based on that relationship. If you still need it, use the ValueListItems() functions to see the value list items in a field. This can be put in an unstored calc, no loop is necessary.

You might be interested in this sample from a previous thread:

http://www.fmforums.com/threads/download.php?Number=128841

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.