Hello Doug,

>
> I'm still wondering about the dataresponse functionality in Lon-Capa (see 
> below). Thanks!
>

The LON-CAPA mailing list archives are searchable using swish (which is linked 
to on the loncapa.org documentation page; see: loncapa.org/documentation.html ).

This query:
http://mail.lon-capa.org/mailman/swish.cgi?query=dataresponse

currently returns: 
mail.lon-capa.org/pipermail/lon-capa-users/2008-April/003103.html
as the top-ranked result.

In that post, from 2008, the creator of the dataresponse tag included the 
following statement:

"<dataresponse> is not really functional. I'd avoid it. It was meant to
be used for a pure collection of data that wasn't to be graded. Never
really got completed."

Anyway, in your 11/15 post you wrote ...

>
> However, whatever is entered into the textfield disappears when the part is 
> submitted.
>

Looking at the LON-CAPA source (response.pm), I see that submissions from a 
dataresponse item are only stored if the user has the privilege to manage 
grades.

If you add a published problem containing a dataresponse item to a course, it 
is possible to use Content Grades > Upload Scores to upload a CSV file 
containing usernames and values to assign to that user, which will be stored 
with a key of: resource.<partid>.<responseid>.<name>.

That value could then be retrieved via a call to 
&EXT("user.resource.resource.<partid>.<responseid>.<name>") in a perl script 
block,  where <name> is the value set for the name attribute in the 
dataresponse tag, e.g.,

<problem>
<script type="loncapa/perl">
$val = &EXT('user.resource.resource.0.11.mills');
if ($val eq '') {
    $val = ' ';
}
</script>
<dataresponse name="mills" id="11" type="int" display="showme">
</dataresponse>
    <startouttext />
Your value is $val
    <endouttext />
</problem>

So, I suppose, the current dataresponse item could be used to populate a 
problem with static data specified by the instructor.  The "Submit Answer" 
button (and Tries etc.) would still be shown, for the dataresponse item, so 
you'd likely want to suppress that using javascript to interact with the DOM.

>From the LON-CAPA codebase commit history, I see the initial implementation of 
>the dataresponse tag was in August 2001 (response.pm rev. 1.44) , and initial 
>documentation (homework5.html rev. 1.10) was added in October 2001.  That same 
>documentation was transferred to the file which generates the help document: 
>/adm/help/Authoring_DataResponse.hlp in 2003, which was incorporated into the 
>Authoring Manual for LON-CAPA 1.0 (August 2003).

Given, the incomplete state of dataresponse, that documentation should either 
be updated, or excluded from future LON-CAPA releases.

Happy Holidays,

Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: LON-CAPA-users <lon-capa-users-boun...@mail.lon-capa.org> on behalf of 
Mills, Douglas G <dmi...@illinois.edu>
Sent: Friday, December 20, 2019 4:40 PM
To: Discussion list for LON-CAPA users
Cc: Mills, Douglas G
Subject: Re: [LON-CAPA-users] dataresponse

Hi All,

Merry Christmas, Happy New Year, Happy Holidays!

I'm still wondering about the dataresponse functionality in Lon-Capa (see 
below). Thanks!

Doug

DOUGLAS G MILLS
Director of Instructional Technology

Department of Chemistry

University of Illinois at Urbana-Champaign
Chemistry Annex Box A2
601 S. Mathews | M/C 712
Urbana, IL 61801
217.244.5739 | fax: 217.244.8029 | 
dmi...@illinois.edu<mailto:dmi...@illinois.edu>
chemistry.illinois.edu<https://urldefense.com/v3/__http://chemistry.illinois.edu__;!!HXCxUKc!g2FMenzEhVbvXKolQAYMqq-_syi2lF1yzQOtmHGNYxi_pIb5Nv3PKBBS_7-01w$>

[/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==]<https://urldefense.com/v3/__http://illinois.edu/__;!!HXCxUKc!g2FMenzEhVbvXKolQAYMqq-_syi2lF1yzQOtmHGNYxi_pIb5Nv3PKBCfLsw-5A$>

Under the Illinois Freedom of Information Act any written communication to or 
from university employees regarding university business is a public record and 
may be subject to public disclosure.


From: "Mills, Douglas G" <dmi...@illinois.edu>
Date: Friday, November 15, 2019 at 4:38 PM
To: Discussion list for LON-CAPA users <lon-capa-users@mail.lon-capa.org>
Cc: "Mills, Douglas G" <dmi...@illinois.edu>
Subject: Re: dataresponse

I should have added that the response for the part continues to be "some items 
were not submitted."  I'm sure I'm doing something dumb -- missing something 
somewhere. Thanks!

Doug

DOUGLAS G MILLS
Director of Instructional Technology

Department of Chemistry

University of Illinois at Urbana-Champaign
Chemistry Annex Box A2
601 S. Mathews | M/C 712
Urbana, IL 61801
217.244.5739 | fax: 217.244.8029 | 
dmi...@illinois.edu<mailto:dmi...@illinois.edu>
chemistry.illinois.edu<https://urldefense.com/v3/__http://chemistry.illinois.edu__;!!HXCxUKc!g2FMenzEhVbvXKolQAYMqq-_syi2lF1yzQOtmHGNYxi_pIb5Nv3PKBBS_7-01w$>

[/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==]<https://urldefense.com/v3/__http://illinois.edu/__;!!HXCxUKc!g2FMenzEhVbvXKolQAYMqq-_syi2lF1yzQOtmHGNYxi_pIb5Nv3PKBCfLsw-5A$>

Under the Illinois Freedom of Information Act any written communication to or 
from university employees regarding university business is a public record and 
may be subject to public disclosure.


From: "Mills, Douglas G" <dmi...@illinois.edu>
Date: Friday, November 15, 2019 at 4:23 PM
To: Discussion list for LON-CAPA users <lon-capa-users@mail.lon-capa.org>
Cc: "Mills, Douglas G" <dmi...@illinois.edu>
Subject: dataresponse

Happy Friday!

I was perusing the Author's Manual yesterday and noticed for the first time the 
datresponse tag (p. 95 of the current version) and it seems like it could be 
very helpful -- quite possibly the correct Lon-Capa way of doing a number of 
things I've been doing in other ways...

Anyway, I'm working on putting this tag to use and have added the following to 
an existing problem part:

<dataresponse name="newversion" id="newversion" type="int" 
display="testing"><textline/></dataresponse>

However, whatever is entered into the textfield disappears when the part is 
submitted. Am I doing something wrong?  Thanks!

Doug

DOUGLAS G MILLS
Director of Instructional Technology

Department of Chemistry

University of Illinois at Urbana-Champaign
Chemistry Annex Box A2
601 S. Mathews | M/C 712
Urbana, IL 61801
217.244.5739 | fax: 217.244.8029 | 
dmi...@illinois.edu<mailto:dmi...@illinois.edu>
chemistry.illinois.edu<https://urldefense.com/v3/__http://chemistry.illinois.edu__;!!HXCxUKc!g2FMenzEhVbvXKolQAYMqq-_syi2lF1yzQOtmHGNYxi_pIb5Nv3PKBBS_7-01w$>

[/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==]<https://urldefense.com/v3/__http://illinois.edu/__;!!HXCxUKc!g2FMenzEhVbvXKolQAYMqq-_syi2lF1yzQOtmHGNYxi_pIb5Nv3PKBCfLsw-5A$>

Under the Illinois Freedom of Information Act any written communication to or 
from university employees regarding university business is a public record and 
may be subject to public disclosure.

_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

Reply via email to