Forums

How do I edit in new version 4?

JeLu 09 Mar, 2012
I have installed the new version of connectivity and like what I see.

There is one problem I can´t find a solution for and that is how I can make a connection and use the edit function.

I have made a connection and it list the record. I have then made CF form and it is set to a connectivity app but when I want a record to be edited it shows this form with no details in the record, it is blank.

Do I have to do something special in ChornoForm or in ChronoConnectivity.

I use:

Joomla 2.52
ChronForm v4 RC3.2
ChronoConnectivity v4 RC3.1

//JeLu
GreyHead 09 Mar, 2012
Hi JeLU,

I'm not sure but I suspect that you need to add a DB REcord Loader in the form ON Load action to load the data.

Bob
JeLu 10 Mar, 2012
Thamks fpr your answer

i have added a DB Record loader to On Load of the form used.

In there is a green field for success and two red ones. In this areas I have put a custom code and when I try to edit the custom code in "On No/Empty param Passed" is shown.

What will I need to do. The list have values but when trying to edit it is empty?

JeLu
GreyHead 10 Mar, 2012
Hi JeLu,

If the 'No/Empty param Passed' event is being triggered then it's most likely that you either haven't configured the DB Record loader to set the Parameter; or you aren't passing a parameter value to the DB Record loader in the URL or Post data.

The DB Record Loader needs to be passed a value to identify the record to be selected. In a URL you migth do this with &cid=999 - in this case the Parameter is cid

Bob
JeLu 12 Mar, 2012
Hi Greyhead!

I don´t know where to put this and is it always cid or was that just an example?

I have tried to put it in Param request but still blank and no param passed.

JeLu
GreyHead 12 Mar, 2012
Hi JeLu,

The parameter is whatever you set it to be - as long as the URL matches up with the entry in the action.

You need to put it in whatever link of form you are using to call the form - if you want to load a record you have to be able to identify it.

Bob
Max_admin 14 Mar, 2012
Hi,

Please check the steps here:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=12&t=67300

Basically you should only need the "Show HTML" action in the "on Load" event of your form, that should be enough to load the data into the fields, but please note that your fields names should match the db table columns names, and if you have a "Model ID" then it should be used, example:

if you don't have a Model ID and your db table column is: first_name, then your form field should be "first_name".

But if you have have a Model ID = "User" for example, then the field name have to be: "User[first_name]"

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
JeLu 15 Mar, 2012
Is it the form fields name or is it in Connectivity I shall put columntitle?

With the form I have tested all formfields has the same name as the columntitle.

Regards

JeLu
Max_admin 17 Mar, 2012
good, and do you have a Model ID in your connection ? if yes then this should be added to your form fields names as I have explained earlier.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
JeLu 29 Mar, 2012
Hi!

I do not use a Model ID cause I don´t know how.

I have created a form in CF and it saves to a table in DB. That works.

Then I have created a listview with CC and it shows all records in table.

I have put cf_id as an "Edit Field" and when I click om that it shows an empty page.

In CF i have added a DB-Loader action with Show HTML "On Success"

This is perhaps a lack of know how but I would love to learn🙂

JeLu
JeLu 16 Apr, 2012
With the new release installed of both CF and CC it works great.
This topic is locked and no more replies can be posted.