LTI Result Data

120 views
Skip to first unread message

bki...@udel.edu

unread,
Jan 15, 2015, 4:51:20 PM1/15/15
to canvas-l...@googlegroups.com
I'm having trouble using the Result Data extension as documented here: https://www.edu-apps.org/extensions/result_data.html. The docs say I can send BOTH a grade and some content (text or a url) but I haven't been able to succeed. When I deploy my LTI Tool as an External Tool assignment, I am unable to specify that I want text or a url as the content of the assignment. I can send the xml with the extra node successfully, and the score is posted, but I can't find where that the text I'm sending is going. Where does that data hide. I'm thinking it's supposed to be a url a student has submitted as his assignment, but I'd settle with having it end up as a comment. Trouble is, I can't find it at all, even when it submits without throwing an error. Where does it go?

When I deploy the exact same tool in an assignment that accepts a url as a submission, I can post the content using the method documented on a different page:
https://www.edu-apps.org/extensions/content.html, but I can no longer send POX xml, because I don't have a sourcedid. So, I can send content, and I can send a grade, but I can't figure out how to send BOTH. What I'd really like to be able to do is have an input on the homework submission screen that would show the url.

I realize this is a bit of a weird use case, but there IS a reason. We have a virtual microscope we've been using since 2003 as a pre-lab exercise. Students are supposed to spend 5 minutes playing with the virtual scope before they attend the wet lab. I'm trying to create an LTI version that will provide a grade based on the quality of the magnified image they're viewing at the time they hit submit. BUT, in addition to a numeric score, I'd like them to be able to send a url that instructors can follow to see exactly what they were looking at. It's more or less the same thing you could do with a screenshot, but with just a url. It would actually be fine with me to let students just paste the url into an input field in Canvas, while the tool posts the grade. But, I don't even see a way to provide the field if I'm using External Tool as my assignment type. What am I doing wrong? 

Brad Humphrey

unread,
Jan 16, 2015, 7:23:01 PM1/16/15
to canvas-l...@googlegroups.com
You can submit both a grade and url / text as part of the homework submission.  In fact, the grade is optional now as long as you send one of the three content types.  The url or text should show up in canvas as part of the homework submission both in speed grader and in the user's submission details.  It sounds like you are approaching the problem correctly, but I am going to add some basic information that might be helpful in troubleshooting.

My guess is that there is something wrong with the <result> block of your XML.  I think if your results XML is structured incorrectly, canvas will just ignore unknown tags.  You can find the documentation at https://canvas.instructure.com/doc/api/file.assignment_tools.html.  The submission can be accessed at /courses/:course_id/assignments/:assignment_id/submissions/:submission_id, and the main content of the page should contain your return url or text.  If you have checked all these things and still are unsure why it isn't working, feel free to email me directly with a sample XML block, and I can take a look.


       

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages