Trying to make a second hidden table connected to first

Trying to make a second hidden table connected to first

bfarkasbfarkas Posts: 133Questions: 34Answers: 0

I am trying to build something like this example:
https://editor.datatables.net/examples/advanced/parentChild.html

But the example itself does not seem to be working. I am doing all javascript front end build, no server in the setup. The goal is to have a hidden table that users can add rows to. This table dictates the choices in a dropdown list of one of the entries of the main table.

Is there a better working example of this?

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 2,775Questions: 22Answers: 325
    Answer ✓

    the example itself does not seem to be working.

    The example looks fine to me. Why do you think it's not working?

  • bfarkasbfarkas Posts: 133Questions: 34Answers: 0

    I can add items to the location table, but when i select to add a new user, the dropdown does not load and will not let me save. I tried several browsers and leared cache.

  • tangerinetangerine Posts: 2,775Questions: 22Answers: 325
    edited August 14

    the dropdown does not load

    I'm not seeing a dropdown. What do you mean?

    I just added new users with no problem. Using Chrome.

  • bfarkasbfarkas Posts: 133Questions: 34Answers: 0

    There are two tables, the top one is the 'sites' table, here I can add new ones.
    The second table, the 'users' table, when i click to add new, the location field which is dropdown based on the values of the sites table remains empty. If you ignore the field and add a user, it closes the popup but does not add anything to the table.

  • tangerinetangerine Posts: 2,775Questions: 22Answers: 325

    The second table, the 'users' table, when i click to add new, the location field which is dropdown based on the values of the sites table remains empty. If you ignore the field and add a user, it closes the popup but does not add anything to the table.

    I'm not seeing that. It all works fine for me.

    Are you using the actual example, or your own version of it?

  • bfarkasbfarkas Posts: 133Questions: 34Answers: 0

    I misunderstood how the example works it seems. It is working, just not how I thought and so won’t work for what I was trying. Thanks!

Sign In or Register to comment.