Hello,
I have tried to chase this one before but no luck at all.
So I started from scratch and follwed the two tutorials. I created a basic entry form and a table with just one field (name).
I created a CCV5 connection with a Model name and the necessary fields, and then I could see the list of records I had entered.
I added an _EDIT_ into the field list and that gave me the Edit link in the list against each record.
I created an "edit" version of the form with the field name Model[name], and a hidden field with Model[id] as that is the primary key of the table. I added a HTML action to the On Load and a Connection action in the On Submit, to go back to the Connection and save.
I added the editform:load into the edit action of the connection.
According to the tutorial that is all I have to do...
So, when I select a record in the CC list and click edit, I get the form OK but the fields are not populated. The URL looks ok, it has a parameter of &gcb=1 where 1 is the selected id. But if I enter a value and submit, it goes back to the connection and adds a new record.
So I add a debugger to the form and look at the query, it show the query with "WHERE Model.id = '' so that is obviously my problem. The parameter value isn't in the query.
So, what have I done wrong? How does the value of gcb get into the query? Do I need a DBRead for it? The tutorial does not say so..
Cheers
Tim
I have tried to chase this one before but no luck at all.
So I started from scratch and follwed the two tutorials. I created a basic entry form and a table with just one field (name).
I created a CCV5 connection with a Model name and the necessary fields, and then I could see the list of records I had entered.
I added an _EDIT_ into the field list and that gave me the Edit link in the list against each record.
I created an "edit" version of the form with the field name Model[name], and a hidden field with Model[id] as that is the primary key of the table. I added a HTML action to the On Load and a Connection action in the On Submit, to go back to the Connection and save.
I added the editform:load into the edit action of the connection.
According to the tutorial that is all I have to do...
So, when I select a record in the CC list and click edit, I get the form OK but the fields are not populated. The URL looks ok, it has a parameter of &gcb=1 where 1 is the selected id. But if I enter a value and submit, it goes back to the connection and adds a new record.
So I add a debugger to the form and look at the query, it show the query with "WHERE Model.id = '' so that is obviously my problem. The parameter value isn't in the query.
So, what have I done wrong? How does the value of gcb get into the query? Do I need a DBRead for it? The tutorial does not say so..
Cheers
Tim