gpt4 book ai didi

scorm - 为什么通过的分数没有存储在 SCORM 2004 第 3 版的 SCORM Cloud 中?

转载 作者:行者123 更新时间:2023-12-01 13:44:47 24 4
gpt4 key购买 nike

我在 SCORM Cloud 中启动了 SCORM 2004(第 3 版)包。我通过了 80% 的考试,但没有存储结果。我附上了沙盒注册状态结果。

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 by 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

当我在 SCORM 1.2 版本中尝试使用相同的类(class)时,我可以在 SCORM 云中看到所有结果。我不知道,这是什么问题。

这里,我也附上了脚本,

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 this SCORM 2004 */
if (_sAPI == "API_1484_11") {
/* it is SCORM 2004, set the success status */
scormSetValue("cmi.success_status", sPassFail+"");
} else if (_sAPI == "API") {
/* it is SCORM 1.2,set the completion status */
scormSetValue("cmi.core.lesson_status", sPassFail+"");
}
}

function setScore(sScore) { /* see if this SCORM 2004 */ if (_sAPI == "API_1484_11") { /* it is SCORM 2004, set the scaled score data */ // scormSetValue("cmi.score.scaled", sScore+""); scormSetValue("cmi.score.raw", sScore+""); scormCommit(); } else if (_sAPI == "API") { /* it is SCORM 1.2, set the min and max scores
*/ scormSetValue("cmi.core.score.raw", sScore+""); } }
function scormSetValue(name, value) {
var API = getAPI();
if (API == null)
return "true";

/* call the 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 the correct SCORM function */
if (_sAPI == "API")
var result = API.LMSCommit("");
else
var result = API.Commit("");
return result;
}

请帮帮我,代码中有什么错误/问题。

谢谢!

你好,我进行了所有更改并在 SCORM Cloud 中获得了结果。但是我没有得到类(class)的总分。有什么我想补充的吗?

enter image description here

最佳答案

为了根据 API 保存数据集,您必须调用 API.Commit('')API.LMSCommit('') 以保存学生尝试数据。

我会从那里开始。提交数据可以通过导航按钮(如保存按钮)来完成,但您也可以在终止 SCO 之前立即进行。有些人甚至在翻页时执行此操作,或者喜欢每 2 分钟自动保存一次。

关于scorm - 为什么通过的分数没有存储在 SCORM 2004 第 3 版的 SCORM Cloud 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36833022/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com