Retrieve values from LMS after launching a course
March 7, 2013 12:00 AM
I'm trying to get the value of Attempt_Number when you first launch a course. From the debug window, I can see it but I can't capture the value. I tried using VAR(Attempt_Number) to modify variable of another variable, but it can recognize Attempt_Number.
Thanks for the help,
Discussion (3)
@cpliu 49266 wrote:
I'm trying to get the value of Attempt_Number when you first launch a course. From the debug window, I can see it but I can't capture the value. I tried using VAR(Attempt_Number) to modify variable of another variable, but it can recognize Attempt_Number.
Thanks for the help,
Interesting, I don't think attempt number is part of SCORM communication. In the Variable Manger, I did not see a reference to Attempt_Number.
-k
If you turn on Debug published content, you will see it. It starts as 1 and add 1 each time you launch the course. I don't know if it's specific to our LMS (old Pathlore), or is it just an output in debug window. I tried to use Javascript to pass it Lectora without success.
Anyone?
@cpliu 49367 wrote:
If you turn on Debug published content, you will see it. It starts as 1 and add 1 each time you launch the course. I don't know if it's specific to our LMS (old Pathlore), or is it just an output in debug window. I tried to use Javascript to pass it Lectora without success.
Anyone?
Interesting, my log file does not contain Attempt_number.... I normally output to SCORM 1.2 and tried searching for the "attempt" and did not find any hits.
Not too sure if this will work, but give this a try and let us know your results.
1)create a new variable in Lectora called my_attempt
2)create a External HTML Object in Lectora wth a Type of Custom Div
3)The code needed would be something like this:
4)This should populate the my_attempt with that value and then your free to use it as needed.
Hope this helps.
-k
Discussions have been disabled for this post