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 based on True values in checkbox set

Featured Replies

I have a table called Items. This stores information regarding different items, with fields (eg: ItemID, Name, Description, etc.) and a field called AvailableColours.

I have a table called Colours (with the single field called Colour) , in order to make a value list from the values in this field. I have it this way as it will be easier to add a new colour to this table rather than a custom value list.

I have a table called Orders with fields ( OrderID, Date, etc.) and another table called OrderLineItems with fields LineItemID, OrderID, ItemID, Qty, and also Colour. The OrderLineItems table fills each order through a portal by adding items, etc. This works fine.

My problem: In the Item table, AvailableColours is a checkbox set, using the value list made from the Colours table.In the OrderLineItems table, I want the Colour field to be a drop-down list made from all the available colours (those that are checked in the AvailableColours field on the Items table), and excluding those colours that are not checked.

Is this doable?

Have a look at this example.

Note that the problem with conditional value lists is that if you subsequently invalidate the relationship, the built-in value lookup can't resolve the value anymore and you see just an ID; but there's a workaround for that.

ColorSelection.fp7.zip

  • Author

Have a look at this example.

Note that the problem with conditional value lists is that if you subsequently invalidate the relationship, the built-in value lookup can't resolve the value anymore and you see just an ID; but there's a workaround for that.

This is close, however I want the Colour selection on Items rather than in the Order. I tried to make it work but with no success. I've attached my file.

When I make the value list of AvailableColours only use related records, it does not show anything...

I think this is what you are looking for: http://fmforums.com/...ts/#entry393419

This example would work, but how would I go about converting the checkbox data to a table (without having to do it manually)... I am familiar with scripting but can't determine how to loop through each of the checkbox values to determine if they are true or false... If i could do that I could have a script to generate that table for me!

No file attached.

I guess this is what you want. Make sure to understand which value list does what and how they're generated

Test_conditionalVL.fp7.zip

There were a couple things that needed adjusting...

  • Colours value list needed to return ColourID and Colour, not just the Colour
  • AvailableColours value list wasn't using fields from the AvailableColours table
  • Orders table, OrderLineItems portal, colourID field should be formated as a pop-up menu so it shows the colour rather than the colourID

Modified file attached.

I guess this is what you want. Make sure to understand which value list does what and how they're generated

hehee... You're always just a little bit ahead of me - I never see your post until after I reply.

TestDS.zip

hehee... You're always just a little bit ahead of me - I never see your post until after I reply.

Just because you spend time on education. :thumbsup:

  • Author

I guess this is what you want. Make sure to understand which value list does what and how they're generated

I am still having trouble making this work...

In the AvailableColours value list, is says the fiels come from colorCheck__Colours. But this does not appear in the relationships diagram. This is just another instance of the Colours table correct? What is it's relationship to everything else?

  • Author

I am still having trouble making this work...

In the AvailableColours value list, is says the fiels come from colorCheck__Colours. But this does not appear in the relationships diagram. This is just another instance of the Colours table correct? What is it's relationship to everything else?

actually got it working looking at the other example! thanks for your help!

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.