recuperare valore lookup
var lookupitem = new array;
// this will get the lookup for the attribute primarycontactid on the account form.
lookupitem = crmform.all.primarycontactid.datavalue;
// if there is data in the field, show it in a series of alerts.
if (lookupitem[0] != null)
{ // the text value of the lookup.
alert(lookupitem[0].name);
// the guid of the lookup.
alert(lookupitem[0].id);
// the entity type name.
&n
Leggi tutto il post...