Forum OpenACS Q&A: Re: Assessment - urgent

Collapse
31: Re: Assessment - urgent (response to 1)
Posted by Nima Mazloumi on
Rocael: nice documentation [*]. Can you explain what requests are?

Regarding actions:

[1] From what I understand an action is basically a tcl proc with parameters where the parameter values derive from an auto-generated form, right?

So the action cannot access information the user has indicated my processing the assessment so far, right?

[2] Actions seems not to have a return value that could be used for branching, terminating an assessment or redirection?

If I am correct on [1] then what do you think of that you can define action parameters or reference questions that were answered before the action is called.

Regarding [2] I have no idea yet but maybe a boolean would be even enough but then an action would behave like a decision node so where could be place the information what happens then?

[*] /doc/assessment/asm_trigger_doc/index.html

Collapse
Posted by Rocael Hernández Rizzardini on
1. You can access in your "tcl code" actions: values entered in the assessment or directly by queries to be presented to the end user.
2. Triggers are used for branching.
You can use both, actions & triggers.

Requests, are actions that will be executed after someone reviews it.
Play with it =)