Editing a field

ab abasel 29 Feb, 2012
I am running ChronoConnectivity 2.0 RC3 and Chronoforms 3.1 RC5.5. We are not in a position to upgrade these at the moment. I am wanting to use ChronoConnectivity to list the contents in a table and then let the user edit or delete a row.

I can't seem to find a tutorial that will show me how do do this.

Any ideas?
ab abasel 29 Feb, 2012
Hi,

Thanks for this. I have used them in the past and they were great its just that I couldn't see any examples of how you can use these to display information while giving the ability to edit or delete some of the displayed info for the database.... but I may be missing something.
Gr GreyHead 29 Feb, 2012
Hi abasel,

I may not have got that far . . .

One day I'll write the rest.

Take the View Details one and change the form so that it shows an editable form instead of a listing and loads the data into the inputs. Set the Form redirect url to go back to the listing.

To delete; create a little form that deletes a record (or marks is unpublished) link to that in the same way.

Bob
ab abasel 04 Mar, 2012
Sorry, but I am taking a while to get my head around this.

I have the editable fields can't work out how to save any changes.

<?php
$i=$i+1;
if ($i>=2) {$i=0;}
?>

<tr class="d<?=$i;?>">
  <td>{Surname}, {Firstname}</td>
  <td align="center">{Username}</td>
  <td align="center"><input type='text' name='Art' value={Art} size='1' /></td>
  <td align="center"><input type='text' name='Music' value={Music} size='1' /></td>
  <td align="center"><input type='text' name='ESOLa' value={ESOLa} size='1' /></td>
  <td align="center"><input type='text' name='Numeracya' value={Numeracya} size='1' /></td>
  <td align="center"><input type='text' name='Numeracya' value={Numeracya} size='1' /></td>
  <td align="center"><input type='text' name='French' value={French} size='1' /></td>
  <td align="center"><input type='text' name='Japanese' value={Japanese} size='1' /></td>
  <td align="center"><input type='text' name='ESOLb' value={ESOLb} size='1' /></td>
  <td align="center"><input type='text' name='Literacy' value={Literacy} size='1' /></td>
  <td align="center"><input type='text' name='Numeracyc' value={Numeracyc} size='1' /></td>
  <td align="center"><input type='text' name='Technology' value={Technology} size='1' /></td>
  <td align="center"><input type='text' name='Graphics' value={Graphics} size='1' /></td>
  <td align="center"><input type='text' name='FoodTechnology' value={FoodTechnology} size='1' /></td>
  <td align="center"><input type='text' name='Graphics' value={Graphics} size='1' /></td>
  <td align="center"><input type='text' name='ESOLc' value={ESOLc} size='1' /></td>
  <td align="center"><input type='text' name='Numeracyc' value={Numeracyc} size='1' /></td>
</tr>


Taking a wild guess, I added a submit button to the footer section but thank didn't work (which is what I expected).

Also where do I set the Form redirect url?

Sorry for all the simple questions.
Gr GreyHead 04 Mar, 2012
HI abasel,

Link to a form to do the editing, don't try to do it in CC.

Bob
This topic is locked and no more replies can be posted.