Microsoft Dynamics CRM 4.0 对LOOKUP类型赋值

var lookupData = new Array();
// Create an object to add to the array.
   var lookupItem= new Object();
// Set the id, typename, and name properties to the object.
     lookupItem.typename = 'transactioncurrency';
     lookupItem.name ="人民币"
// Add the object to the array.
   lookupData[0] = lookupItem;
  

// Set the value of the lookup field to the value of the array.
   crmForm.all.transactioncurrencyid.DataValue = lookupData;

posted on 2010-05-14 08:57  HelloHongfu  阅读(851)  评论(0编辑  收藏  举报

导航