Can't set default currency

Vorgeschlagene Antwort Can't set default currency

  • Wednesday, May 18, 2011 8:47 AM
     
     

    I've got a custom entity which contains various money fields.

    When I try and enter a value in any of them I get this error

    "A currency is required if a value exists in a money field. Select a currency and try again"

    I've tried the following but the problem remains.

    1. Added the transactioncurrencyid field to my form, then is the load event I added:

    // SET DEFAULT CURRENCY
    var lookupData = new Array();
    var lookupItem= new Object();
    lookupItem.id = 'c6a8495f-cd9f-48f5-8b8a-0fb76621dc4d';
    lookupItem.typename = 'transactioncurrency';
    lookupItem.name = 'Pound Sterling';
    lookupData[0] = lookupItem;
    crmForm.all.transactioncurrencyid.DataValue = lookupData;

    2. Made sure all my users have a default currency selected.

    Any idea what the problem might be?

    Thanks

     

     

All Replies