GetValueStatus

Description

Identifies whether the field currently has a value.

Syntax

VBScript

fieldInfo.GetValueStatus 

Perl

$fieldInfo->GetValueStatus(); 
Identifier
Description
fieldInfo
A FieldInfo object, which contains information about one field of a user data record.
Return value
A Long that identifies the status of this field. The value corresponds to one of the ValueStatus enumeration constants.

Example

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