Forum Discussion
ChrisAmmon
12 years agoCommunity Member
Reset multiple variables to default values
Is there any shortcut for reseting many variable to their default values? I'm creating a scenario based training in which I have about 20 variables tracking user progress. If they choose to restart ...
SteveGannon
12 years agoCommunity Member
Hi Jill,
I understand what you're trying to do but off the top of my head, no, I don't know of a way to do this.
My first thought was that you could use JavaScript to get the value of cmi.suspend_data, such as:
var progress = lmsAPI.GetDataChunk();
...and then edit the string stored in 'progress', sending it back using lmsAPI.SetDataChunk, but that's pretty sketchy. Even if you could decipher the string, it would be pretty hazardous to try to update it I would think.
Related Content
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago