$iMaxCount = utils::ReadParam('max', 30); $iCount = 0; $oFilter = new DBObjectSearch($sClass); $oFilter->AddCondition($sAttCode, $sName, 'Begins with'); //$oFilter->AddCondition('org_id', $sOrg, '='); $oSet = new CMDBObjectSet($oFilter, array($sAttCode => true)); while ($iCount < $iMaxCount && ($oObj = $oSet->fetch())) { $oPage->add($oObj->GetAsHTML($sAttCode) . "|" . $oObj->GetKey() . "\n"); $iCount++; } break; case 'combo_options': $oPage->SetContentType('text/html'); $oFilter = CMDBSearchFilter::FromOQL($sFilter); $oSet = new CMDBObjectSet($oFilter); while ($oObj = $oSet->fetch()) { $oPage->add('<option title="Here is more information..." value="' . $oObj->GetKey() . '">' . $oObj->GetName() . '</option>'); } break; case 'display_document': $id = utils::ReadParam('id', ''); $sField = utils::ReadParam('field', ''); if (!empty($sClass) && !empty($id) && !empty($sField)) { DownloadDocument($oPage, $sClass, $id, $sField, 'inline'); } break; case 'download_document': $id = utils::ReadParam('id', ''); $sField = utils::ReadParam('field', ''); $iCacheSec = (int) utils::ReadParam('cache', 0); if (!empty($sClass) && !empty($id) && !empty($sField)) {