/** * Set the field or file that owns this listener. * Besides inherited, this method closes the owner record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if ((m_strFieldNameToCheck != null) && (m_strFieldNameToCheck.length() > 0)) if ((m_fldToCheck == null) || (m_fldToCheck.getFieldName() == null) || (m_fldToCheck.getFieldName().length() == 0)) m_fldToCheck = this.getOwner().getField(m_strFieldNameToCheck); // If you have the fieldname, but not the field, get the field. if (m_fldToCompare != null) if (m_fldToCompare.getRecord() != this.getOwner()) m_fldToCompare.addListener(new FieldRemoveBOnCloseHandler(this)); if (m_fldToCheck != null) if (m_fldToCheck.getRecord() != this.getOwner()) // If field is not in this file, remember to remove it m_fldToCheck.addListener(new FieldRemoveBOnCloseHandler(this)); //x this.getOwner().close(); // Must requery after setting dependent fields! } /**
/** * Set the field or file that owns this listener. * Besides inherited, this method closes the owner record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if ((m_strFieldNameToCheck != null) && (m_strFieldNameToCheck.length() > 0)) if ((m_fldToCheck == null) || (m_fldToCheck.getFieldName() == null) || (m_fldToCheck.getFieldName().length() == 0)) m_fldToCheck = this.getOwner().getField(m_strFieldNameToCheck); // If you have the fieldname, but not the field, get the field. if (m_fldToCompare != null) if (m_fldToCompare.getRecord() != this.getOwner()) m_fldToCompare.addListener(new FieldRemoveBOnCloseHandler(this)); if (m_fldToCheck != null) if (m_fldToCheck.getRecord() != this.getOwner()) // If field is not in this file, remember to remove it m_fldToCheck.addListener(new FieldRemoveBOnCloseHandler(this)); //x this.getOwner().close(); // Must requery after setting dependent fields! } /**
/** * Set the field or file that owns this listener. * Besides inherited, this method closes the owner record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if ((m_strFieldNameToCheck != null) && (m_strFieldNameToCheck.length() > 0)) if ((m_fldToCheck == null) || (m_fldToCheck.getFieldName() == null) || (m_fldToCheck.getFieldName().length() == 0)) m_fldToCheck = this.getOwner().getField(m_strFieldNameToCheck); // If you have the fieldname, but not the field, get the field. if (m_fldToCompare != null) if (m_fldToCompare.getRecord() != this.getOwner()) m_fldToCompare.addListener(new FieldRemoveBOnCloseHandler(this)); if (m_fldToCheck != null) if (m_fldToCheck.getRecord() != this.getOwner()) // If field is not in this file, remember to remove it m_fldToCheck.addListener(new FieldRemoveBOnCloseHandler(this)); //x this.getOwner().close(); // Must requery after setting dependent fields! } /**
BaseField recordField = m_fldToCheck; if (m_fldToCheck == null) recordField = this.getOwner().getField(m_iFieldSeqToCheck); //.getText(recordString); if (m_fldToCompare != null) if (m_bDontFilterIfNullCompare)
BaseField recordField = m_fldToCheck; if (m_fldToCheck == null) recordField = this.getOwner().getField(m_iFieldSeqToCheck); //.getText(recordString); if (m_fldToCompare != null) if (m_bDontFilterIfNullCompare)
if (m_fldToCheck == null) if (fieldNameToCheck != null) recordField = this.getOwner().getField(fieldNameToCheck); //.getText(recordString); if (m_fldToCompare != null) if (m_bDontFilterIfNullCompare)