Hi,

I have a repeater which has 'original' and 'new' rows.I've got a row-action
add-after for each of them, but I only want a delete-row on the rows that
were created by the user.

example (+ and - are the buttons):

row1(original, from database)                      : name | address | +
row2(through previous +, created by user)   : name | address | + | -

Thus the user can create additional rows that initially start with the
values from the original row (by copying every value explicitly,
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107539408229366&w=2) and
with each user-created row, a delete button should be available.

I thought of handling this in a piece of javascript when the xml document is
binded to the form. At that moment I know which rows are labeled 'original'
so I want to disable/remove the row-action widget that handles the delete
for those rows. If the user presses the add-after action, it also should
create the delete button and show it. I was looking for something like
enable/disable at first, but did not find anything alike. I thought to just
remove the widget from those rows (in the javascript) but there isn't a way
to remove a widgets from a row (as far as I know).

Any ideas to do this?

Thankz,

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to