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 drill down to data

Featured Replies

I have two tables, table A with a one to many relationship to table B. Table B has 3 fields per record that describe the item. One field is "Category", the second field is "SubCategory1" and the third field is "SubCategory2". In a layout for Table A I want to build a series of 3 value lists that drill down to the item in table B and report in a portal. The top level value list would populate with the Category data, the second level value list would then populate with filtered data based on the category data. The third value list would populate with filtered data based on the subcategory1 value and thereby showing me the records in a portal that meet all these criteria.

I have tried this many different ways and continue to run into a dead end. I cannot be the only one trying to do this between two simple related tables.

Without knowing the extent to the data and assuming you are limited to 3 category levels... you could just have 3 tables and link them 1 to many -- 1 to many -- 1 to many....

That is the easiest....

If you are looking to dynamically expand the category levels... well you'll have to be a little more elegant.

  • Author

Thanks for the reply Jamie. I don't want a third table in this scenario. I just need the value lists to drill the data down.

Daryl

your value lists have to come from somewhere... and, I don't know of any other way to make value-lists dynamic.

here is something that basic does what you've requested... but not in the way that you want... have a look at it and see what's going on.

categories.zip

  • Author

Hello Jamie,

That is exactly what I'm looking for. I will have to study how your relationships work as well as how your value lists are set up but the result is what I'm looking for. Thanks so much for the help.

Daryl

So... I got to thinking about this thing, this morning. I thought, wouldn't it be cool to be able to use a repeating fields instead? That way you would have far fewer fields to setup...

So, I made changes to the example file to include just such a senario.

Have a look... Make sure to install ZippScript before you open the DB, if you don't already have it.

:

categories.zip

There is a problem with the examples as presented... They don't work properly in find mode... B)

Sorry... I am looking into it.

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.