From dmills at illinois.edu Fri Dec 20 16:40:45 2019 From: dmills at illinois.edu (Mills, Douglas G) Date: Fri, 20 Dec 2019 21:40:45 +0000 Subject: [LON-CAPA-users] dataresponse In-Reply-To: <23AD71ED-D50E-4D27-B30D-99BC2BBFDCDE@illinois.edu> References: <23AD71ED-D50E-4D27-B30D-99BC2BBFDCDE@illinois.edu> Message-ID: 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 | dmills at illinois.edu chemistry.illinois.edu [/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==] 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" Date: Friday, November 15, 2019 at 4:38 PM To: Discussion list for LON-CAPA users Cc: "Mills, Douglas G" 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 | dmills at illinois.edu chemistry.illinois.edu [/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==] 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" Date: Friday, November 15, 2019 at 4:23 PM To: Discussion list for LON-CAPA users Cc: "Mills, Douglas G" 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: 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 | dmills at illinois.edu chemistry.illinois.edu [/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==] 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 2604 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 2605 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 2606 bytes Desc: image003.png URL: From raeburn at msu.edu Fri Dec 20 17:29:43 2019 From: raeburn at msu.edu (Raeburn, Stuart) Date: Fri, 20 Dec 2019 22:29:43 +0000 Subject: [LON-CAPA-users] dataresponse In-Reply-To: References: <23AD71ED-D50E-4D27-B30D-99BC2BBFDCDE@illinois.edu>, , Message-ID: 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: " 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.... That value could then be retrieved via a call to &EXT("user.resource.resource...") in a perl script block, where is the value set for the name attribute in the dataresponse tag, e.g., Your value is $val 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 on behalf of Mills, Douglas G 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 | dmills at illinois.edu chemistry.illinois.edu [/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==] 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" Date: Friday, November 15, 2019 at 4:38 PM To: Discussion list for LON-CAPA users Cc: "Mills, Douglas G" 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 | dmills at illinois.edu chemistry.illinois.edu [/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==] 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" Date: Friday, November 15, 2019 at 4:23 PM To: Discussion list for LON-CAPA users Cc: "Mills, Douglas G" 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: 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 | dmills at illinois.edu chemistry.illinois.edu [/var/folders/kv/f3wpy1cs51521x5grm_qx4tw0000gn/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/P698ojxP4tc7j8gMqgPv+E4KQAAAABJRU5ErkJggg==] 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.