Hi,
A friend and I are working on a fabrik/joomla powered front end for a custom database app. Nothing especially complicated about it. It uses some PHP and MYSQL that we wrote ourselves, but does not interfere with Joomla/Fabrik in any way
We are having trouble getting an element join to work. What we want is to call up a list of users. That is easy enough. We then want to link the 'record_id' in the 'userdata' table with the 'record_id' in the 'consultation' table. The 'record_id' should show up the the table, and clicking on it should take you to all the consultations that have a value of 'record_id'
The problem I have here is that a column named 'record_id' is created in the table - but it is blank. If I want to edit any row in the table, one of the fields I get is a drop down list of 35,000 'record_id' - not what I wanted. I want the 'record_id' to be a static link from one table to another.
Here is an image to illustrate where things went wrong in the element settings:
http://bl.ul.ie/fabrik/problem.jpg
I can get what I want with an SQL query using a left join - all I want is it to give me the user list as normal, and join the 'record_id' in table A with the 'record_id' in table B, and link through to all entries in table B with that 'record_id'
It may be possible that we are not understanding what element joins are meant to do - if anyone can point us towards a general example we can use that would be a huge help. Or I can try adn clarify what it is we want from Fabrik.
If nothing else, we could really use a decent example of how to use element joins to link to other tables based on matching columns in differnet tables - thats essentiall teh root of our problem
We've been running it on MAMP, XAMPP, and it will live on a CentOS server in the long run. Long story short, there are no platform issues or server issues that I can identify.
We have no problem using Fabrik for data retrieval, creating forms, and basically doing anything we want with our database.
Any help would be most appreciated.
Thanks
A friend and I are working on a fabrik/joomla powered front end for a custom database app. Nothing especially complicated about it. It uses some PHP and MYSQL that we wrote ourselves, but does not interfere with Joomla/Fabrik in any way
We are having trouble getting an element join to work. What we want is to call up a list of users. That is easy enough. We then want to link the 'record_id' in the 'userdata' table with the 'record_id' in the 'consultation' table. The 'record_id' should show up the the table, and clicking on it should take you to all the consultations that have a value of 'record_id'
The problem I have here is that a column named 'record_id' is created in the table - but it is blank. If I want to edit any row in the table, one of the fields I get is a drop down list of 35,000 'record_id' - not what I wanted. I want the 'record_id' to be a static link from one table to another.
Here is an image to illustrate where things went wrong in the element settings:
http://bl.ul.ie/fabrik/problem.jpg
I can get what I want with an SQL query using a left join - all I want is it to give me the user list as normal, and join the 'record_id' in table A with the 'record_id' in table B, and link through to all entries in table B with that 'record_id'
It may be possible that we are not understanding what element joins are meant to do - if anyone can point us towards a general example we can use that would be a huge help. Or I can try adn clarify what it is we want from Fabrik.
If nothing else, we could really use a decent example of how to use element joins to link to other tables based on matching columns in differnet tables - thats essentiall teh root of our problem
We've been running it on MAMP, XAMPP, and it will live on a CentOS server in the long run. Long story short, there are no platform issues or server issues that I can identify.
We have no problem using Fabrik for data retrieval, creating forms, and basically doing anything we want with our database.
Any help would be most appreciated.
Thanks