Skip to main content
Participant
July 4, 2016
Question

Losing variables in moodle (score 1.4)

  • July 4, 2016
  • 1 reply
  • 196 views

We are running a package that collects variables on learner performance (outside a quiz) and displays them to the learner as they progress through the package. If a learner exits then resumes later, moodle resets the variables and we lose the data. Has anyone else had this problem and perhaps found a solution?

Thanks,

John

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    July 4, 2016

    This is not due to Moodle. Variables are reset automatically when relaunching a course. If you want to transfer their value in between sessions, you can use local storage but that means that the user has to be on the same system to retake the course. Keeping values of variables can be done with JavaScript (using local storage), or if you publish only to HTML with the new CpExtra widget (not free, external development) created by InfoSemantics:

    Introduction to CpExtra | Infosemantics Pty Ltd

    Participant
    July 4, 2016

    Thanks lilybiri,

    I'll take a look at CP extra. I've uploaded the same module onto Prime and it doesn't lose the variables (perhaps due to scorm 2004 rather than 1.4.) It will  be interesting to see what CP extra can do.

    Cheers,

    John

    Lilybiri
    Legend
    July 4, 2016

    I could never use Prime, bit amazed that the variables are not reset, because they are in every LMS I know about. This is not linked with SCORM version.  I used both 2004 and 1.2.