Hi, does the resource has to be in a course before this works? It doesn't return any value in the construction space? -hk<br><br><br><div class="gmail_quote">On Fri, Oct 5, 2012 at 12:04 PM, Stuart Raeburn <span dir="ltr"><<a href="mailto:raeburn@msu.edu" target="_blank">raeburn@msu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Your &EXT() call works for me on a single part problem (i.e., where partid is 0), where I have set the numbubbles parameter for either the resource or the enclosing folder, after importing the published resource into teh course, e.g.,<br>
<br>
<script type="loncapa/perl"><br>
$numbub = &EXT('resource.0.numbubbles');<br>
</script><br>
<br>
<startouttext /><br>
Parameter numbubbles currently set to: $numbub)<br>
<endouttext /><br>
<br>
will display the current value set for the parameter.<br>
<br>
Stuart Raeburn<br>
MSU LON-CAPA group<div><div class="h5"><br>
<br>
<br>
Quoting hkng <<a href="mailto:hkng@fsu.edu" target="_blank">hkng@fsu.edu</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Is there a way to get the number of bubbles for a problem set in the exam<br>
mode? Tried<br>
<br>
&EXT('resource.partid.<u></u>numbubbles') where partid is the id for the part and<br>
a few variants but no success.<br>
<br>
Thanks,<br>
-hk<br>
</blockquote>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
LON-CAPA-users mailing list<br>
<a href="mailto:LON-CAPA-users@mail.lon-capa.org" target="_blank">LON-CAPA-users@mail.lon-capa.<u></u>org</a><br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target="_blank">http://mail.lon-capa.org/<u></u>mailman/listinfo/lon-capa-<u></u>users</a><br>
<br>
<br>
</blockquote></div><br>