[Xerte] quizzes - Incorrect data type problem
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Thu Oct 8 09:55:08 BST 2009
I thought so. Always use the test suite to find out if the xerte package
is at fault.
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc
Torruella Altadill
Sent: Thursday, October 08, 2009 9:07 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] quizzes - Incorrect data type problem
This is a moodle issue, more tan xerte's, moodle doesn't fully recognize
scorm 2004 yet, as far as I know.
De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Apostolidis
Leonidas
Enviado el: jueves, 08 de octubre de 2009 9:34
Para: 'Xerte discussion list'
Asunto: RE: [Xerte] quizzes - Incorrect data type problem
Hello,
I used the method toString() and worked fine in SCORM 1.2. I don't get
the error anymore and keeps the score too.
The only problem is that in SCORM 2004 doesn't keep the score. I tried
to upgrade my moodle to 1.9.5+ and still doesn't work.
--------------
score = Math.ceil(quizScoreTracking.sum() / quizScoreTracking.length *
100);
if (pageIcon.templateData.quiz[0].scorm == 'Track Last Score'){
_level0.setValue('cmi.core.score.raw', score.toString());
} else { //only track the first score
if (isNaN(_level0.getValue('cmi.core.score.raw'))){
_level0.setValue('cmi.core.score.raw', score.toString());
}
}
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Tuesday, October 06, 2009 2:07 PM
To: Xerte list
Subject: RE: [Xerte] quizzes - Incorrect data type problem
To test it, add a temporary line below this one:
score = Math.ceil(quizScoreTracking.sum() / quizScoreTracking.length *
100);
score = "75"
That will test if the system is looking for a string value.
If that doesn't work try
score = 75
If the first one works, the system wants the value in a string type.
If the second one works, you may have to round the score, as it may want
an integer.
________________________________
From: leoapost at mastgroup.gr
To: xerte at lists.nottingham.ac.uk
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Date: Tue, 6 Oct 2009 13:42:43 +0300
I have found this script in my rlo file but I don't know if it's ok..
does anyone know?
score = Math.ceil(quizScoreTracking.sum() / quizScoreTracking.length *
100);
if (pageIcon.templateData.quiz[0].scorm == 'Track Last Score'){
_level0.setValue('cmi.core.score.raw', score);
} else { //only track the first score
if (isNaN(_level0.getValue('cmi.core.score.raw'))){
_level0.setValue('cmi.core.score.raw', score);
}
}
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Thursday, October 01, 2009 2:58 PM
To: Xerte discussion list
Subject: RE: [Xerte] quizzes - Incorrect data type problem
See attached for the latest one.
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Johnathan
Kemp
Sent: Thursday, October 01, 2009 12:37 PM
To: Xerte discussion list
Subject: RE: [Xerte] quizzes - Incorrect data type problem
I am busy finishing off the testing of a set of Xerte models based on a
re-working of the .rlm files so that the models can be used individually
in Xerte, outside of page templates.
Is there a new quiz.rlm file as a result of this thread, and if so where
can I obtain a copy?
Kind regards
Johnathan
Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/>
01785 355714
________________________________
From: Julian Tenney [mailto:Julian.Tenney at nottingham.ac.uk]
Sent: 01 October 2009 11:12
To: Xerte discussion list
Subject: RE: [Xerte] quizzes - Incorrect data type problem
So you must have a folder called 'models' in your project?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Apostolidis
Leonidas
Sent: Thursday, October 01, 2009 10:44 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] quizzes - Incorrect data type problem
I have Xerte 2.6 J
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Thursday, October 01, 2009 12:05 PM
To: Xerte discussion list
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Have you got the latest Xerte?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Apostolidis
Leonidas
Sent: Thursday, October 01, 2009 10:04 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Hi Jullian
There isn't any rlm file or models folder in my files. Am I doing
anything wrong? How can I test your attached file?
I noticed also that if I export the lesson in scorm 2004 format I don't
get the error but the grades remain 0.
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of RonM
Sent: Wednesday, September 30, 2009 4:40 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] quizzes - Incorrect data type problem
I've asked for lots of things - don't always get them! ;-) But that's
great going to test shortly!
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 30 September 2009 13:42
To: Xerte discussion list
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Yes, the quiz one does. I thought you'd asked for that??
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of RonM
Sent: Wednesday, September 30, 2009 1:40 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Hi Julian
Does that mean the quiz page template does actually send scores? I was
under the impression there wasn't any score tracking built in to that
template.
Cheers
Ron
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 30 September 2009 13:29
To: Xerte discussion list
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Can you swap your quiz.rlm for thoe one attached and see if it sorts the
problem out? It goes in the models folder alongside your rlt. I was
sending a number from Xerte. I'm pretty sure all the SCORM functions
need strings...?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Apostolidis
Leonidas
Sent: Wednesday, September 30, 2009 10:23 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] quizzes - Incorrect data type problem
I use a template.rlt and I work with the template wizard
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Wednesday, September 30, 2009 11:28 AM
To: Xerte discussion list
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Are you using the templates in Xerte?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc
Torruella Altadill
Sent: Wednesday, September 30, 2009 7:51 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Ok,
That depens on the package. In our case, we call de scorm functions
(setValue, getValue) from our custom interface, an swf. If is the same
with your package, you'll need the .fla file with the code, not enough
with the compiled .swf file.
But it's possible de scorm functions are called from your .rlo file
instead, so install Xerte and edit your .rlo file, and look for the two
functions I mentioned before on the script pages.
Sorry I cannot explain better, I use custom autolearned English J.
De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Apostolidis
Leonidas
Enviado el: martes, 29 de septiembre de 2009 16:29
Para: 'Xerte discussion list'
Asunto: RE: [Xerte] quizzes - Incorrect data type problem
To be honest I didn't create the packages. I don't know many things
about the creation of scorm packages and xerte. Can you please tell me
how can I check what value is passing in setValue function?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc
Torruella Altadill
Sent: Tuesday, September 29, 2009 5:05 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] quizzes - Incorrect data type problem
Are you sure you are passing the correct value to the setValue function?
It expects a number I guess and maybe he gets a null or a string,
whatever, check your code J
De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Apostolidis
Leonidas
Enviado el: martes, 29 de septiembre de 2009 15:34
Para: xerte at lists.nottingham.ac.uk
Asunto: [Xerte] quizzes - Incorrect data type problem
Hello
I use moodle 1.9.4 and xerte 2.0 to produce scorm packages and I'm
having a little problem with the quizzes. I want to keep the score but
when I'm answering the questions and hit the submit button I get the
error "Incorrect data type" and the score remains 0. Can anyone help
me?
Thanks,
Leo
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4467 (20090929) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4467 (20090929) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4467 (20090929) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4467 (20090929) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4468 (20090929) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4470 (20090930) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4470 (20090930) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4471 (20090930) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4471 (20090930) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4471 (20090930) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
________________________________
This email and any files transmitted with it are confidential and are
intended solely for the use of the individual(s) or entity(s) to whom
they are addressed. All messages are monitored for virus, high risk
files and inappropriate content. As a result users should be aware that
this mail maybe accessed, read and the right is reserved to reject,
return, remove attachments or delete if considered to be inappropriate
or unsuitable. Liability cannot be accepted for any loss or damage
arising from this email (or any attachments) or from scripts or any
virus transmitted. This communication represents the originator's
personal views and opinions, which do not necessarily reflect those of
Connexions Staffordshire. If you are not the original recipient or the
person responsible for delivering the email to the intended recipient,
be advised that you have received this email in error, and that any use,
dissemination, forwarding, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately reply to the sender or notify postmaster at cxstaffs.co.uk
Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford,
Staffordshire, ST16 2PX
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4472 (20091001) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4472 (20091001) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4482 (20091005) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
________________________________
Hotmail: Powerful Free email with security by Microsoft. Get it now.
<http://clk.atdmt.com/GBL/go/171222986/direct/01/>
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4482 (20091005) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4482 (20091005) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4483 (20091006) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4486 (20091007) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091008/ea380905/attachment.html
More information about the Xerte
mailing list