[LON-CAPA-users] using &submission() between problems
Stuart Raeburn
raeburn at msu.edu
Mon Dec 14 17:57:37 EST 2015
Bob,
The syntax is described in the LON-CAPA Script Functions help item:
e.g.,
http://loncapa.chem.binghamton.edu/adm/help/Problem_LON-CAPA_Functions.hlp
To access a student's submissions in a different problem you need to
supply a sixth argument -- a maplias, and the call is:
&submission($partid,$responseid,$version,$encode,$cleanupnum,$mapalias);
In the case of a published sequence, where you have authoring or
co-authoring rights, you can set a mapalias for a particular resource
in the sequence using the Advanced Editor in Authoring Space (prior to
publication).
If there is no mapalias set you can use the (much longer) unique
identifier of the resource instance (known as the "symb"). If you are
using a folder added via the Course Editor rather than a published
sequence, there is currently no mechanism to set a mapalias for a
particular resource instance in the folder (which is actually still a
sequence internally in LON-CAPA), so you will have to use the "symb".
You can display a list of "symb"s in a course using:
Course Editor > Content Utilities > List Resource Identifiers
(the "symb"s are in the "Identifier" column).
Stuart Raeburn
LON-CAPA Academic Consortium
Quoting Bob Gonzales <rgonzal at binghamton.edu>:
> Hi,
>
> The release notes for 2.11.1 say this about &submission():
>
> &submission() in one problem can access submissions by the same student
> in a different problem.
>
> Does this mean any problems in a course that the student has access to or
> do the problems still have to be in a sequence?
>
> If a sequence is not required then what would be the the syntax of the call?
>
> Thanks,
> Bob Gonzales
> Binghamton University
> Chemistry Dept
More information about the LON-CAPA-users
mailing list