Hi,
Back in the CF3 days I had a custom code that called a for each of a table to display a link to then access it and move into a CF3 page to edit or view the data then I could re-save the updated date or go back from the viewing.
After many years I am forced to learn this all over agin in 6, and it's all new to me again.
The code I was using was:
<table><?php foreach($form->data['birs'] as $detail):?>
<tbody>
<tr>
<td>
<div>
<h4>Fire Report</h4>
</div>
<div>
<h5>Incident:</h5>
<?php echo $detail['incident_name']; ?></div>
<div>
<h5>Date:</h5>
<?php echo $detail['IncdDate']; ?></div>
<div>
<h5>Reporting Officer:</h5>
<?php echo $detail['reporting_officer']; ?></div>
<div> </div>
<div> </div>
</td>
<td><a href="index.php?option=com_chronoforms&chronoform=FireReport-Display&token=<!--mce:protected %3C%3Fphp%20echo%20%24detail%5B%27id%27%5D%3B%20%3F%3E-->">Select</a></td>
</tr>
<?php endforeach;?></tbody>
</table>
It worked great. Im not even sure when I do a 'Read Data' function I am doing it correct, as whne I save and close the forms manager doesnt show that the form is connected to the table! It did in 3 does it still in 6? My original data collection for does, and this works great with all the functionality I need, its the reviewing and recalling I am stuck with. (Image Attached)
Thanks in advance.
Back in the CF3 days I had a custom code that called a for each of a table to display a link to then access it and move into a CF3 page to edit or view the data then I could re-save the updated date or go back from the viewing.
After many years I am forced to learn this all over agin in 6, and it's all new to me again.
The code I was using was:
<table><?php foreach($form->data['birs'] as $detail):?>
<tbody>
<tr>
<td>
<div>
<h4>Fire Report</h4>
</div>
<div>
<h5>Incident:</h5>
<?php echo $detail['incident_name']; ?></div>
<div>
<h5>Date:</h5>
<?php echo $detail['IncdDate']; ?></div>
<div>
<h5>Reporting Officer:</h5>
<?php echo $detail['reporting_officer']; ?></div>
<div> </div>
<div> </div>
</td>
<td><a href="index.php?option=com_chronoforms&chronoform=FireReport-Display&token=<!--mce:protected %3C%3Fphp%20echo%20%24detail%5B%27id%27%5D%3B%20%3F%3E-->">Select</a></td>
</tr>
<?php endforeach;?></tbody>
</table>
It worked great. Im not even sure when I do a 'Read Data' function I am doing it correct, as whne I save and close the forms manager doesnt show that the form is connected to the table! It did in 3 does it still in 6? My original data collection for does, and this works great with all the functionality I need, its the reviewing and recalling I am stuck with. (Image Attached)
Thanks in advance.