Hi,
I wanted to ask how I can display the data from a sub-table under View action.
The data in the main table so I can show in CC5:
<td> {Firma.name} </ td>
But if I want the members of the main table data stored in a second table indicate?
Modelname 2. table: Firma_1
As I have multiplier for the Designer (CF5) for the input fields: __N__
<td> {Firma.Firma_1.partner}</td> not working.
Thank you in advance for the help.
F.
Hi Fredolino,
How do you want to show them?
ChronoForms only has one row for each record so you could setup a join to show one row for each record in the sub-table - and therefore several rows for each record in the main table.
Or you could possible use a Custom HTML entry to show a mini-table in each row. That might work if there are only a few sub-records.
Or you could add a link to each row to show the sub-records in a Modal window.
Bob
Hi Bob,
thanx for this information. :-)
Ok, i use a custom HTML entry to show a mini-table in each row.
Where can I find examples of how I can do that in my case?
F.
Hi Fredolino,
I've never seen that done before so can't point you to an example.
In CCv5 the row data is in $row, (not in $form->data).
Bob
Hi Bob,
it's a sub-table with multiple columns.
This sub-table is to be displayed in a cell of the main table in CC5.
I know otherwise not how that is different.
I once attached a screen by the debugger.
The data from the model "Firma" are displayed correctly. It's about the data model "Firma 1".
Thank you for your help.
F.
Hi Fredolino,
Have you tried using $row in your code?
Bob
Hi fredolino.
Please add echo $row; in there temporarily so that you can see what data is in $row, that may help.
Bob
Where do you have this code ? please try this to find the $row contents:
<?php pr($row); ?>
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi,
I get it. Thank you very much.
lightbulb
Fredo