protected function SetupCustomFieldSelection()
 {
     // Lookup Object PK information from Query String (if applicable)
     // Set mode to Edit or New depending on what's found
     $intCustomFieldSelectionId = QApplication::QueryString('intCustomFieldSelectionId');
     if ($intCustomFieldSelectionId) {
         $this->objCustomFieldSelection = CustomFieldSelection::Load($intCustomFieldSelectionId);
         if (!$this->objCustomFieldSelection) {
             throw new Exception('Could not find a CustomFieldSelection object with PK arguments: ' . $intCustomFieldSelectionId);
         }
         $this->strTitleVerb = QApplication::Translate('Edit');
         $this->blnEditMode = true;
     } else {
         $this->objCustomFieldSelection = new CustomFieldSelection();
         $this->strTitleVerb = QApplication::Translate('Create');
         $this->blnEditMode = false;
     }
 }
 public function btnEdit_Click($strFormId, $strControlId, $strParameter)
 {
     $strParameterArray = explode(',', $strParameter);
     $objCustomFieldSelection = CustomFieldSelection::Load($strParameterArray[0]);
     $objEditPanel = new CustomFieldSelectionEditPanel($this, $this->strCloseEditPanelMethod, $objCustomFieldSelection);
     $strMethodName = $this->strSetEditPanelMethod;
     $this->objForm->{$strMethodName}($objEditPanel);
 }