/** * Delete Record Command. * @return True if successful. */ public boolean onDelete() { boolean flag = super.onDelete(); this.selectField(null, DBConstants.SELECT_FIRST_FIELD); return flag; } /**
/** * Delete Record Command. * @return True if successful. */ public boolean onDelete() { boolean flag = super.onDelete(); this.selectField(null, DBConstants.SELECT_FIRST_FIELD); return flag; } /**
/** * Process the "Delete" toolbar command. * @return true If command was handled */ public boolean onDelete() { if (this.getEditing() == false) { // Can't delete on a disabled grid. String strError = "Can't Delete from disabled grid"; if (this.getTask() != null) if (this.getTask().getApplication() != null) strError = ((BaseApplication)this.getTask().getApplication()).getResources(ResourceConstants.ERROR_RESOURCE, true).getString(strError); this.displayError(strError); return false; } return super.onDelete(); } /**
/** * Process the "Delete" toolbar command. * @return true If command was handled */ public boolean onDelete() { if (this.getEditing() == false) { // Can't delete on a disabled grid. String strError = "Can't Delete from disabled grid"; if (this.getTask() != null) if (this.getTask().getApplication() != null) strError = ((BaseApplication)this.getTask().getApplication()).getResources(ResourceConstants.ERROR_RESOURCE, true).getString(strError); this.displayError(strError); return false; } return super.onDelete(); } /**