Saving data in LMS using Pipwerks wrapper

340 views
Skip to first unread message

moglie

unread,
Feb 24, 2010, 1:16:57 PM2/24/10
to eLearning Technology and Development
I was told to save data from this course I will essentially need to
build a table in the LMS using the cmi.interactions data model and
that the Pipwerks wrapper didn't appear have this implemented.

The general scenario is I have 7 questions. Each question has 5 radio
buttons and these buttons have numeric values assigned to them 0-4. I
add up the values the user has selected for all 7 questions and get a
score/total. So apparently, I'd need to use LMSSetValue,
cmi.interactions.0.id, LMSSetValue, cmi.interactions.1.id etc. to
create this "table" for the question values and then use the rest of
the interactions data model to associate metrics with each of those
question ids n.type and n.learner_response. Can this be done with the
Pipwerks wrapper or would I need to use the one the Flash creates that
can do this (so I'm told)?

Philip Hutchison

unread,
Feb 24, 2010, 2:07:22 PM2/24/10
to elearning-technolo...@googlegroups.com
the pipwerks SCORM API wrapper lets you send/retrieve all cmi variables, including interactions.

the 'set' method is shorthand for LMSSetValue (SCORM 1.2) and SetValue (SCORM 2004), while the 'get' method is shorthand for LMSGetValue (SCORM 1.2) and GetValue (SCORM 2004).

there's some error-checking built into the set and get methods, too, so they aren't just straight-up syntax shortcuts.

for interactions, you'd format your code like this:

scorm.set("cmi.interactions.0.id", "myid");
scorm.set("cmi.interactions.0.learner_response", "The quick red fox...");

var response = scorm.get("cmi.interactions.0.learner_response");
//returns "The quick red fox..."


- philip



--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To post to this group, send email to elearning-technolo...@googlegroups.com.
To unsubscribe from this group, send email to elearning-technology-and...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/elearning-technology-and-development?hl=en.


rsug...@sugels.com

unread,
Feb 24, 2010, 2:46:17 PM2/24/10
to elearning-technolo...@googlegroups.com

A point of clarification.  You cannot do a “Get” (LMSGetValue) on interactions data in SCORM 1.2.  With the exception of cmi.interactions._children and cmi.interactions._count, the rest of the interactions collection is write only.  The LMS will return an empty string and set an error code of 404 (Element is write only).  Not sure if the Pipwerks wrapper does any error checking for this. If not, you should:

1.      Ensure your code is not trying to perform a Get on the interactions collection (except for _children and/or _count), or

2.      Have error checking in place to ensure this doesn’t break your course.

 

Raymond Sugel Sr
cid:image001.png@01CA9746.34805150
eLearning Consultant
847.370.6163
rsug...@pivotpointelearning.com
www.pivotpointelearning.com

image001.png

Philip Hutchison

unread,
Feb 24, 2010, 2:59:38 PM2/24/10
to elearning-technolo...@googlegroups.com
Good point, Raymond. I was going to mention that, but since moglie mentioned learner_response (which doesn't exist in SCORM 1.2) I assumed he would be using SCORM 2004.

The wrapper does not currently check for validity of cmi element names, but I'm currently working on an update that includes that functionality.

- philip
image001.png

Ryan Meyer

unread,
Feb 24, 2010, 4:17:11 PM2/24/10
to elearning-technolo...@googlegroups.com
 I would also add that many LMSs I've worked with happily report this data back in SCORM 1.2 courses without any complaint. If you're targeting a specific LMS, you might want to run a quick test to see how it handles interactions, (that is, if your design requires you to try to pull the data back in the first place.)

-Ryan
image001.png
Reply all
Reply to author
Forward
0 new messages