protected function getCodeEdit($sAction, $sObject)
 {
     $aForm = $this->getFormEdit($sAction, $sObject);
     $oForm = new BxTemplStudioFormView($aForm);
     if ($oForm->isSubmitted() && isset($oForm->aInputs['required'])) {
         $this->updateCheckerFields($oForm);
     }
     $oForm->initChecker();
     if ($oForm->isSubmittedAndValid()) {
         $sInputObject = $oForm->getCleanValue('object');
         $sInputName = $oForm->getCleanValue('name');
         $this->onSubmitField($oForm);
         if ($oForm->update((int) $this->aField['id']) === false) {
             return false;
         }
         return true;
     } else {
         return BxTemplStudioFunctions::getInstance()->popupBox('adm-form-field-edit-' . $this->aField['type'] . '-popup', _t('_adm_form_txt_field_edit_popup', _t($this->aField['caption'])), BxDolStudioTemplate::getInstance()->parseHtmlByName('form_add_field.html', array('form_id' => $aForm['form_attrs']['id'], 'form' => $oForm->getCode(true), 'object' => $sObject, 'action' => $sAction)));
     }
 }