scorm2004 - Why the passed score is not storing in SCORM Cloud for SCORM 2004 3rd edition? -


i launched scorm 2004(3rd edition) package in scorm cloud. passed exam of 80%, results not stored. attached sandbox registration state results.

satisfied: true **completed: unknown** progress status: true attempts: 1 suspended: true activity objective #1     id:     measure status: false     **normalized measure: unknown**     progress measure: true     satisfied status: true runtime data     **cmi.completion_status: unknown**     cmi.credit: credit     cmi.entry: resume     cmi.exit: suspend     cmi.learner_preference         cmi.learner_preference.audio_level: 1         cmi.learner_preference.language:         cmi.learner_preference.delivery_speed: 1         cmi.learner_preference.audio_captioning: 0     **cmi.location: 2_8     cmi.mode: normal     cmi.progress_measure:     cmi.score_scaled:     cmi.score_raw: 80**     cmi.score_min:     cmi.score_max:     **cmi.total_time: 0000:00:28**     total time tracked scorm engine: 0000:00:29.12     cmi.success_status: passed     cmi.suspend_data:     static data         cmi.completion_threshold:         cmi.launch_data:         cmi.learner_id: test@domain.com         cmi.learner_name: test test         cmi.max_time_allowed:         cmi.scaled_passing_score:         cmi.time_limit_action: undefined 

when tried same course in scorm 1.2 version, can see results in scorm cloud. don't know, issue on this.

here, attached script also,

function getresults(correct_count, answers_key, total, grade) {         var form_result = $('form').serializearray();         $.each(form_result, function(i, val) {             if(answers_key[i] == val.value) {                 correct_count += 1;              }         });         var score = math.round(parsefloat(parsefloat(correct_count, 10) * 100)/ parsefloat(total, 10));          setscore(score);         if(score >= grade) {             setpassfail('passed');         } else {             setpassfail('failed');         }     }       function setpassfail(spassfail) {         /* see if scorm 2004 */         if (_sapi == "api_1484_11") {             /* scorm 2004, set success status */             scormsetvalue("cmi.success_status", spassfail+"");         } else if (_sapi == "api") {             /* scorm 1.2,set completion status */             scormsetvalue("cmi.core.lesson_status", spassfail+"");         }     }      function setscore(sscore) {     /* see if scorm 2004 */    if (_sapi == "api_1484_11") {       /* scorm 2004, set scaled score data */ //        scormsetvalue("cmi.score.scaled", sscore+"");       scormsetvalue("cmi.score.raw", sscore+"");      scormcommit();  } else if (_sapi == "api") {        /* scorm 1.2, set min , max scores */      scormsetvalue("cmi.core.score.raw", sscore+"");     } }     function scormsetvalue(name, value) {         var api = getapi();         if (api == null)             return "true";          /* call correct scorm function */         if (_sapi == "api")             var result = api.lmssetvalue(name, value);         else             var result = api.setvalue(name, value);         return result;     }   function scormcommit() {     var api = getapi();     if (api == null)         return "false";      /* call correct scorm function */     if (_sapi == "api")         var result = api.lmscommit("");     else         var result = api.commit("");     return result; } 

please me, mistake/issue there in code.

thanks!

hi, made changes , got results in scorm cloud. didn't overall score course. there thing want add?

enter image description here

in order save data set against api must invoke api.commit('') or api.lmscommit('') in order save student attempt data.

i start there. committing data can accomplished thru navigational button save button, can right before terminate sco. on page turns or auto-save every 2 minutes.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -