SCORM 1.2 any GetValue call to check Initialize?

274 views
Skip to first unread message

Paul Ziech

unread,
Jul 11, 2014, 12:12:00 PM7/11/14
to elearning-technolo...@googlegroups.com
Is there any way to run a GetValue statement that will return something ("true" or null I'm guessing) about the Initialization status from the LMS?
I need to run some logic on it.

There's very specific reasons why we are not initializing from the index (or any top level page or frame) so that advice will not help resolve the issue.

I just need any data from the LMS to see if the connection already initialized.

If someone knows how to complete this statement...

      GetValue("                                                               ");

...and knows what values it will return, that's all I need.

Thank you!

Philip Hutchison

unread,
Jul 11, 2014, 12:33:34 PM7/11/14
to elearning-technolo...@googlegroups.com
do a getvalue on lesson status, then check getlasterror.  if the connection is not initialized, getlasterror it should return the 'not initialized' error. 

initialize returns a success Boolean (stringified), you can use that as well. 

--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Philip Hutchison

unread,
Jul 11, 2014, 12:34:47 PM7/11/14
to elearning-technolo...@googlegroups.com
btw, you need to tell us what version of scorm since there are significant differences between 1.2 and 2004. 

Paul Ziech

unread,
Jul 11, 2014, 12:52:23 PM7/11/14
to elearning-technolo...@googlegroups.com
Yeah, I was looking at writing a custom function in the API file to pull the string but I like your getLastError hack much better.

Nice. Thank you.

I do say version 1.2 in the title btw, but it did dawn on me I should have had it in the body after clicking post. ;)
To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and-development+unsubscribe@googlegroups.com.

John Campbell

unread,
Jul 11, 2014, 2:00:24 PM7/11/14
to elearning-technolo...@googlegroups.com
1.2 is in the subject. 

Take care,
jpc

--
John Campbell
Sent from Mobile Phone

Philip Hutchison

unread,
Jul 11, 2014, 3:02:13 PM7/11/14
to elearning-technolo...@googlegroups.com
when reading on my phone the subject line gets obscured. :)

Paul Ziech

unread,
Jul 11, 2014, 3:06:19 PM7/11/14
to elearning-technolo...@googlegroups.com
Wait is this even possible to do a Get prior to Initializing?

My SCORM 1.2 documentation is showing that the SCO can only call LMSInitialize prior to initialization, after Finish you can still call GetLastError and Diagnostic.

If true, this seems really shortsighted. Is that fixed in 2004?

ALL IS FORGIVEN on the great SCORM version communication debacle!

Philip Hutchison

unread,
Jul 11, 2014, 3:36:55 PM7/11/14
to elearning-technolo...@googlegroups.com
You're not supposed to do a GetValue prior to initializing, and that's why GetLastError will return a "not initialized" error. The SCORM API will still expose GetValue, even if the initialization hasn't yet occurred.



To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages