\n";
return $sToRender;
}
// gets the updatebutton when a DocField is selected
function getUpdateButton($oDocField) {
global $default;
if (!isset($oDocField)) {
return "Please select a Document Field: ";
} else {
return "
\n";
}
}
// gets the cancel button when a DocField is selected
function getCancelButton($oDocField) {
global $default;
if (!isset($oDocField)) {
return "
\n";
}
}
// show the list box when no DocField selected
// then shows a text box with the DocField's name
function getDocFieldDisplay($oDocField) {
global $default;
if (!isset($oDocField)) {
$sWhereClause = " ST.has_lookup = 1" ;
$oPatternListBox = & new PatternListBox($default->owl_fields_table, "name", "id", "fDocFieldID");
//$oPatternListBox->setIncludeDefaultValue(true);
$oPatternListBox->setWhereClause($sWhereClause);
$oPatternListBox->setPostBackOnChange(true);
return $oPatternListBox->render();
} else {
return "iId . "\">\n" .
$oDocField->getName();
}
}
// show the list box when no DocField selected
// then shows a text box with the DocField's name
function getMetaDataDisplay($oMetaData,$iDocFieldID) {
global $default;
if (!isset($oMetaData)) {
$sWhereClause = " ST.document_field_id = " . $iDocFieldID;
$oPatternListBox = & new PatternListBox($default->owl_metadata_table, "name", "id", "fMetaDataID");
//$oPatternListBox->setIncludeDefaultValue(true);
$oPatternListBox->setWhereClause($sWhereClause);
$oPatternListBox->setPostBackOnChange(true);
return $oPatternListBox->render();
} else {
return "iId . "\">\n" .
"getName() . "\">\n" .
"getName() . "\">\n" ;
}
}
?>