ccname as useful variable in conection action

teldrive 25 Mar, 2015
I have many CF forms (edit, view, etc..)called from several CC's, my issue is to go back to the righ CC wich has called it
I discovered "ccname" variable can be used with a "switch-action" to manage diferents connection-action go-back routes
But if conection-action will support "ccname" as variable all will be more straightforward, I think this should be a very good new feature to request you
Max_admin 02 Apr, 2015
Hi Teldrive,

Sorry but I can't understand this, please give me an example.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
teldrive 05 Apr, 2015
Hi Max, for sure, we have for example 2 CC list

cc1_list that has a button-action that links to an action "format" that calls to a CF "formatview_form"
$this->view->Toolbar->addButton("toolbar-button-upload","/es/component/chronoconnectivity5/?cont=lists&ccname=cc1_list&act=format","FORMAT", "/libraries/cegcore/assets/images/toolbar/format.png","submit_selectors"); 

cc2_list that has a button-action that links to an action "format" that calls to a CF "formatview_form"
$this->view->Toolbar->addButton("toolbar-button-upload","/es/component/chronoconnectivity5/?cont=lists&ccname=cc2_list&act=format","FORMAT", "/libraries/cegcore/assets/images/toolbar/format.png","submit_selectors"); 


for both CC list we use same CF form but we need to use a switch action like this to redirect to the right cc list
<?php
if($form->data['ccname'] =="cc1_list"){
return 'success';
}else{
return 'fail';
}
?>

[attachment=0]Captura.JPG[/attachment]

the big problem comes when threre are three or four CC list that call to same CF form, using "ccname" as variable field "{ccname}" on connection action will simplify this, i tested it but doesn't work
Max_admin 28 Apr, 2015
Hi Teldrive,

Sorry for the delay, I understand this better now!

But this is not a major issue, 3 or 5 connection actions inside an Event switcher should be ok.

There is a way to do it using PHP code, I will try to simplify this process in the next update.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
teldrive 28 Apr, 2015
please consider also to include some field for options like &limit=100(for full listing) or &srch=(for clearing)
Max_admin 28 Apr, 2015
What I'm thinking about is to include a setting to disable the auto redirect and the user can then use a redirect action for that, since some users have already faced this issue and this is the easiest solution.
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.