Hi guys!...
Here is the initial setup:
1- CC Models With Conditions
2- CC FrontList Action With Edit Rule
3- Joomla Webpage with the resulting table listing from CC, with ID link to Edit CF page
4- Joomla WebPages called by CC with CF Editing enabled (the page is just a piece, the original page is Huge...)
See the CheckBoxes Ok after appliying the first custom code...
5- CF Designer mode With ID Hidden and all that CC Jazz inside the Field Name...
and The checkBoxes too...
6- CF Setup Setting with Custom codes to handle CheckBoxes, Debug, SHow Html, Save, etc...
7- CF Connection action Filled properly to talk to CC...
8- The CF On-Load Custom Code, to filter and handle the Checkboxes properly... (the EXPLODE Thing...)
<?php
jimport('joomla.user.helper');
$user = JFactory::getUser();
$camp_env = $form->data[enviar];
if ( isset($form->data['ListViewTotal']['tipo_de_servico']) ) {
$camp_id = $form->data[gcb];
$camp_boxes = $form->data['ListViewTotal']['tipo_de_servico'];
$TServ = explode(", ", $form->data['ListViewTotal']['tipo_de_servico']);
$form->data['ListViewTotal']['tipo_de_servico'] = $TServ;
echo "=============== Area de Depuração DEBUG na homologação sai ===========<br>";
echo "--- Boxes ID1: $TServ <br>";
echo "--- Boxes ID2: $camp_boxes <br>";
echo "----- User ID: $camp_id <br>";
// echo "----- Botão_Env: $camp_env <br>";
}
?>
9- The CF On Submit Custom code to Handle the Implode Stuff (Handle ARRAYS seems not to be working
be it enabled or disabled...)
<?php
jimport('joomla.user.helper');
$user = JFactory::getUser();
// $opcao = $form->data['ListViewTotal']['cancelar'];
// $opcao4 = $form->data['ListViewTotal']['enviar'];
// $opcao2 = 'Negar';
$id = $form->data['gcb'];
$TServ = implode(", ", $form->data['ListViewTotal']['tipo_de_servico']);
$camp_id = $form->data[gcb];
$form->data['ListViewTotal']['tipo_de_servico'] = $TServ;
?>
10- In both On-Load and On-Submit the handle Arrays makes no diference (now they are Enabled...)
11- Honestly guys I'm a little bit dissapointed with CC + CF behavior. I tryed using a DB Save instead of the
Conection Action (required by CC) and things went worst (the Db Save just Created a NEW Record instead of
editing the Actual record, Remember that the ID of the table is in the Form Hidden.)
The problem with the Conection Action is that if we edit the CheckBoxes and apply the submit/update button
it just erases all the already checked Boxes and it seems that it does not respect The custom Code (this is
Weird...) and dissapointing espoecially for the Lack of proper documentation
ANY HELP GUYS?...
Here is the initial setup:
1- CC Models With Conditions

2- CC FrontList Action With Edit Rule

3- Joomla Webpage with the resulting table listing from CC, with ID link to Edit CF page

4- Joomla WebPages called by CC with CF Editing enabled (the page is just a piece, the original page is Huge...)
See the CheckBoxes Ok after appliying the first custom code...

5- CF Designer mode With ID Hidden and all that CC Jazz inside the Field Name...

and The checkBoxes too...

6- CF Setup Setting with Custom codes to handle CheckBoxes, Debug, SHow Html, Save, etc...

7- CF Connection action Filled properly to talk to CC...

8- The CF On-Load Custom Code, to filter and handle the Checkboxes properly... (the EXPLODE Thing...)
<?php
jimport('joomla.user.helper');
$user = JFactory::getUser();
$camp_env = $form->data[enviar];
if ( isset($form->data['ListViewTotal']['tipo_de_servico']) ) {
$camp_id = $form->data[gcb];
$camp_boxes = $form->data['ListViewTotal']['tipo_de_servico'];
$TServ = explode(", ", $form->data['ListViewTotal']['tipo_de_servico']);
$form->data['ListViewTotal']['tipo_de_servico'] = $TServ;
echo "=============== Area de Depuração DEBUG na homologação sai ===========<br>";
echo "--- Boxes ID1: $TServ <br>";
echo "--- Boxes ID2: $camp_boxes <br>";
echo "----- User ID: $camp_id <br>";
// echo "----- Botão_Env: $camp_env <br>";
}
?>
9- The CF On Submit Custom code to Handle the Implode Stuff (Handle ARRAYS seems not to be working
be it enabled or disabled...)
<?php
jimport('joomla.user.helper');
$user = JFactory::getUser();
// $opcao = $form->data['ListViewTotal']['cancelar'];
// $opcao4 = $form->data['ListViewTotal']['enviar'];
// $opcao2 = 'Negar';
$id = $form->data['gcb'];
$TServ = implode(", ", $form->data['ListViewTotal']['tipo_de_servico']);
$camp_id = $form->data[gcb];
$form->data['ListViewTotal']['tipo_de_servico'] = $TServ;
?>
10- In both On-Load and On-Submit the handle Arrays makes no diference (now they are Enabled...)
11- Honestly guys I'm a little bit dissapointed with CC + CF behavior. I tryed using a DB Save instead of the
Conection Action (required by CC) and things went worst (the Db Save just Created a NEW Record instead of
editing the Actual record, Remember that the ID of the table is in the Form Hidden.)
The problem with the Conection Action is that if we edit the CheckBoxes and apply the submit/update button
it just erases all the already checked Boxes and it seems that it does not respect The custom Code (this is
Weird...) and dissapointing espoecially for the Lack of proper documentation
ANY HELP GUYS?...
Everything else is working except the checkboxes ?
All images are broken, so its not possible to check if your have any setup problems!
Regards,
Max
All images are broken, so its not possible to check if your have any setup problems!
Regards,
Max
Hi!...
Yes everything is working... see the Website:
http://sasconceicao.com.br.10-0-10-51.lexxa.com.br
Here is the list of URLs of the images if again does not work please let me know:
1- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/List_View_Total_Models.png
2- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/List_View_Total_FrontList_Actions_Edit.png
3- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/CC_List_View_Total_WebPage.png
4- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/CC_List_View_Total_WebPage.png
5- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/CC_List_View_Total_Edit_WebPage.png
6a http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/Designer1.png
6b- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/Designer2.png
7- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/CFv5_Setup.png
8- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/Connection-Action.png
9- The CF On-Load Custom Code, to filter and handle the Checkboxes properly... (the EXPLODE Thing...)
<?php
jimport('joomla.user.helper');
$user = JFactory::getUser();
$camp_env = $form->data[enviar];
if ( isset($form->data['ListViewTotal']['tipo_de_servico']) ) {
$camp_id = $form->data[gcb];
$camp_boxes = $form->data['ListViewTotal']['tipo_de_servico'];
$TServ = explode(", ", $form->data['ListViewTotal']['tipo_de_servico']);
$form->data['ListViewTotal']['tipo_de_servico'] = $TServ;
echo "=============== Area de Depuração DEBUG na homologação sai ===========<br>";
echo "--- Boxes ID1: $TServ <br>";
echo "--- Boxes ID2: $camp_boxes <br>";
echo "----- User ID: $camp_id <br>";
// echo "----- Botão_Env: $camp_env <br>";
}
?>
10- The CF On Submit Custom code to Handle the Implode Stuff (Handle ARRAYS seems not to be working
be it enabled or disabled...)
<?php
jimport('joomla.user.helper');
$user = JFactory::getUser();
// $opcao = $form->data['ListViewTotal']['cancelar'];
// $opcao4 = $form->data['ListViewTotal']['enviar'];
// $opcao2 = 'Negar';
$id = $form->data['gcb'];
$TServ = implode(", ", $form->data['ListViewTotal']['tipo_de_servico']);
$camp_id = $form->data[gcb];
$form->data['ListViewTotal']['tipo_de_servico'] = $TServ;
?>
11- In both On-Load and On-Submit the handle Arrays makes no diference (now they are Enabled...)
12- Honestly guys I'm a little bit dissapointed with CC + CF behavior. I tryed using a DB Save instead
of the Conection Action (required by CC) and things went worst (the Db Save just Created a NEW
Record instead of editing the Actual record, Remember that the ID of the table is in the Form Hidden.)
The problem with the Conection Action is that if we edit the CheckBoxes and apply the submit/update
button it just erases all the already checked Boxes and it seems that it does not respect The custom
Code (this is Weird...)
Yes everything is working... see the Website:
http://sasconceicao.com.br.10-0-10-51.lexxa.com.br
Here is the list of URLs of the images if again does not work please let me know:
1- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/List_View_Total_Models.png
2- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/List_View_Total_FrontList_Actions_Edit.png
3- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/CC_List_View_Total_WebPage.png
4- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/CC_List_View_Total_WebPage.png
5- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/CC_List_View_Total_Edit_WebPage.png
6a http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/Designer1.png
6b- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/Designer2.png
7- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/CFv5_Setup.png
8- http://sasconceicao.com.br.10-0-10-51.lexxa.com.br/images/Connection-Action.png
9- The CF On-Load Custom Code, to filter and handle the Checkboxes properly... (the EXPLODE Thing...)
<?php
jimport('joomla.user.helper');
$user = JFactory::getUser();
$camp_env = $form->data[enviar];
if ( isset($form->data['ListViewTotal']['tipo_de_servico']) ) {
$camp_id = $form->data[gcb];
$camp_boxes = $form->data['ListViewTotal']['tipo_de_servico'];
$TServ = explode(", ", $form->data['ListViewTotal']['tipo_de_servico']);
$form->data['ListViewTotal']['tipo_de_servico'] = $TServ;
echo "=============== Area de Depuração DEBUG na homologação sai ===========<br>";
echo "--- Boxes ID1: $TServ <br>";
echo "--- Boxes ID2: $camp_boxes <br>";
echo "----- User ID: $camp_id <br>";
// echo "----- Botão_Env: $camp_env <br>";
}
?>
10- The CF On Submit Custom code to Handle the Implode Stuff (Handle ARRAYS seems not to be working
be it enabled or disabled...)
<?php
jimport('joomla.user.helper');
$user = JFactory::getUser();
// $opcao = $form->data['ListViewTotal']['cancelar'];
// $opcao4 = $form->data['ListViewTotal']['enviar'];
// $opcao2 = 'Negar';
$id = $form->data['gcb'];
$TServ = implode(", ", $form->data['ListViewTotal']['tipo_de_servico']);
$camp_id = $form->data[gcb];
$form->data['ListViewTotal']['tipo_de_servico'] = $TServ;
?>
11- In both On-Load and On-Submit the handle Arrays makes no diference (now they are Enabled...)
12- Honestly guys I'm a little bit dissapointed with CC + CF behavior. I tryed using a DB Save instead
of the Conection Action (required by CC) and things went worst (the Db Save just Created a NEW
Record instead of editing the Actual record, Remember that the ID of the table is in the Form Hidden.)
The problem with the Conection Action is that if we edit the CheckBoxes and apply the submit/update
button it just erases all the already checked Boxes and it seems that it does not respect The custom
Code (this is Weird...)
This topic is locked and no more replies can be posted.