saved state

15 views
Skip to first unread message

Alan Zaitchik

unread,
Aug 25, 2010, 8:27:34 AM8/25/10
to elearning-technolo...@googlegroups.com
<apology>Yet another newbee question for which I apologize in advance. I am sure it is answered in SCORM documentation somewhere, but my question also relates to "best practice" in your community, so I hope it will be excused.</apology>

Question: Is there a recommended field where arbitrarily defined state can be remembered between launches but which most SCORM-enabled LMS systems would clear if the user asked for a "new attempt" launch. I don't mean a field that has a restricted range of values (e.g. "completed", "incomplete", and so on), but rather application-defined values.

The motivation here is that the SCO would want to save certain pieces of information on a given launch that was not completed, and have them available when/if the same user relaunches the SCO through something other than "new attempt". It would be nice if the LMS understood to ignore the saved state values on a "new attempt".

Thanks,

Alan


Cor

unread,
Aug 25, 2010, 8:46:56 AM8/25/10
to elearning-technolo...@googlegroups.com

Check out suspend_data

 

 

Regards

Cor

--
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.

Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3090 - datum van uitgifte: 08/24/10 17:31:00

Ryan Meyer

unread,
Aug 25, 2010, 9:55:22 AM8/25/10
to elearning-technolo...@googlegroups.com
Agreed - cmi.suspend_data (in SCORM 2004) or cmi.core.suspend_data (in SCORM 1.2) is meant exactly for this. In 1.2, the spec limits you to 4000 characters, although it's much higher in 2004.

On Wed, Aug 25, 2010 at 8:46 AM, Cor <cor.va...@gmail.com> wrote:

Check out suspend_data

 

 

Regards

Cor

 

From: elearning-technolo...@googlegroups.com [mailto:elearning-technolo...@googlegroups.com] On Behalf Of Alan Zaitchik
Sent: woensdag 25 augustus 2010 14:28
To: elearning-technolo...@googlegroups.com
Subject: [elearning tech & dev] saved state

 

<apology>Yet another newbee question for which I apologize in advance. I am sure it is answered in SCORM documentation somewhere, but my question also relates to "best practice" in your community, so I hope it will be excused.</apology>

 

 

--

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.

Geen virus gevonden in het binnenkomende-bericht.


Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3090 - datum van uitgifte: 08/24/10 17:31:00

Alan Zaitchik

unread,
Aug 25, 2010, 1:25:08 PM8/25/10
to elearning-technolo...@googlegroups.com
Thanks Cor, Ryan.
I will also set the lesson status to 'suspend'.

Alan



From: Ryan Meyer <ryan.e...@gmail.com>
To: elearning-technolo...@googlegroups.com
Sent: Wed, August 25, 2010 9:55:22 AM
Subject: Re: [elearning tech & dev] saved state

rsug...@pivotpointelearning.com

unread,
Aug 25, 2010, 1:43:02 PM8/25/10
to elearning-technolo...@googlegroups.com

Suspend is not in the list of restricted values for lesson status/completion status.  It is for the exit data element.  When a student quits before completion I normally set the lesson/completion status to incomplete and exit to suspend.

 

image001.png

Alan Zaitchik

unread,
Aug 25, 2010, 5:27:37 PM8/25/10
to elearning-technolo...@googlegroups.com
my bad. that's what i meant.



From: "rsug...@pivotpointelearning.com" <rsug...@pivotpointelearning.com>
To: elearning-technolo...@googlegroups.com
Sent: Wed, August 25, 2010 1:43:02 PM
Subject: RE: [elearning tech & dev] saved state

Alan Zaitchik

unread,
Aug 27, 2010, 9:16:23 AM8/27/10
to elearning-technolo...@googlegroups.com
Using the pipwerks wrapper should
pipwerks.SCORM.set("cmi.core.suspend_data", susp_data);
and
pipwerks.SCORM.get("cmi.core.suspend_data");
work (SCORM 1.2) ?
pipwerks.SCORM.data does not have a "suspend_data" member, and I am somewhat unclear about the Javascript calls that assume this object.
Thanks,
Alan

Sent: Wed, August 25, 2010 1:43:02 PM
Subject: RE: [elearning tech & dev] saved state

Cor

unread,
Aug 27, 2010, 9:20:55 AM8/27/10
to elearning-technolo...@googlegroups.com

I use SCORM 1.2 and this:

 

Pipwerks.SCORM. set("cmi.suspend_data"));

 

Pipwerks.SCORM. get("cmi.suspend_data"));

 

The wrapper handles it for you.

 

From: elearning-technolo...@googlegroups.com [mailto:elearning-technolo...@googlegroups.com] On Behalf Of Alan Zaitchik
Sent: vrijdag 27 augustus 2010 15:16
To: elearning-technolo...@googlegroups.com
Subject: Re: [elearning tech & dev] saved state

 

Using the pipwerks wrapper should

pipwerks.SCORM.set("cmi.core.suspend_data", susp_data);

and

pipwerks.SCORM.get("cmi.core.suspend_data");

work (SCORM 1.2) ?
pipwerks.SCORM.data does not have a "suspend_data" member, and I am somewhat unclear about the Javascript calls that assume this object.
Thanks,
Alan


From: "rsug...@pivotpointelearning.com" <rsug...@pivotpointelearning.com>
To: elearning-technolo...@googlegroups.com
Sent: Wed, August 25, 2010 1:43:02 PM
Subject: RE: [elearning tech & dev] saved state


Suspend is not in the list of restricted values for lesson status/completion status.  It is for the exit data element.  When a student quits before completion I normally set the lesson/completion status to incomplete and exit to suspend.

 

Raymond Sugel Sr
Error! Filename not specified.
eLearning Consultant
224-293-4135 (O)

847-370-6163 (C)
rsug...@pivotpointelearning.com
www.pivotpointelearning.com

Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10 20:34:00

Alan Zaitchik

unread,
Aug 27, 2010, 10:03:07 AM8/27/10
to elearning-technolo...@googlegroups.com
Thanks. That is now working.
Strangely, however,
pipwerks.SCORM.get("cmi.core.exit")
fails. Stepping through the Javascript as best as I can I note that line 188 in the pipwerks API wrapper for LMSGetValue
if (eval('datamodel["'+elementmodel+'"].mod') != 'w')
evaluates to false because the value is 'w' for the "mod" data member. I thus get an error condition back rather than "suspend". Does the 'w' mean I cannot read the exit status, and if so is there some other way I am supposed to check the previous exit status? I could of course just test to see if there is any suspend_data returned! And indeed I will do that since if there is none then I don't really care that the exit status was 'suspend'. Still, I would like to better understand what is going on, if you have the patience to answer this!



From: Cor <cor.va...@gmail.com>
To: elearning-technolo...@googlegroups.com
Sent: Fri, August 27, 2010 9:20:55 AM

Ryan Meyer

unread,
Aug 27, 2010, 10:09:04 AM8/27/10
to elearning-technolo...@googlegroups.com
That CMI data element (cmi.core.exit), is write only. That's what the 'w' stands for.
The value that you set for the previous launch of a course will not be carried over to the next launch of the course anyway.
The correct approach is what you mentioned - look at the value of suspend_data and react to it being present or not.

Hope that helps!
-Ryan

Estes Ethan

unread,
Aug 27, 2010, 10:08:59 AM8/27/10
to elearning-technolo...@googlegroups.com
You'll want to look at the cmi.core.entry value on reentry. If exit was set to suspend when you left before then the LMS will set entry to resume.  The two work together.
-EÆ


Ryan Meyer

unread,
Aug 27, 2010, 10:22:20 AM8/27/10
to elearning-technolo...@googlegroups.com
Oops, even better answer!

Alan Zaitchik

unread,
Aug 27, 2010, 11:24:39 AM8/27/10
to elearning-technolo...@googlegroups.com
THANK YOU ALL!
This group is unbelievable in the value and speed of the answers and help, and I am very appreciative of the patience you all show.
A


Sent: Fri, August 27, 2010 10:22:20 AM

Philip Hutchison

unread,
Aug 27, 2010, 11:55:12 AM8/27/10
to elearning-technolo...@googlegroups.com
just a quick note: the code you supplied is not from the pipwerks wrapper:


if (eval('datamodel["'+elementmodel+'"].mod') != 'w')

eval is evil, it should be avoided when possible. this is a perfect example of a place where eval is easily avoided.

glad you got the issues sorted out. :)

- philip
Reply all
Reply to author
Forward
0 new messages