GetValueStatus

Descrizione

Identifica se il campo dispone, correntemente, di un valore.

Sintassi

VBScript

fieldInfo.GetValueStatus 

Perl

$fieldInfo->GetValueStatus(); 
Identificativo
Descrizione
fieldInfo
Un oggetto FieldInfo che contiene informazioni relative a un campo di un record di dati utente.
Valore di ritorno
Un valore Long che identifica lo stato di questo campo. Il valore corrisponde a una delle costanti ValueStatus elencate.

Esempio

Perl

my($FieldNamesRef) = $entity->GetFieldNames();

   # Loop through the fields, showing name, type, old/new value...
   foreach $FN (@$FieldNamesRef) {
      # Get the field's original value...
      $FieldInfo = $entity->GetFieldOriginalValue($FN);
      $FieldValueStatus = $FieldInfo->GetValueStatus();
      if ($FieldValueStatus == $CQPerlExt::CQ_HAS_NO_VALUE) {
         $OldFV = "<no value>";
      } elsif ($FieldValueStatus == $CQPerlExt::CQ_VALUE_NOT_AVAILABLE) {
         $OldFV = "<value not available>";
      } elsif ($FieldValueStatus == $CQPerlExt::CQ_HAS_VALUE) {
         $OldFV = $FieldInfo->GetValue();
      } else {
         $OldFV = "<Invalid value status: " . $FieldValueStatus . ">";
    } 

Feedback