You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bartosz Zgodzinski <ba...@poczta.onet.pl> on 2004/05/17 13:11:19 UTC

Repeter - addRow();

Please tell mi where and how should I call function addRow();. In a form
definition I've got the definiton of my repeter (id="my_repeter"). Now I
want to add a row...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Repeter - addRow();

Posted by Joerg Heinicke <jo...@gmx.de>.
On 17.05.2004 13:11, Bartosz Zgodzinski wrote:

> Please tell mi where and how should I call function addRow();. In a form
> definition I've got the definiton of my repeter (id="my_repeter"). Now I
> want to add a row...

It sounds there was a pre-history to this thread I missed. But let me 
ask why you need to call addRow() by hand at all? Does the add-row 
repeater action not work for you?
http://cocoon.apache.org/2.1/userdocs/forms/widget_repeater_action.html

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Repeter - addRow();

Posted by Jakub Kaniewski <jk...@egonet.pl>.
Uz.ytkownik Bartosz Zgodzinski napisa?:

>Please tell mi where and how should I call function addRow();. In a form
>definition I've got the definiton of my repeter (id="my_repeter"). Now I
>want to add a row...
>  
>
I have something like that in my project (embeeded into woody form 
descriptor)

rpt=event.getSourceWidget().getForm() .getWidget("obslugarpt");
rpt.addRow();

If you want to access the repeatear not from event but from flow, it 
would be easier simply you can write
form1.getWidget("obslugarpt").addRow();

J.K.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org