/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_iThisFileFieldSeq != -1) m_fldThisFile = this.getOwner().getField(m_iThisFileFieldSeq); if (m_iThisFileFieldSeq2 != -1) m_fldThisFile2 = this.getOwner().getField(m_iThisFileFieldSeq2); if (m_iThisFileFieldSeq3 != -1) m_fldThisFile3 = this.getOwner().getField(m_iThisFileFieldSeq3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**
/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_iThisFileFieldSeq != -1) m_fldThisFile = this.getOwner().getField(m_iThisFileFieldSeq); if (m_iThisFileFieldSeq2 != -1) m_fldThisFile2 = this.getOwner().getField(m_iThisFileFieldSeq2); if (m_iThisFileFieldSeq3 != -1) m_fldThisFile3 = this.getOwner().getField(m_iThisFileFieldSeq3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**
/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_fldThisFile == null) if (thisFileFieldName != null) m_fldThisFile = this.getOwner().getField(thisFileFieldName); if (m_fldThisFile2 == null) if (thisFileFieldName2 != null) m_fldThisFile2 = this.getOwner().getField(thisFileFieldName2); if (m_fldThisFile3 == null) if (thisFileFieldName3 != null) m_fldThisFile3 = this.getOwner().getField(thisFileFieldName3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**
if (!this.getOwner().isRefreshedRecord()) break; // No first add bSetIfModified = false; case DBConstants.ADD_TYPE: boolean bNonNulls = this.setMainKey(bDisplayOption, null, bSetIfModified); // Set up the key (keys are marked as changed if they change!) if ((bNonNulls == false) && ((this.getOwner().getMasterSlave() & RecordOwner.SLAVE) == 0)) // Don't return for a server! if (this.getOwner().getTask() != null) return this.getOwner().getTask().setLastError("Main key cannot be null"); return DBConstants.ERROR_RETURN; // Key can't be null!
if (!this.getOwner().isRefreshedRecord()) break; // No first add bSetIfModified = false; case DBConstants.ADD_TYPE: boolean bNonNulls = this.setMainKey(bDisplayOption, null, bSetIfModified); // Set up the key (keys are marked as changed if they change!) if ((bNonNulls == false) && ((this.getOwner().getMasterSlave() & RecordOwner.SLAVE) == 0)) // Don't return for a server! if (this.getOwner().getTask() != null) return this.getOwner().getTask().setLastError("Main key cannot be null"); return DBConstants.ERROR_RETURN; // Key can't be null!
if (!this.getOwner().isRefreshedRecord()) break; // No first add bSetIfModified = false; case DBConstants.ADD_TYPE: boolean bNonNulls = this.setMainKey(bDisplayOption, null, bSetIfModified); // Set up the key (keys are marked as changed if they change!) if ((bNonNulls == false) && ((this.getOwner().getMasterSlave() & RecordOwner.SLAVE) == 0)) // Don't return for a server! if (this.getOwner().getTask() != null) return this.getOwner().getTask().setLastError("Main key cannot be null"); return DBConstants.ERROR_RETURN; // Key can't be null!