fileSystemRoot/lib/documentmanagement/DocumentField.inc"); require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); $oPatternCustom = & new PatternCustom(); if(isset($fDocFieldID)) { $oDocField = DocumentField::get($fDocFieldID); if ($oDocField->getHasLookup()){ // do a check to see both drop downs selected $oPatternCustom->setHtml(getPage($oDocField)); } else { $_SESSION["KTErrorMessage"][] = _("Document Field is not Lookup enabled."); exit(controllerRedirect("listDocFields")); } } else { $_SESSION["KTErrorMessage"][] = _("No document field lookup selected"); exit(controllerRedirect("listDocFields")); } // render page $main->setCentralPayload($oPatternCustom); $main->render(); } ?>