Documentation

AddViewField

void
CAdminListRow::AddViewField(
  string $ID, 
  string $HTML
)

The AddViewField method adds a field to a report table cell. The field is active in the view mode only.

Parameters

Parameter Description
ID The cell identifier.
HTML The HTML code to be rendered in a table cell.

Example:

 
// the NAME parameter is edited as text and displayed as a link
$row->AddInputField("NAME", array("size"=>20));
$row->AddViewField("NAME", '<a href="rubric_edit.php?id='.$f_id.
                           '&lang='.LANG.'">'.$f_NAME.'</a>');
© «Bitrix24», 2001-2024
Up