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.

Conditional Value Lists

Featured Replies

I have a table that holds all inventory in stock - CurrentInventory

This contains:

ItemID

ColourID

SizeID

Qty

There may be the same ItemID, with different ColourID, and different SizeID.

Eg:

Item 1, Colour 1, Size 1, Qty 5

Item 1, Colour 1, Size 2, Qty 5

Item 1, Colour 2, Size 1, Qty 5

Item 2, Colour 2, Size 1, Qty 5

I want to create a value list to be accessed from my Purchases section, that only lists the available ItemID, and then once that is selected, shows only available colours in the ColourID field, and so on.

How is this do-able? All the examples I have seen have 2-3 tables for the set up, but all the information of mine is stored in one table..

All the examples I have seen have 2-3 tables for the set up, but all the information of mine is stored in one table..

One would expect your example to have a table of Colors and a table of Sizes - otherwise the ColourID field must hold the actual color and the SizeID the actual size. If that's the case, you can still have your conditional value lists:

1. Define a relationship where:

Purchases::ItemID = Inventory::ItemID

2. Define a value list of AvailableColors, using values from Inventory::ColourID, include only related values starting from Purchases;

3. Repeat #2 for sizes.

  • Author

One would expect your example to have a table of Colors and a table of Sizes - otherwise the ColourID field must hold the actual color and the SizeID the actual size. If that's the case, you can still have your conditional value lists:

1. Define a relationship where:

Purchases::ItemID = Inventory::ItemID

2. Define a value list of AvailableColors, using values from Inventory::ColourID, include only related values starting from Purchases;

3. Repeat #2 for sizes.

excellent!

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.