|
Hi, I would like to use foxedit within a table. The table has two ways to be updated. First the user submits some data ( name, issue etc) using a form (:input:) and then after submission another user is responsible to update (edit) the row with addition information - such as status and next action. 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: http://www.pmwiki.org/wiki/Cookbook/Fox-Comments. 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. 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. My modification to the first example shown at Fox-Comments is: Edit Form [[#customform]] (:fox frm ptvtarget={$EditTarget} redirect=1:) (:input defaults source={$EditSource} :) '''Editing {$EditTarget}:''' || || Name||(:input text {$$:name} :) || || ||(:input submit post Save:) || (:foxend frm:) [[#customformend]] User Form (:fox frm put=aboveform template=#tablerow ptvtarget=1:) (:cellnr:) (:cell:)(:input text name:) (:cell:)(:input submit post 'Add Row':) (:foxend frm:) (:tableend:) (:if false:) [[#tablerow]] #foxbegin# (:cellnr:) (:cell:){$$name} (:cell:)({[foxedit form=FoxTemplates.FoxTest#customform]}) (:cell:){[foxdelrange]} #foxend# [[#tablerowend]] (:ifend:) The result is that the form correctly adds new data and a new row. The delete function works o.k. too. 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.! I guess I have something wrong in the Edit Form - but I can't work out what it is. Any help - as always - is appreciated. Thanks Graham |
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
