Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 10:11 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Sending SCORM data to an MLE without ending the session
PostPosted: January 21st, 2011, 1:35 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
I am using the (excellent) SCORM Flex template to author a test piece to upload into a SumTotal MLE. I am using the Reload SCORM 1.2 player to test the interactions are taking place. All is fine if I exit via the page Exit_PG, which closes the session with the MLE, but I want to save data as I go along incase the user 'crashes' out of the courseware. I have tried using SetLMSValue("cmi.core.lesson_location",LMS_Lesson_Location) in the page action script but it does not seem to work.
Anyone have the fix for this?

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


For this message Andrew Thompson has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Sending SCORM data to an MLE without ending the session
PostPosted: January 21st, 2011, 3:32 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
It isn't broken.

Neither SetLMSValue or LMSExit actually write the data to the database. If you look at the JS Functions in the HTML file, you'll notice that the LMSExit calls another function 'commit' before the LMS exit occurs which commits the transaction.

It's not in the SCORM template and therefore you'll have to add your own Opus function to call the this JS Function and use this to commit.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Sending SCORM data to an MLE without ending the session
PostPosted: January 24th, 2011, 12:22 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
Thank you for the information Mack, I have found the function ILMCommit() in the html file but cannot find a call to it within the Opus SCORM functions; I thought that it might be in the Private SCORM Functions script and expected it to be in the LMSEnd call but there is no reference to it, do you know what script calls the function?

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


For this message Andrew Thompson has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Sending SCORM data to an MLE without ending the session
PostPosted: January 24th, 2011, 3:43 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
Cracked it! :D
For those who (like me) are SCORM duffers here is the solution (until the guys at DW tell me that I have made an illegal call!)
In the User SCORM Functions add the following function:
function SaveData()
{
AddJSCommand('ILMCommit()')
}
GetPublication().SaveData = SaveData;


Then in the OnShow Action on the page(s) where you want the data to save put the following script (in this case I am saving the page the student last visited data)
LMS_LESSON_LOCATION=this.GetName();
SetLMSValue("cmi.core.lesson_location",LMS_LESSON_LOCATION);
SaveData()


The above also works if you are saving individual SCORM objectives.

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


For this message Andrew Thompson has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Sending SCORM data to an MLE without ending the session
PostPosted: April 17th, 2011, 4:32 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Andy,

Can you help with this (see new posting) viewtopic.php?f=4&t=4566&p=20842#p20842

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Sending SCORM data to an MLE without ending the session
PostPosted: April 18th, 2011, 8:52 am 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
Stephen,
I had a look at the topic, I think that you have already looked at my previous topic about ASP and postWebData, I don't really think that I can add any more. Sorry.

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


For this message Andrew Thompson has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Sending SCORM data to an MLE without ending the session
PostPosted: April 18th, 2011, 12:22 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Andrew,

Thank you for writing.

I have been able to use a test ASP script to connect to the SQL Server DB and display a single data item on the ASP page using the Response.write Recordset method.

The problem is that I can't find any ASP script that will get this same data item to return back to the Opus Flex (SWF) pub using the destination tab of the post web data action.

I can't find any way to script the ASP output into the name value pair format that (I think) Opus Flex's post web data seems to require. So, nothing returns and displays (in a text box with variable inserted) in the test SWF.

(Alternately, while a PHP script has a good chance of working with Opus Flex, I have not been able to get it to connect with the SQL Server (that the LMS uses to store its data). I have a connection string that works for ASP script format, but which I have been unable to "translate" into PHP script format and get to work. Ugh.)

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group