TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
Group checkboxes - pizza toppings example
I would like create multi-level check-boxes on a form similar like the attached image.

the result should be stored in a multi-reference style setup.

e.g. I create a table of 'toppings' with each topping (bacon, mushroom...) given a category (meat, vegetable...).

Suppose I then create an 'orders' table where a user can order a pizza and choose their topping on a single form. There would be a multi-reference relation to 'order-toppings' to store their selection. I only want to store the order and the topping(s) but not the category.

Anyone know of a way to create such groupings with hierarchical checkboxes interface within TeamDesk ? I dont want to hard code all the toppings as separate columns.

thanks
Nick


ID
1973
Category
TeamDesk
Author

Nick Ashcroft
Date Created
4/4/2023 2:21:18 AM
Date Updated
4/5/2023 6:02:17 AM
Comments
cooper collier  4/4/2023 4:49:49 AM
A couple ways:
Name your Column Meats: Have your choices be they types of meat.

If you want on choice per meat, then

Go to Database Tab: Labs.. Turn on "Form Layout with Drag & Drop"
Now make a section on the form called Meats and organize your meat type columns in that section.
Nick Ashcroft 4/4/2023 6:15:15 AM
thank cooper - I was hoping to be able to do something purely data driven in my scenario (its not pizza!) without resorting to strict column names or form sections/behaviours !

any other creative ideas ?
cooper collier  4/4/2023 6:38:01 AM
The other solution is to use a selection table. There is a variety of ways to do this, without knowing your exact purpose....

Essentially; you have another table with your choices. Sometimes two tables. Table is Pizza toppings... and has a column for Type, and Name and price. Then you make relations one for each choice. If its a meat choice, you can limit the picker to only meat items from the Pizza toppings Table.

You do need to watch out for things when doing this.
If you direct link to your selection table, you have to remember that if you ever change anyting in the selection table it will change everything already in the database.

Sometimes you want this, other times you do not.

Example: We recently are creating a way to make invoices. We have a table of FEES, Then Invoice and invoice Item.
Fees have items like... paperstacking - $50 ; laundry - $100.

We make an Invoice and then add Invoice Items to it.

INVoice # 1111

Item 1 Paperstacking - $50
Item 2 laundry...

But now we can never ever change those items in the FEES table! If we did, then past invoices change, that would be bad.
So, what we do is in the Invoice Item table, we make new columns... I like to use ATO (at time of order) thus, [ATO Item Name] and [ATO Price]
Then I set the default value for those columns to the values from the picked FEEs Table.

If I made this as clear as the Mississippi river, I think I explain it better in the videos about relations.
Or you can email me directly with your use case and I can give you a better possible solution.







Nick Ashcroft 4/5/2023 6:02:17 AM
thanks Cooper - Ill do some experiementation and check out your proposals
Nick Ashcroft 4/5/2023 6:02:17 AM
thanks Cooper - Ill do some experiementation and check out your proposals
Feedback
Back to Search Results