error when we start test second time

New Here ,
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

100

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 05, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
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", "");

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
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")

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Unfortunately it didn't help too (

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Paul Korzhenevskiy AUTHOR LATEST
New Here ,
Feb 15, 2021

Copy link to clipboard

Copied

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?

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more