tips & tricks


Calendario
aprile 2024
lmmgvsd
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Come Impostare Obbligatorietà dei campi.

Questa funzione ci permette di settare dinamicamente nel crm se un campo lo vogliamo "business required" or "optional".

Create the function as below for crm3.0;
--------------------------------------------------

function crmForm.SetRequiredLevel(field, level)
{
field.req = level;
var fieldLabel = document.getElementById(field.id + "_c");

if (fieldLabel != null)
{
switch (level)
{
case 0: //normal
fieldLabel.className = "n";
break;
case 1: //recommended
fieldLabel.className = "rec";
break;
case 2: //required
fieldLabel.className = "req";
break;
}
}
}

--------------------------------------------------

Then call it using your field reference and the requirement level as needed.

--------------------------------------------------

crmForm.SetRequiredLevel(crmForm.all.fieldname, 2);

Categoria: CRM 3.0
venerdì, 04 lug 2008 Ore. 12.47
Archivio Posts
Anno 2020

Anno 2018

Anno 2015

Anno 2013

Anno 2011

Anno 2010

Anno 2009

Anno 2008
Statistiche
  • Views Home Page: 13.373
  • Views Posts: 56.171
  • 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