无法从LMS - SCORM 2004检索以前保存的数据 [英] Cannot retrieve previously saved data from LMS - SCORM 2004

查看:133
本文介绍了无法从LMS - SCORM 2004检索以前保存的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Moodle LMS检索以前保存的数据,但似乎有些东西无效。这就是我正在做的事情:

I'm trying to retrieve previously saved data from Moodle LMS but seems like something is not working. This is what I'm doing:

我将SCORM(v2004)软件包加载到Moodle并执行一些操作(如保存导航数据或设置完成状态):

I load the SCORM (v2004) package into Moodle and perform some actions (like save navigation data or set completion status):

// Completion status always "unknown" at first time so I try to change it to incomplete:
API_1484_11.SetValue('cmi.completion_status', 'incomplete'); // "true"
...
API_1484_11.SetValue('cmi.location', '{"page":2}'); // "true"

然后提交这些更改:

API_1484_11.Commit(''); // true

请求/回复:

何时我离开并重新输入活动并尝试再次检索此数据,API返回空字符串或默认初始值。

When I leave and reenter the activity and try to retrieve this data again the API returns an empty string or the default initial value.

// I've already initialized the API at this point.
API_1484_11.GetValue('cmi.completion_status'); // "unknown"
...
API_1484_11.GetValue('cmi.location'); // ""

我错过了什么吗?

我是否需要调用任何其他方法从服务器或类似的方式检索数据?

Do I need to call any other method to retrieve data from the server or something like that?

或者我可能误解了这些方法的用途?

Or maybe I misunderstood the purpose of those methods?

我将不胜感激这个主题的任何帮助。在此先感谢。

I would appreciate any help on this topic. Thanks in advance.

推荐答案

提交非常重要。确保将cmi.exit设置为suspend。 moodle中的SCORM 2004可能不是全功能的,除非有人完成它。最后我听说开发工作的Dev放弃了。所以你可能正在处理SCORM 1.2实现。我在移动设备上,所以我希望能给你足够的提示进行故障排除。祝好运。

Commit is important. Make sure you are setting cmi.exit to "suspend". SCORM 2004 in moodle isn't probably full featured unless someone finished it. Last I heard the Dev working on it gave up. So you may be dealing with a SCORM 1.2 implementation. I'm on a mobile device so I hope that gives you enough hints to troubleshoot. Good luck.

这篇关于无法从LMS - SCORM 2004检索以前保存的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆