0

Can I automatically enter different choices from a table into a Combobox from another table depending on the choice from another Combobox?

Good day all!

I'm quite new to Nin\ox and have a question. I am creating a databse for quoting, invoicing and job profit/loss on individual projects. We are a company making high-end furniture, lighting and other things for some top-level interior designers and private clients. A project could be a one-off dining table of light. Other project may have multiple components as for a condo sales centre, for example.We have divided our time tasks, I guess this would be a "Parent Table" (still not completely clear on what this actually does or means), that conatins five seperate main tasks, Woodworking, Metalworking, Pre Time, Jig Making and Client Liaison. I would create a Choice Combobox with those five elements. Next to it I would like another Choice Combobox that, if the first one was chosen as "Pre Time" it would only show the "Pre Time" tasks, namely, Design, Client Meetings, Drawings, Internal Meeting, Materials/Supplies Sourcing. If the first Choice Combobox was Woodworking, the second would automatically be polulated with the Woodworking tasks, namely (only a selection, the actual list is much longer), Material Purchasing, Cutting, Cleaning, Sanding Pieces, Planing, etc, etc.

I've attached a scren grab of my Excel spreadsheet I created as a proof of concept.

Is this possible? Is there a better way of doing this?

Thanks!

Marek

4 replies

null
    • Marek.1
    • 4 yrs ago
    • Reported - view

    So I see that automatically importing another table into a Combobox is not somehting that Ninox can do, am I right? So how is the best way to do this? I can go the heavy-handed way and do a CHOICE Combobox for each of the five activities, but I was hoping for only the CHOICE that the original Tasks choice to be visible. Is this doable?

    • Marek.1
    • 4 yrs ago
    • Reported - view

    So perhaps I can use the "Display field only if" but in my data entry it would always be visible, correct? I was thinking of  writing an if statement in that "Display field only if". It still would not be as elegant as what is happening in the spreadsheet though.

    • Sean
    • 4 yrs ago
    • Reported - view

    You are correct that it is not possible to create Choice fields on the fly, yet. I would use a switch statement instead of nested if-then-else statements, but that's a personal call. The path to achieving the result won't be as elegant, but the result itself should be ;-)

    • Marek.1
    • 4 yrs ago
    • Reported - view

    Thanks Sean! I'll see what I can learn about the switch command.