Name

field_label —

ATTRIBUTES

Attribute Pos. Req. Default Description
interpolate     0 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

field_label is available in Interchange versions:

4.6.0

SOURCE

Interchange 4.6.0:

Source: dist/lib/UI/usertag/field_label
Lines: 37


UserTag field_label Order table column meta
UserTag field_label PosNumber 3
UserTag field_label attrAlias db table
UserTag field_label attrAlias field column
UserTag field_label addAttr
UserTag field_label Routine <<EOR
sub {
my ($table, $column, $meta, $opt) = @_;
$meta = $::Variable->{UI_META_TABLE} || 'mv_metadata' if ! $meta;
my $keyloc = $table . "::$column";
if(
$opt and $opt->{key}
and ::tag_data($meta, 'type', $keyloc . "::$opt->{key}")
  )
{ 
  $keyloc .= "::$opt->{key}";
}
else {
  return "<B>$column</B>" if ! ::tag_data($meta, 'type', $keyloc);
}
  return '' if ::tag_data($meta, 'type', $keyloc) eq 'hidden';
my $label;
$label = Vend::Interpolate::tag_data($meta, 'label', $keyloc) || $column;
my $out;
my $help = Vend::Interpolate::tag_data($meta, 'help', $keyloc);
my $url = Vend::Interpolate::tag_data($meta, 'help_url', $keyloc);
$out = "<B>$label</B>";
$out .= qq{<BR><FONT SIZE="-1"><I>$help</I></FONT>} if $help;
if ($url) {
  $out .= qq{<BR><FONT SIZE="-1"><I><A HREF="$url">};
  $out .= ::errmsg('more help');
  $out .= q{</I></FONT>};
}
return $out;
}
EOR


AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!