tips & tricks


Calendario
dicembre 2024
lmmgvsd
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

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: 15.071
  • Views Posts: 58.209
  • 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