Get and Set Variable Values

Jul 16, 2017

Hi everyone,

Can someone kindly tell how store and retrieve variable values. 

Here's my situation, I use Storyline 2, output as SCORM 1.2, and have nothing to do about quiz, Moodle as LMS. All I just want to store variables and retrieve/restore them when the SCORM launch again.

I've did some research digging and I found there's no conclusion at the end of day. From here, Steve said "Variables are stored in suspend data on the LMS and restored to the Storyline file when relaunched from the LMS", but most other reference points me to here, if I want to store variable values and retrieve later ( Note: I do not care if those data lives, and they are no need can be readable by human ) 

If Steve was right, then my question is where I could go wrong that my var data can't be retrieve on reload, and they are set as default, ie. 0 or undef . Thank you very much in advance

5 Replies
David Lee

Hi Alyssa , glad to hear from you. I am using "Always Resume", and.. yet I have not enough time to try it on SCORM cloud.

Though, I have some new founding. Which is, if I have a bulk enough of slides, my values can be stored and retrievable. But if I have a very lite weight little SCORM, it seems like all entire content will be cached once loaded ( I have ignore flash cookie turned on ).

Above is my guess. Correct if I am wrong, what I've heard is "Variable values are being stored in suspend data when slide changes". For this, I've turned on some http traffic capture tool, and see no traffic to the LMS for my little SCORM file, but the bulk enough SCORM does. Is that supporting my guess?

Or perhaps, could you just kindly tell me when will the "store" procedure triggered at all =) Thank you very much

Ashley Terwilliger-Pollard

Hi Exile,

You're right that the variable values will be captured (along with the state of the slide) when the user changes the slide. If you needed to see the information we're sending your LMS, the debug mode is a great option and it'll showcase questions, answers, score, etc. 

The suspend/resume data is something we compress and isn't human readable - so you wouldn't see things like the state of the slide or variable value captured in the suspend data or the data we pass to your LMS. 

This discussion is closed. You can start a new discussion or contact Articulate Support.