Saving variables for re-launch

Feb 05, 2021

Hello, I can't believe I haven't come across this before, but it seems variables get set to their default state on a course re-launch. Is that expected?

I've tried variables and according to an object's state, and also made sure the slide is set to return to saved state, not initial. But no luck.

It would be handy to have all variables as they were when the learner was last in the course so they can continue how they left off.


Does anyone have any ingenious ways of making sure this happens? Thanks.

13 Replies
Mark Lentz

Is it possible that using Javascript for something like this command would save all variables when it is run?

LMSCommit( “” ) : bool – Indicates to the LMS that all data should be persisted (not required)

As an aside, I did not initially realize that if you set the Resume feature to "Prompt User" and the user chooses "Restart", that flushes all their variables.  So I set it to "Always Resume"!

 

Douglas Harriman

Is there a difference between Project variables and Built-in variables in this regard?

I've been testing the Slide.ElapsedTime and Project.ElapsedTime variables in our LMS and am finding that they reset when I exit the course, re-open it and resume.

(Project variable values have persisted with this tests, returning to their value at the point of the most recent Next button usage, and have not reset.)