开发者

<adlcp:map> in scorm 2004 4th edition

开发者 https://www.devze.com 2023-02-22 22:30 出处:网络
We are building API for scorm 2004 4th edition , we start using thethe official Test Suite but in the DMI test we get the following error 开发者_Go百科:

We are building API for scorm 2004 4th edition , we start using the the official Test Suite but in the DMI test we get the following error 开发者_Go百科:

"ERROR: Attempted to access an objective with the id "tarID1" but "tarID1" was not found."

when i looked in the manifest xml file i found that those elements are defined as "adlcp:map" , where shall i save this tag ? what this tag represent ?


Anything you would want to know about any element in a manifest (assuming it doesn't utilize third-party extensions) can be found in the official SCORM documentation.

Download the documentation suite. In the CAM book, look for section 3.4.1.19, titled "<map> Element".

Source: SCORM 2004 4th Edition Content Aggregation Model (CAM) Book, available from adlnet.gov (download the documentation suite).


This is used for shared buckets, or data which can be accessed and set across courses/SCO's. For example, you might have a pretest and need that score/user answers in another SCO for providing feedback.

For those looking for more info on implementation:

Add this to your item (organisation > item) in the manifest:

<adlcp:data>
  <adlcp:map targetID="mybucketname" readSharedData="true" writeSharedData="true"/>
</adlcp:data>

JS part (Use your API calls in place of LMSGetValue and LMSSetValue)

var dataBucketsCount = LMSGetValue("adl.data._count");
dataBucketsCount = parseInt(dataBucketsCount);
for (var i=0; i < dataBucketsCount; i++){
        if (LMSGetValue("adl.data." + i + ".id") == "mybucketname"){
                //do your processing with the data
        }
}

You can google for RTE Handbook SCORM 2004 4th edition, to get details on the manifest elements. However this is a lovely way to save data from one course and get it in other, provided your LMS supports it. Also, the character limit is same as suspend data.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号