Timur


----------Forwarded message ----------
References: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
From: Timur Izhbulatov <[EMAIL PROTECTED]>
To: Superbiji <[EMAIL PROTECTED]>
Subject: Re: iterate cforms widgets in JX
Date: Mon, 23 Aug 2004 16:29:35 +0400
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


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} )

Timur

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



Reply via email to