Mark Lundquist wrote:

I'm using Cocoon 2.1.5_dev w/ the v2 forms+flow API...

I've got an <fd:action> as a child of a repeater. This is supposed to be a "Delete" button that calls removeRow() on the repeater for its row, but I can't figure out how to know, within the fd:action's onClick handler, the index of the row whose delete button submitted the form.

Is there a nice way to do this?

Thanks a lot,
Mark


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


I have the same problem. The best solution i found so far is to refer by form's submit widget, i.e.:

var selected = form.getWidget().getSubmitWidget().getParent().getWidget("id").value;

By the way, how do you install repeater's fd:action onClick handler?

vasyas

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



Reply via email to