Hi
Along the same vein as a previous post of mine http://www.chronoengine.com/forums/posts/f2/t101596/how-do-i-return-to-a-joomla-page-after-saving-a-cf-form-from-a-cc-table.html I have a question.
I have a CC5 that uses a URL parameter in the Conditions box to filter the list that is displayed using the following:
So if I load the CC5 with
My issue comes when I link from this CC5 to a CF5 to edit the data. I have a Connection Action on the On Submit action which saves the form data and sends me back to the CC5, however I cant see how I can pass a URL parameter back to the CC5 from the CF5. I am using model IDs. Without it, the CC5 doesnt show the filtered list it showed before I clicked through to the CF5.
I have tried changing the Connection Action for a DB Save and Redirect Action (as this action can handle the URL parameters), but this set up errors with the message:
Any assistance on how to pass back to the CC5 a URL parameter once I have saved the CF5 would be appreciated.
Thanks
Along the same vein as a previous post of mine http://www.chronoengine.com/forums/posts/f2/t101596/how-do-i-return-to-a-joomla-page-after-saving-a-cf-form-from-a-cc-table.html I have a question.
I have a CC5 that uses a URL parameter in the Conditions box to filter the list that is displayed using the following:
<?php
$dept = JRequest::getString('userid', '', 'get');
return array('user_id' => $dept);
?>
So if I load the CC5 with
?userid=180
at the end of the URL the CC5 only displays rows which match user_id=180. This is all working fine.
My issue comes when I link from this CC5 to a CF5 to edit the data. I have a Connection Action on the On Submit action which saves the form data and sends me back to the CC5, however I cant see how I can pass a URL parameter back to the CC5 from the CF5. I am using model IDs. Without it, the CC5 doesnt show the filtered list it showed before I clicked through to the CF5.
I have tried changing the Connection Action for a DB Save and Redirect Action (as this action can handle the URL parameters), but this set up errors with the message:
Fatal error: Cannot redeclare class GCore\Models\expenses in /var/sites/t/XXX/public_html/administrator/components/com_chronoforms5/chronoforms/actions/db_save/db_save.php(73) : eval()'d code on line 4
Any assistance on how to pass back to the CC5 a URL parameter once I have saved the CF5 would be appreciated.
Thanks