cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@hippo.nl>
Subject Re: CForms & Views
Date Mon, 26 Mar 2007 21:34:06 GMT
Hi Lally,

Lally Singh wrote:
> 
> Specifically, I've got a system that generates questions based on two
> parameters (a class ID like 'ECE2504' and a term ID like '200701'),
> and was hoping to use views to generate the definition and template
> files.
> 
> Can I invoke views with parameters here?  

Well yes that should be possible. I haven't tried it, but it should work.

Something like this:
> function doSurvey (course, term) {
>   var form = new Form ("generate-questions?cocoon-view=form-def");
>   form.showForm("generate-questions?cocoon-view=form-disp", {
> course=course, term=term });
>   // I'll have to figure out how to store these results here, somehow.
>   cocoon.sendPage ("surveyDone");
> }
> 
> I know showForm() can take in a map of parameters, but I didn't see
> anything like that for Form().

No as far as I can see you can't send a map of parameters to the Form 
function. You might be able to send them as request parameters though.

> 
> Thanks in advance for any help!
> 
> -ls

Jeroen Reijn
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message