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?

Thanks,

--
Andre H. Juffer              | Phone: +358-8-553 1161
Biocenter Oulu and           | Fax: +358-8-553-1141
Department of Biochemistry   | Email: [email protected]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat                   | WWW: www.strubiocat.oulu.fi
NordProt                     | WWW: www.nordprot.org
Triacle Biocomputing         | WWW: www.triacle-bc.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to