cmi.interactions.n.student_response
September 23, 2006 12:00 AM
Published SCORM 1.2. Using SABA Publisher 5.1 in a non-SABA LMS. Went into SCOFunctions.js and removed the line: if(txt) LMSSetValue( root + '.text', txt )because the LMS is not SABA. Action: Modify Variable Target: AICC_Lesson_Status Value: completed Mofification Type: Set Variable Contents and used a 1 second delay.When the DONE button is clicked on the Final test question it returns an error - LMSSetValue Error: Incorrect Data Type. Clicking the ok on the error message multiple times causes it to go away and the scorecard is presented correctly. Debugging the LMS gives info like this:374-Thursday, September 21, 2006 3:05:01 PM: SetValue called - strElement='cmi.interactions.0.correct_responses.0.pattern' strValue='D'375-Thursday, September 21, 2006 3:05:01 PM: In ResetErrorInfo376-Thursday, September 21, 2006 3:05:01 PM: Formatting Element for support checking377-Thursday, September 21, 2006 3:05:01 PM: Found Element in array378-Thursday, September 21, 2006 3:05:01 PM: Setting Local Variable379-Thursday, September 21, 2006 3:05:01 PM: Matched interactions.n.correct_responses.n.pattern380-Thursday, September 21, 2006 3:05:01 PM: intIndex=0381-Thursday, September 21, 2006 3:05:01 PM: In IsValidCMIFeedback, strInteractionType=choice, strValue=D382-Thursday, September 21, 2006 3:05:01 PM: Type is choice383-Thursday, September 21, 2006 3:05:01 PM: ERROR: value is not a valid CMI Feedback384-Thursday, September 21, 2006 3:05:01 PM: In SetErrorInfo intNumber=405 strDiagnostic=cmi.interactions.n.student_response must be a valid CMIFeedback - value must be consistent with interaction type. Your value is: DLMS documentation states:LMSSetValue(): Sets the data model element to the supplied value. Value must match the data type for this element. 1. Example API call: If the cmi.interactions.n.type is matching then LMSSetValue(“cmi.interactions.0.studen t_response","1.c,2.b,3 .a,4.d")2. Example Set Values: "t" "1.c,2.b,3.c,4.d"3. Error Code: 1. 205 – Incorrect Data Type: If an LMSSetValue() is invoked and the value to be used to set the element to is not of the correct Data Type.I'm returning a value like an uppercase "D", the LMS seems to be looking for a value such as "1.d"How do I make this happen - there must be more to it than just using lowercase alpha characters to precede the answer selections.Any help is appreciated.Edited By: GruntBro on 2006-9-22 18:14:26
Discussions have been disabled for this post