Re: Passing flowscript data to a form

2008-03-03 Thread Johannes Textor
What do I need to change? [snip] The flowscript looks like: var tForm = new Form(cocoon:/db/update/form/test, {foo:foob}); var tmodel = tForm.getModel(); tForm.showForm(db/test.uforms); var tForm = new Form(cocoon:/db/update/form/test); var tmodel = tForm.getModel();

Re: Passing flowscript data to a form

2008-03-03 Thread Derek Hohls
Johannes I think your code updates the template display, and not the form definition... at any rate, it does not work. Thanks Derek On 2008/03/03 at 03:46, in message [EMAIL PROTECTED], Johannes Textor [EMAIL PROTECTED] wrote: What do I need to change? [snip] The flowscript looks

Re: Passing flowscript data to a form

2008-03-03 Thread Jason Johnston
Derek Hohls wrote: Working with Cocoon 2.1.8 I am trying to pass data from flowscript to a from, but with no success. The value of foo in the scenario below simply does not show up (although normal widgets, which I have stripped out in the sample below, show up fine). What do I need to

Re: Passing flowscript data to a form

2008-03-03 Thread Joerg Heinicke
What about http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html Joerg On 04.03.2008 00:26, Derek Hohls wrote: Jason Thanks for pointing out that I was trying to make use of a missing feature! My example, because I simplified things, was a bit misleading. What I am

Re: Passing flowscript data to a form

2008-03-03 Thread Derek Hohls
Jason Thanks for pointing out that I was trying to make use of a missing feature! My example, because I simplified things, was a bit misleading. What I am trying to do in the form construction, is dynamically pass in an array of values to act as the fd:item elements in a multi-field array. If

Re: Passing flowscript data to a form

2008-03-03 Thread Derek Hohls
Joerg That's it exactly! It may not be elegant or intuitively obvious , but it works and that is what counts. Thanks Derek (Guess I need to go and reread the manual in my spare time :) On 2008/03/04 at 07:39, in message [EMAIL PROTECTED], Joerg Heinicke [EMAIL PROTECTED] wrote: What about