Descripción
Identifica si el campo tiene, actualmente, un valor.
Sintaxis
VBScript
fieldInfo.GetValueStatus
Perl
$fieldInfo->GetValueStatus();
- Identificador
- Descripción
- fieldInfo
- Un objeto FieldInfo que contiene información sobre un campo de un registro de datos de usuario.
- Valor de retorno
- Valor Long que identifica el estado de este campo. El valor corresponde a una de las constantes de enumeración de ValueStatus.
Ejemplo
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 . ">";
}