<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I would like to use foxedit within a table.&nbsp; The table has two ways to
be updated. First the user submits some data ( name, issue etc)&nbsp; using
a form (:input:) and then after submission another user is responsible <br>
to update (edit) the row with addition information - such as status and
next action.<br>
<br>
I've looked through many of the E-mails and examples and the scenario I
have is similar to that of MikeD's shown at the top of the page here:
<a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/Fox-Comments">http://www.pmwiki.org/wiki/Cookbook/Fox-Comments</a>.<br>
Indeed if I use the example code shown foxedit works as expected,
however I do not need/want the row numbers shown, so I have tried to
remove this functionality.<br>
<br>
My challenge is that although I can get foxedit to work in the example
form, I can't get foxedit to work with the table rows with the row
number removed.<br>
My modification to the first example shown at Fox-Comments is:<br>
<br>
<b>Edit Form</b><br>
[[#customform]]<br>
(:fox frm ptvtarget={$EditTarget} redirect=1:)<br>
(:input defaults source={$EditSource} :)<br>
'''Editing {$EditTarget}:'''<br>
||<br>
|| Name||(:input text {$$:name} :) ||<br>
|| ||(:input submit post Save:) ||<br>
(:foxend frm:)<br>
[[#customformend]]<br>
&nbsp;<br>
<br>
<b>User Form</b><br>
(:fox frm put=aboveform template=#tablerow ptvtarget=1:)<br>
(:cellnr:)<br>
(:cell:)(:input text name:)<br>
(:cell:)(:input submit post 'Add Row':)<br>
(:foxend frm:)<br>
(:tableend:)<br>
<br>
(:if false:)<br>
[[#tablerow]]<br>
#foxbegin#<br>
(:cellnr:)<br>
(:cell:){$$name}<br>
(:cell:)({[foxedit form=FoxTemplates.FoxTest#customform]})<br>
(:cell:){[foxdelrange]}<br>
#foxend#<br>
[[#tablerowend]]<br>
(:ifend:)<br>
<br>
<br>
The result is that the form correctly adds new data and a new row. <br>
The delete function works o.k. too. <br>
When I click edit and enter a new value in the edit form, I am returned
to the target page but without the edited value changing.!<br>
<br>
I guess I have something wrong in the Edit Form - but I can't work out
what it is.&nbsp; Any help - as always - is appreciated.<br>
<br>
Thanks<br>
<br>
Graham<br>
</body>
</html>