title: CRM 2011 - Set value of currency field with javascript
body: <p>I really can't find how i can retrieve the value from a currency field and set it as a value for another currency field for another entity. </p>
  
  <p>My following code is not working:</p>
  
  <pre><code>var entities = retrieveRecords("trainingSet?$filter=trainingId eq guid'" + GetLookUpData("trainingid").id + "'");
      if (entities != null) {
          if (entities.d.results.length &gt; 0) {
              if (entities.d.results[0]["Price"] != null) {
                  alert(entities.d.results[0]["Price"]);
                  Xrm.Page.getAttribute("price").setValue(entities.d.results[0]["Price"].getValue());
                  Xrm.Page.getAttribute("price").setSubmitMode("always");
              }
  
          }
      }
  </code></pre>
  
  <p>Error sais that the control only except numbers or null.</p>
  
  <p>Any help would be really appreciated! Thanks!</p>