Perhaps, while we are on the subject - is it possible to
have a similar type of code that, when a row is inserted,
also inserts additional rows... ideally the number of rows
inserted could be controlled by the value of another widget? [EMAIL PROTECTED] 2005/11/20 04:54:58 AM
Thanks a lot !It
Off the top of my head something like...
fd:action id=add_items command=add_items>
fd:on-action>
fd:javascript>
var widget = event.source;
var row = widget.parent;
var repeater = row.parent;
// Add the first row
repeater.addRow();
// Get number of extra rows to add
var num_rows_wid =
Thanks a lot !
It works perfectly :)
Marc2005/11/17, Robin Wyles [EMAIL PROTECTED]:
Marc,Instead of using a fd:row-action why not use a fd:action such as:fd:action id=delete_item command=delete_itemfd:on-actionfd:_javascript_
var widget = event.source;
var row = widget.parent;
var repeater =
Hello,
I have a cart displaying an invoice on top of the page and a cforms
with a repeater displaying the products at the bottom of the page.
I need to update the invoice when a row is deleted in the repeater
The calculation of the invoice is done on the server and need to read from the dom
Marc,
Instead of using a fd:row-action why not use a fd:action such as:
fd:action id=delete_item command=delete_item
fd:on-action
fd:javascript
var widget = event.source;
var row = widget.parent;