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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to