Hi,

> I've examined many dynamic forms built-in samples in Cocoon. So,
> I'm wondering - does the following pipeline valid:
>
> SQL DB Select query
>     |
> SQL Transformer
>     |
> XSLT Transformer converting rows/columns nodes into CForm defitition
>     |
> Applying CForm XSL Stylesheet, rendering form.
>
> In other words, is it possible to get dynamic CForm definition whithin
> pipeline processing?
>
> If it does, "how-to"? Any examples

I didn't try it, yet, but it should be no problem.
In the flowscript you create your Forms object like this:

    var form = new Form("myDefinition.xml");

which usually loads the definition from the file myDefinition.xml. But
you may also use any source Cocoon supports i.e. cocoon:, context: ...
So when you put your first three steps in a pipeline and call it like this:

    var form = new Form("cocoon:/createCFormDefinition");

you only have to do the same for a CForm template if it should be
dynamically created - just replace the call to a file with a call to a
pipeline.

Hope this helped :-)

Florian

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

Reply via email to