Zoeken in deze blog

woensdag 25 augustus 2010

Vaste datum in datumveld

crmForm.all.requestdeliveryby.DataValue = new Date(2009,0,1);
Let op: de maanden lopen van 0 t/m 11 in JavaScript!

Lookup automatisch openen

if(crmForm.FormType == 1)
{
if(crmForm.all.productid.DataValue == null)

{
crmForm.all.productid.click();
}
}

Focus zetten op een veld

crmForm.all.new_datetocontact.SetFocus ();

Mappings tussen CRM en Outlook

Op onderstaande blog vind je een overzicht van de mappings tussen CRM en Outlook.

http://blogs.msdn.com/crm/archive/2006/07/03/655714.aspx

Veld hiden/tonen

//Veld hiden
crmForm.all.new_datetocontact_c.style.display = 'none';
crmForm.all.new_datetocontact_d.style.display = 'none';


//Veld tonen
crmForm.all.new_datetocontact_c.style.display = 'block';
crmForm.all.new_datetocontact_d.style.display = 'block';

Hiden van een menu-optie

//Hiden MenuItem Order annuleren
if(document.getElementById("_MIcloseOrder2") != null)
{
document.getElementById("_MIcloseOrder2").style.display="none";
}

Button uit de grid verwijderen

//Hiden button "Adres opzoeken..."
if(document.getElementById('_MBLookupAddress') != null)
{
document.getElementById('_MBLookupAddress').style.display="none";
}