[Xerte] Re: Moodle and cmi calls

Dave Burnett d_b_burnett at hotmail.com
Fri Apr 1 14:13:42 BST 2011



Waiting for the hosting service to get back to me.

Martin pointed me to a brilliant little free tool - ProddingSCO
You just mount it on the LMS and it lets you do all sorts of diagnostics:

Sample log from my test:

LMSInitialize("") returns "true" 
LMSSetValue("cmi.core.score.raw","1") 
Returns "true" 
LMSGetValue("cmi.core.score.raw") 
Returns "" 

You tell me.
No error messages, no red lights, no alerts.
And no return value.




From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 1 Apr 2011 13:47:39 +0100
Subject: [Xerte] Re: Moodle and cmi calls











is it your problem then?
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 01 April 2011 12:02

To: Xerte list

Subject: [Xerte] Re: Moodle and cmi calls







Did all that.



In the wrapper, debugging true , alerts all the way through the process.



No errors, but it just returns null on this system.



Original system developed on (not Moodle) - works.

Tom's Moodle 2 - works

Tom's Moodle 1.9 - works



The fact that it is returning null leads me to believe it is reading the LMS.



But set is doing nothing.

Has to be something in this particular setup.








From: Julian.Tenney at nottingham.ac.uk

To: xerte at lists.nottingham.ac.uk

Date: Fri, 1 Apr 2011 11:48:55 +0100

Subject: [Xerte] Re: Moodle and cmi calls





then it wouldn't comply. I suppose it's possible but I don't think that's the right tree to bark up.
 
How far through the process can you prove things are working?
 
You can run alerts, or get evidence all the way through the javascript fucntion calls? Does data appear to be being set from api wrapper?
 
If you can, the problem lies on the moodle side of things.
 
You can see the api is found and initialised? Do you have access yourself so you can try stepping through it all? I'd try and get to the point where you can prove it's not your problem to solve...
 
Tried another package you know to be ocmpliant? I think the ADL site had some lab rats you could use. Try and get Xerte / Flash out of the picture and see what happens? That will make it easier to prove...
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 01 April 2011 10:46

To: Xerte list

Subject: [Xerte] Re: Moodle and cmi calls





The plot thickens.



Tom (Thanks Tom!) has tested on his Moodle install and it works as expected.



The hosting service I am loading to uses Moodle 1.9.11.

I do not think the version is the issue.



Is it possible to disable specific data elements?

Since suspend_data is one of the few places you can dump stuff on the LMS, maybe they disabled for security reasons?



Dave






Date: Fri, 1 Apr 2011 00:21:58 +0200

From: reijnders at tor.nl

To: xerte at lists.nottingham.ac.uk

Subject: [Xerte] Re: Moodle and cmi calls



I tried it on a quiz in moodle 2 (Moodle 2.0.2 (Build: 20110221))



It works (as long as you do not start a new attempt). Than  suspend_data gets erased.



I am happy to test your file. 



Regards,



Tom





Op 31-3-2011 19:08, Dave Burnett schreef:


Anyone have Moodle access?

I have a barebones 150K zip with nothing but a set/get pair.



Could this hosting service have killed the stored proc for suspend_data or something?








From: 
Julian.Tenney at nottingham.ac.uk

To: 
xerte at lists.nottingham.ac.uk

Date: Thu, 31 Mar 2011 17:49:25 +0100

Subject: [Xerte] Re: Moodle and cmi calls





it ought to commit onUnload of the web apge, I think, if it hasn't already. But there's no need to: that's all handled by the js.
 


From: 
xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 31 March 2011 17:06

To: Xerte list

Subject: [Xerte] Re: Moodle and cmi calls






Can't suss it.



alert("api var " + api);

[object object]



setValue

alert(name); //cmi.suspend_data

alert(value); //3

No errors



getValue

alert(value); //null

No errors



Do I need to force a commit or something?

How do I call that from Xerte? 








From: 
Julian.Tenney at nottingham.ac.uk

To: 
xerte at lists.nottingham.ac.uk

Date: Thu, 31 Mar 2011 15:49:36 +0100

Subject: [Xerte] Re: Moodle and cmi calls





never n eeded to in the tset stuite: the suite should tell you whether things are initalising or not?
 


From: 
xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 31 March 2011 15:21

To: Xerte list

Subject: [Xerte] Re: Moodle and cmi calls






Can I turn on debugging for the API intialization?



I set var _Debug = true; in apiwrapper.js but get nothing.



Does that necessarily mean it setting up OK?






From: 
Julian.Tenney at nottingham.ac.uk

To: 
xerte at lists.nottingham.ac.uk

Date: Thu, 31 Mar 2011 14:04:12 +0100

Subject: [Xerte] Re: Moodle and cmi calls





check the manual
 
cmi.core.suspend_data? //but I think you're right cmi.suspend_data?
 
What happens in the test suite?
 


From: 
xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 31 March 2011 12:43

To: Xerte list

Subject: [Xerte] Moodle and cmi calls






Any reason for this to not work in Moodle?



_level0.setValue('cmi.suspend_data', 'some text');

and 

_level0.getValue('cmi.suspend_data');



getValue returns null,
setValue seems to do nothing.



No API adapter errors come up.



Dave





This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
 contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be
 monitored as permitted by UK legislation. 



_______________________________________________ Xerte mailing list 
Xerte at lists.nottingham.ac.uk 
http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete
 it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been
 checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted
 by UK legislation. 



_______________________________________________ Xerte mailing list 
Xerte at lists.nottingham.ac.uk 
http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete
 it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been
 checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted
 by UK legislation. 



_______________________________________________ Xerte mailing list 
Xerte at lists.nottingham.ac.uk 
http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete
 it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been
 checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted
 by UK legislation.

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

  



-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196




_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
 If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
 do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
 checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.




_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
 If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
 do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
 checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.






_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110401/c2fb3323/attachment-0001.html>


More information about the Xerte mailing list