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
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
Hi Sjaak,
Please post a screenshot for your "DB Read" settings in v5
Regards,
Max
Please post a screenshot for your "DB Read" settings in v5
Regards,
Max
As per you request, a link to the screendump.
http://www.vhac.nl/TMP/screendump.png
http://www.vhac.nl/TMP/screendump.png
Please clear the "Fields" and "Order" boxes and let me know!
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?
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?
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 ?
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.
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.
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:
Alternatively you can use ChronoConnectivity to list the data, we have some tutorials under the FAQs section, CCv5
Regards,
Max
<?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
This topic is locked and no more replies can be posted.
