I had problems with OnSaveCodefront.
I think:
should be:
I think:
eval('?>'.$connections[0]->OnSaveCodefront);
on line 278 of chronoconnectivity.phpshould be:
eval('?>'.$connection->OnSaveCodefront);
Good catch!! bug fixed and will be in the next release!🙂
Regards,
Max
Regards,
Max
Hi Max,
I used this feature to perform validation on my form and return a message back to the user if the validation failed.
If the validation failed I did not want to do the bind and store so I return a non null value from the OnSaveCodefront eval code and catch this in chronoconnectivity.php as follows:
Hope this helps!
Cheers,
Dave
I used this feature to perform validation on my form and return a message back to the user if the validation failed.
If the validation failed I did not want to do the bind and store so I return a non null value from the OnSaveCodefront eval code and catch this in chronoconnectivity.php as follows:
if (eval('?>'.$connection->OnSaveCodefront) != null)
{
$mainframe->redirect( JRoute::_("index.php?option=com_chronoconnectivity&connectionname=".$connection->name,false));
}
Hope this helps!
Cheers,
Dave
Hi Dave,
Thanks for the code, did you try to use this without the change:
Thanks for the code, did you try to use this without the change:
return; $mainframe->redirect( JRoute::_("index.php?option=com_chronoconnectivity&connectionname=".$connection->name,false));
This topic is locked and no more replies can be posted.