public function lstLocationInventoryReceived_Render(InventoryTransaction $objInventoryTransaction) { if (!$objInventoryTransaction->blnReturnReceivedStatus()) { $strControlId = 'lstLocationInventoryReceived' . $objInventoryTransaction->InventoryTransactionId; $lstLocationInventoryReceived = $this->GetControl($strControlId); if (!$lstLocationInventoryReceived) { // Create the drop down list for this row in the datagrid // Use ActionParameter to specify the Id of the AssetTransaction $lstLocationInventoryReceived = new QListBox($this->dtgInventoryTransact, $strControlId); $lstLocationInventoryReceived->Name = 'Location To Receive'; $lstLocationInventoryReceived->ActionParameter = $objInventoryTransaction->InventoryTransactionId; $lstLocationInventoryReceived->AddItem('- Select One -', null); $objLocationArray = Location::LoadAllLocations(false, false, 'short_description', null, null, false, false, false, true); if ($objLocationArray) { foreach ($objLocationArray as $objLocation) { $lstLocationInventoryReceived->AddItem($objLocation->__toString(), $objLocation->LocationId); } } $lstLocationInventoryReceived->AddAction(new QEnterKeyEvent(), new QAjaxAction('btnReceiveInventoryTransaction')); $lstLocationInventoryReceived->AddAction(new QEnterKeyEvent(), new QTerminateAction()); } QApplication::AuthorizeControl($this->objReceipt, $lstLocationInventoryReceived, 2); return $lstLocationInventoryReceived->Render(false); } }