Funny you should ask that; i had the same issue myself a while back:
http://www.nabble.com/JX---Flowscipt-variable-not-accessible-in-generated-form--td21684221.html
 
The answer there is the approach I adopted.
 
Derek

>>> On 2009/05/12 at 03:31, in message <[email protected]>, Andre Juffer 
>>> <[email protected]> wrote:
Hi,

is the following allowed (in flow):

var data = ......;
var form = new Form("cocoon://make-form.jx", { "data" : data } );

The idea is to automatically generate a form definition from given data 
with jx:forEach. The data object doesn't seem to be passed on.

The make-form.jx actually does exactly what it is supposed to do. I 
tested this with

var data = .....;
cocoon.sendPage("make-form.jx", { "data" : data } );

and this gives me the right form definition.

If

new Form("cocoon://make-form.jx", { "data" : data } );

is not possible, what would be the alternative?



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.

Reply via email to