(How to set up a lookup using Javascript)
CRM 4
var deger= new Array();
deger[0] = new Object();
deger[0].id = idValue;
deger[0].name = textValue;
deger[0].typename = typeValue;
crmForm.all.fieldName.DataValue = deger;
deger[0] = new Object();
deger[0].id = idValue;
deger[0].name = textValue;
deger[0].typename = typeValue;
crmForm.all.fieldName.DataValue = deger;
CRM 2011
var deger = new Array();
deger[0] = new Object();
deger[0].id = idValue;
deger[0].name = textValue;
deger[0].entityType = typeValue;
Xrm.Page.getAttribute(“fieldName”).setValue(deger);
Tek satırda da değer atama.
CRM 4
crmForm.all.field.DataValue = [{id: idDegeri, name: text,
typename: tip}];
CRM 2011
Xrm.Page.getAttribute(“fieldName”).setValue( [{id: idDegeri,
name: text, entityType: tip}]);
Hiç yorum yok:
Yorum Gönder