title: SCORM 2004 Get and Set Values
body: <p>I am trying to get and set the completion status of various objectives. I am trying to do these;</p>
  
  <pre><code>str = scorm.GetValue("cmi.objectives." + i.toString() + ".completion_status");
  </code></pre>
  
  <hr>
  
  <pre><code>GetValue('cmi.objectives.0.completion_status') returned '' in 0 seconds
  [13:50:23.469] Checking for GetValue Error
  [13:50:23.469] SCORM ERROR FOUND - Set Error State: 301 - 
  The Objectives collection does not have an element at index 0, the current element count is 0.
  </code></pre>
  
  <hr>
  
  <p>This is the log of SCORM Cloud. I think it might be related to giving IDs to objectives.</p>
  
  <p>My objectives are not set ID in manifest and I don't know I have to do it. So the question is do I need to give an ID to each objective (manifest or javascript)?</p>
  
  <p>If you think/guess/know the problem is completely different, any help will be appreciated.</p>