tips & tricks


Calendario
aprile 2024
lmmgvsd
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

LookUp Jscript

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.

  alert(lookupitem[0].typename);

   // the entity type code of the lookup: 1=account, 2= contact.

   // this attribute is deprecated. use typename instead.

   alert(lookupitem[0].type);

}

 

Sbiancare una lookup:

 

changeParentAccount();

function changeParentAccount()

{

var customer = new Array;

customer = document.getElementById("parentaccountid");

 

if (customer.DataValue != null)

{customer.DataValue=null;}

 

}

DISABILITARE UNA LOOKUP

var lookUpProjectMaster = new Array;
    lookUpProjectMaster = document.getElementById("mdb_projectmasterid");

 lookUpProjectMaster.Disabled = true;

Categoria: CRM 4.0
martedì, 29 apr 2008 Ore. 10.32
Archivio Posts
Anno 2020

Anno 2018

Anno 2015

Anno 2013

Anno 2011

Anno 2010

Anno 2009

Anno 2008
Statistiche
  • Views Home Page: 13.376
  • Views Posts: 56.180
  • Views Gallerie: 2.837
  • n° Posts: 117
  • n° Commenti: 1
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003