• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

error when we start test second time

New Here ,
Feb 05, 2021 Feb 05, 2021

Copy link to clipboard

Copied

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?

Views

210

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 05, 2021 Feb 05, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 08, 2021 Feb 08, 2021

Copy link to clipboard

Copied

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", "");

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 09, 2021 Feb 09, 2021

Copy link to clipboard

Copied

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")

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 15, 2021 Feb 15, 2021

Copy link to clipboard

Copied

Unfortunately it didn't help too (

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 15, 2021 Feb 15, 2021

Copy link to clipboard

Copied

LATEST

How it right to clear the suspend data on the first slide? Could you write example script? 

 

SCORM_objAPILMSSetValue("cmi.suspend_data", "");

 

this script works but only when we relaunch again the test. 

 First start is ok (on the last slide we use script for save data 

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

 

 on the second time - it's not work but on the first slide we try to clear suspend_data

SCORM_objAPILMSSetValue("cmi.suspend_data", "");

i see in the debag that smi.suspend_data is empty - but test stopps on the thid slide and nothing happen

 

 on the thid time - it wors find

 on the forth time - an error again

 

 =(

 

 how to clear the suspend data?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources