CFv4 to CFv5 upgrade issues

svherpen 29 Oct, 2014
Hi Max,

As per your request in our earlier discussion (How to achieve this) I've installed CFv4 on my test system, made a backup of the production form and was able to completely restore that on my testserver.

Then I downloaded CFv5 and installed that, ending up with two versions of CF on my testserver.

Next step was the experimental import of the CFv4 form, but that does not work as expected: only form layout is copied and no actions/code is available. But as you guys wrote, it's experimental.

Nevertheless, when I try to implement the same features I'm using in the V4 form, like DB read for multiple records (using the same table as in the CF4 form), I do get no results, but only errors:
Warning: Invalid argument supplied for foreach() in /home/deb25520/domains/vhac.nl/public_html/buxus/libraries/cegcore/libs/model.php on line 1011

Warning: Invalid argument supplied for foreach() in /home/deb25520/domains/vhac.nl/public_html/buxus/administrator/components/com_chronoforms5/chronoforms/actions/db_read/db_read.php on line 91

Is this behavior known to you? Do you want me to continue testing other functions ?

Regards,
Sjaak
Max_admin 29 Oct, 2014
Hi Sjaak,

Please post a screenshot for your "DB Read" settings in v5

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 30 Oct, 2014
Please clear the "Fields" and "Order" boxes and let me know!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
svherpen 30 Oct, 2014
Errors disappeared, but no data from the table shown. Added a display message so I know for sure that the retrieve has records.

When using this feature in CF4, the data retrieved from the data was displayed. Can it be that the display records is not available (yet) in the new CF5? If so, how do I display the data retrieved?
Max_admin 30 Oct, 2014
Answer
v5 doesn't have a "Data displayer", it will retrieve the data but its your task to display it the way you want, please drag a "debugger" action after the "db read" and check if the data was loaded ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
svherpen 30 Oct, 2014
Data is there, I already checked that. Debugger shows it in the data array.
To bad the automatic display is gone, that was a handy tool.

I'll continue my search on your forums to get insights how data can be displayed with the new CF5.

Thanks.
Max_admin 31 Oct, 2014
You will need a small PHP code to loop through the data and display it, maybe the displayer will be added to a future update:

<?php
foreach($form->data["Data"] as $row){
echo $row["field1"];//you can use any field name and you can echo any HTML tags to format the data
}


Alternatively you can use ChronoConnectivity to list the data, we have some tutorials under the FAQs section, CCv5

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.