Skip to main content
Participant
February 5, 2021
Question

error when we start test second time

  • February 5, 2021
  • 1 reply
  • 365 views

We use Captivate 2019

On the last slide in the action "onEnter" we use JavaScript to send data to our system.
This script:

SCORM_objAPI.LMSSetValue("cmi.suspend_data", "123");

instead of "123" we send result of test to our system. 
But, when we start test second time - it is not work. It looks like pause on the first or second slide and nothing else. When we use previous versoin of Captivate this Script successfully worked fine. Now this script works too, but we don't have opportunity to do test next time. This situation happen in cloud and in our local system. So, my question is, how to use "cmi.suspend_data" in our test without crashing all the test on the second start. Maybe there is some examples?

    This topic has been closed for replies.

    1 reply

    TLCMediaDesign
    Inspiring
    February 5, 2021

    Perhaps you need to clear the suspend data on the first slide.

    Participant
    February 9, 2021

    Thanks for answer. But it didn't help. We put script to clear the suspend data on the first slide but an error happen againt. 

     is this right way for clear suspend data?

    SCORM_objAPI.LMSSetValue("cmi.suspend_data", "");

    TLCMediaDesign
    Inspiring
    February 9, 2021

    That may have worked in previous  versions of Captivate.

     

    Instead of using:

    SCORM_objAPI.LMSSetValue("cmi.suspend_data", "123");

     

    Use this script:

    SCORM_CallLMSSetValue("cmi.suspend_data", "123")