cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Superbiji <superb...@gmail.com>
Subject Re: iterate cforms widgets in JX (fwd)
Date Tue, 24 Aug 2004 02:32:45 GMT
Great, it works
thanks

On Mon, 23 Aug 2004 16:34:17 +0400, Timur Izhbulatov <tim@yxo.ru> wrote:

> Superbiji writes:
> 
> > Hi,
> >
> > Is is possible to iterate cforms widgets in  JX?
> >
> > flow.js:
> > f=loadform
> > showform
> > var b=f.getmodel
> > sendpage("somepage.jx", b)
> >
> > somepage.jx:
> > for-each $bizdata
> 
> I have faced the same problem.
> 
> Try to copy contents of you widget to an Array:
> 
> f=loadform
> showform
> var b=f.getmodel
> 
> //
> var arr = new Array(b.length);
> 
> for(i=0; i < arr.length; i++) {
>  arr[i] = b[i];
> }
> //
> 
> sendpage("somepage.jx", {"biz-data":arr} )
>

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


Mime
View raw message