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.

Generate value list from number

Featured Replies

Hi All,

I don't know if it is possible but I would like to generate a value list based on a field (Jobs::sets) with a number. If the number is 5 for example, I would like to be able to have a drop down list of numbers 0 - 5 as well as a selection for all. So it might look something like this:

-All-

1

2

3

4

5

Any help is greatly appreciated

This can certainly be done with a separate table containing the numeric values you want to display.

Set up a value list to show only values in the related table starting from the current table. The relationship is values less than or equal to the number you have in your field (e.g. 5).

  • Author

So let me see if I understand correctly. In a new table I would have a field called number, then create a record for each number up to the maximumum that I need. Then I would create a relationship from Jobs::sets to New Table::numbers ( less than or equal to Jobs::sets ). Then set up a value list based on the number field and showing only values in the related table starting from Jobs?

Is that correct?

Edited by Guest

Yes, that is correct.

Adding in an extra entry "-Any-" to the value list will be trickier but not impossible. One way might be to add a second field (for value list display) to the new table. An extra record with a number '0' could hold this "-Any-" value so that it would appear on all lists.

  • Author

I do know a technique for adding the -All- with a calculated field.

xset_select= "-All-" & ¶ & ValueListItems ( Get ( FileName ) ; "Sets" )

So I should be ok there.

I got pulled away from the project today but I am sure I understand it so I should be all set when I get back to it.

Thanks so much for the help.

See if this helps:

http://www.fmforums.com/forum/showtopic.php?tid/155474/

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.