Forums

Chronoconectivity V5 - edit link

smurf007 18 Jan, 2014
Hi,

I tried to create an edit form with CCV5, Sortable output succeed and also an edit link succeeded, but if i click on a edit link, it ends up in an empty screen. The link that is produced: component/chronoconnectivity5/?cont=lists&ccname=TEST&act=edit&gcb=1

Is there a tutorial for CCV5?
Max_admin 18 Jan, 2014
Hi smurf007,

Did you install CF v5 and setup a new form to be used for editing records on CC ? you will also have to configure the actions tab under the connection page in CC to link the "edit" action to your CF form!

Unfortunately there is no tutorial for CC v5 yet but I will try to work on one this weekend!😟

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
smurf007 18 Jan, 2014
Hi,

Edit-action wasn't configured. But I don't know ho to do it. I found the setup for CCV4, but can you give me an example for CCV5?

Regards,

Smurf
Max_admin 18 Jan, 2014
Hi Smurf,

Just create a new CF V5 form for editing your record, make sure it works by viewing the form itself, just add a "html" action to the "on load" event, then in your connection's edit action "form event" write this: FORM_NAME:load

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
smurf007 18 Jan, 2014
Hi,
Thanks. I used the original form (wich is used to enter the data into the database), but it gives me a form without the data which should be edited but only a form in which new data can be entered. I need a new step in the tutorial🙂

Regards,
smurf007 18 Jan, 2014
I just created an 'empty' form with only an 'render html' action selected. This results also in an empty page.
Max_admin 18 Jan, 2014
The original form used to create the data, was on V4 or V5 ?

In order for the form to load the data for editing, the fields names should match the model id, so if your model is is "Model", then the fields names should be in this format:
Model[field_name]
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
smurf007 18 Jan, 2014
Working on CCV5. Great idea, fields are filled now🙂. But if i tried to update (submit-button on the 'original form')... nothings happens. No fields are updated, just a new row added without any information. Next hint🙂?
Max_admin 18 Jan, 2014
The solution to this issue is to add a hidden field with the name of the primary key of your table, so if your table has a primary key field named "id" then the hidden field name in your form should be:
Model[id]
that should update the existing row, not add a new one!🙂
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
smurf007 18 Jan, 2014
CCV5 model: Invoeren
link to some data fields are like: Invoeren[invoer_categorie]
link to the primary id is: Invoeren[id]

Still blank rows in my database, when I submit the data.
smurf007 18 Jan, 2014
finally...

How can I set the permissions? I used for now the right ' Joomla user_id' column But when I click on the edit link I got a "Access denied" warning.
Max_admin 20 Jan, 2014
Did you set proper permissions for the "edit" action under the "Permissions" tab ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
smurf007 20 Jan, 2014
I set the permissions for owner to allowed. All others aren't set. I will try to let only owners (who insert data) edit their own inserted data.
smurf007 01 Feb, 2014
Unbelievable.. Very poor implementation of the permissions (or bad support😟)... Even with guest an public set on 'allowed', the ' Access denied' warning shows up when I try to visit a CCF5 form... Any support possible??
Breakbeatz 04 Feb, 2014
Hello,
I' ve got the same problems with the editing the saved entry.
I got a hidden field with the Model "Staffel2014[id]", all field names in the Edit-Form are completed with the model Title.
If i open an filled form in the admin list, it will open with all inputs, but I can't save them.
I tried to connect the Editor form with the database --> a blank new form

Please help, I do evereything like in all your posts here.

Thanks and sorry for my bad english ;-)
Max_admin 05 Feb, 2014
Hi Breakbeatz,

I suggest that we start a new topic, no need to add more info here!

What's the primary key of your table ? is it "id" ? or something else ? please check this in your phpmyadmin! this affects the hidden field name.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Breakbeatz 06 Feb, 2014
Hi Max,

I got it! I tried it with the Save to Database in the Editform, then it works. But I have to set all Permissions to "allowed". Thats no problem at the Backend, but I don't know, how to set them in the Frontend for editing just for Admin or other registrated Users.
Have a nice day,

Breakbeatz
Max_admin 07 Feb, 2014
Hi Breakbeatz,

Full save permissions should be granted only to admins, it should be set to "allowed", no other groups should be set to "denied", instead, set the denied groups to "not set".

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Breakbeatz 08 Feb, 2014
Hi Max,

you wrote, theres a new topic about the edit? I Can#t find it...
I solved the first problem to edit and save my one form. But now I build an new, other form & tried to do the same like in my first, all models set, the primary is id, i'll set it in a hidden field, like in my other.
But if I press submit, there will be generated an other link, like in my first form:
...=com_chronoconnectivity5&cont=lists&ccname=Einzelanmeldung&act=edit&gcb=1&chronoform=einzeledit&event=submit

heres the link from the working form & connection:
...=com_chronoconnectivity5&cont=lists&act=index&ccname=Staffelanmeldung

In both editforms there is a redirect action after the DB Save action in the onSubmit.

I tried to make the edit-connection like in your FAQs (http://www.chronoengine.com/faqs/72-ccv5/5208-connectivity-edit-with-chronoforms.html) but there would happend nothing...

If you like, I'll give you the Login to my page for a view...

Thanks a lot,
Breakbeatz
Max_admin 12 Feb, 2014
Hi Breakbeatz,

Its noted in the tutorial that you have to use a "Connection action" action in order to process the connectivity's save action and return to the list, you should not be using a db save or redirect, that will break the extension's mechanism!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
maurizio.larocca 21 Feb, 2014
Hi Max,
I have same issue and I didn't use a DB Save.
I just follow tutorial: http://www.chronoengine.com/faqs/72-ccv5/5208-connectivity-edit-with-chronoforms.html
but it is not working for me.
I can load the form during edit and I also have the right ID but when I submit it I have same issue!

White page with link http://www.metricell.it/component/chronoconnectivity5/?cont=lists&ccname=telecom2&act=edit&gcb=32&chronoform=telecom2-edit&event=submit

Please let me know!

Thx,

Maurizio
Max_admin 21 Feb, 2014
Hi Maurizio,

Please post a screenshot for the "on submit" even config in your form.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
maurizio.larocca 22 Feb, 2014
Hi Max,
Do you mean this attached?

Thx,

Maurizio
Max_admin 24 Feb, 2014
Your setup is correct, the blank page is usually a PHP fatal error, please set the error reporting to maximum under the Joomla global config and try again, let me know the error you receive when you submit the form!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
maurizio.larocca 24 Feb, 2014
Here you go... but I think that only last one is for you

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /web/htdocs/metricell.it/home/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 464

Fatal error: Cannot redeclare class GCore\Models\telecom2 in /web/htdocs/metricell.it/home/libraries/cegcore/libs/model.php(141) : eval()'d code on line 4
Max_admin 24 Feb, 2014
Ok, how many models do you have in this connection ? if they are more than one then please make sure they have unique titles
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
maurizio.larocca 24 Feb, 2014
this is the connection list into table:

telecom2.nome:Nome
telecom2.cognome:Cognome
telecom2.corporate:Corporate Group
telecom2.telefono:Telefono
telecom2.email:Email
telecom2.model:M.Terminale
telecom2.allegato:Allegato
telecom2.note:Note
telecom2.attivazione:Stato Attivazione
_EDIT_:Edit
_DELETE_:Delete
Max_admin 02 Mar, 2014
Hi Maurizio,

Sorry for the delay!

How many models in your connection under the "Models" tab ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Max_admin 03 Mar, 2014
Strange, you must have the "telecom2" in some where else, please try to change it in your connection config to "telecom3", see if this helps ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
zsteven1 04 Nov, 2014
Hi there,

I do have the same problem. Everything works fine, I can edit my data, but I get a blank screen on submit.

The link
andreaskerk.com/component/chronoconnectivity5/?cont=lists&ccname=test&act=edit&gcb=6&chronoform=test-edit&event=submit


The error
Fatal error: Cannot redeclare class GCore\Models\tester in /storage/web/public/sites/www.andreaskerk.com/libraries/cegcore/libs/model.php(142) : eval()'d code on line 4


Has somebody found the solution yet?
Max_admin 05 Nov, 2014
Do you have a "DB Save" in the "on submit" event ? if yes then please remove it because CC does the same for you.

However, if you are saving some other data, then please make sure that you use unique models ids in CC and the db save!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
zsteven1 05 Nov, 2014
No DB Save in the edit form.

I do have got 2 forms:
1. Name: test > input for chronoconnectivity (with db save)
2. Name: test-edit >to edit chronoconnectivity rows (same as test form, no db save)

Chronoconnectivity
Name: test
Name model: tester

Maybe the names should be completely different from each other?
Max_admin 06 Nov, 2014
1 Likes
And do you have the latest update ?

What actions do you have in your edit form then ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
zsteven1 08 Nov, 2014
I thought I had the latstest V5 update, but I hadn't. Now everything works fine. So updating your Chronoforms V5 to the latest version is the solution. 😀
This topic is locked and no more replies can be posted.