Buy Now
Sign in

A displayer from CF3 to 6

har7801 , December 14 2017
H
har7801
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>&nbsp</div>
<div>&nbsp</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.
Attachments
Capture.JPG
Capture.JPG
(32.47 KiB)
56 Downloads/Views
admin
Hi har7801,

For data listing you better use Connectivity 6 instead, the default installer has some demo connections and you can view the FAQs available in the FAQs section, you would not need to use any PHP code for that.

Happy new year!

Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
H
har7801
Awesome,

I’ll give it a go.

Happy New Year.