• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Merge Tables

peppe10

Member
Hello to all
I would like to try to get the following form.

fields:
surname: field
name: field
xxx: field

selection: cascading dropdown (A-B)

If I press B I would like to show a new form / list where I can fill in data related to the current record.

Which post should I follow to try to understand how to set up relationships?

Thanks in advance to everyone
 
Sorry, I don't understand what you are trying to achieve. What does A-B mean? Is "selection" an element on your form? Where's the join element it is watching?

-- hugh
 
Hello, AB are the values of the combo box in the first module.
If I click on A it remains the same value.
If I click on B, they should see the fields of another module and be able to populate them.
Thanks again
 
OK, I'm still not sure what you are trying to do.

If I press B I would like to show a new form / list where I can fill in data related to the current record.

Do you want to open another tab in the browser on a different form? Or open a popup on a different form?

When you say "related to the current record", related how? Will the other form have a "foreign key" pointing to the ID of this form?

-- hugh
 
A pop-up on a different module would be better.
Yes, of course, the other module will have a "foreign key" that indicates the ID of the first module.
Thanks again
 
I think the easiest way would probably be to create a List join (under the Data tab in List setting), and create a join from maintable.id to childtable.main_id (or whatever your tables/fields are called).

That will add a new group to your main table, with all the elements from 'childtable'.

Then use a Javascript event on the CDD element, on 'change', and hide/show that joined group accordingly.

-- hugh
 
Thanks in advance.
I tried to make the example easier in order to try and make clear what I would like to get.
Starting from the link http://www.segi.altervista.org/index.php/example1 when I have to make the choice of the combo box you must check:
If I click A, the form remains.
If I click B it should open a popup window with the fields of table 2 http://www.segi.altervista.org/index.php/tabella2:
- fill in the fields
- on an Insert button it should insert the fields in table 1 and automatically close the popup window.
Is this what I could get with your explanation?
Thanks again
 
Nope, you'd get a join to table 2.

Try it and see. You can always delete the join.

on an Insert button it should insert the fields in table 1

Not sure what you mean by that. Table 1 only has table 1's fields ... unless you join it to table 2 ...

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top