/** * Called when a new blank record is required for the table/query. * @param bDisplayOption If true, display any changes. */ public void doNewRecord(boolean bDisplayOption) // init this field override for other value { super.doNewRecord(bDisplayOption); if (m_bUpdateOnUpdate) this.writeAndRefresh(); // If there are any changes waiting, write them! } /**
/** * free this listener and update/add the target record. */ public void free() { if (m_bUpdateOnClose) this.writeAndRefresh(); super.free(); } /**
/** * Called when a change in the record status is about to happen/has happened. * @param field If this file change is due to a field, this is the field. * @param changeType The type of change that occurred. * @param bDisplayOption If true, display any changes. * @return an error code. * Synchronize records after an update or add. */ public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption) { // Read a valid record int iErrorCode = super.doRecordChange(field, iChangeType, bDisplayOption); // Initialize the record if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; if (m_bUpdateOnUpdate) if ((iChangeType == DBConstants.AFTER_UPDATE_TYPE) || (iChangeType == DBConstants.AFTER_ADD_TYPE)) return this.writeAndRefresh(); if (iChangeType == DBConstants.BEFORE_FREE_TYPE) if (m_bUpdateOnClose) this.writeAndRefresh(); return iErrorCode; } /**
/** * free this listener and update/add the target record. */ public void free() { if (m_bUpdateOnClose) this.writeAndRefresh(); super.free(); } /**
/** * Called when a new blank record is required for the table/query. * @param bDisplayOption If true, display any changes. */ public void doNewRecord(boolean bDisplayOption) // init this field override for other value { super.doNewRecord(bDisplayOption); if (m_bUpdateOnUpdate) this.writeAndRefresh(); // If there are any changes waiting, write them! } /**
/** * Called when a new blank record is required for the table/query. * @param bDisplayOption If true, display any changes. */ public void doNewRecord(boolean bDisplayOption) // init this field override for other value { super.doNewRecord(bDisplayOption); if (m_bUpdateOnUpdate) this.writeAndRefresh(); // If there are any changes waiting, write them! } /**
/** * Called when a change in the record status is about to happen/has happened. * @param field If this file change is due to a field, this is the field. * @param changeType The type of change that occurred. * @param bDisplayOption If true, display any changes. * @return an error code. * Synchronize records after an update or add. */ public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption) { // Read a valid record int iErrorCode = super.doRecordChange(field, iChangeType, bDisplayOption); // Initialize the record if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; if (m_bUpdateOnUpdate) if ((iChangeType == DBConstants.AFTER_UPDATE_TYPE) || (iChangeType == DBConstants.AFTER_ADD_TYPE)) return this.writeAndRefresh(); if (iChangeType == DBConstants.BEFORE_FREE_TYPE) if (m_bUpdateOnClose) this.writeAndRefresh(); return iErrorCode; } /**
/** * Called when a change in the record status is about to happen/has happened. * @param field If this file change is due to a field, this is the field. * @param changeType The type of change that occurred. * @param bDisplayOption If true, display any changes. * @return an error code. * Synchronize records after an update or add. */ public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption) { // Read a valid record int iErrorCode = super.doRecordChange(field, iChangeType, bDisplayOption); // Initialize the record if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; if (m_bUpdateOnUpdate) if ((iChangeType == DBConstants.AFTER_UPDATE_TYPE) || (iChangeType == DBConstants.AFTER_ADD_TYPE)) return this.writeAndRefresh(); if (iChangeType == DBConstants.BEFORE_FREE_TYPE) if (m_bUpdateOnClose) this.writeAndRefresh(); return iErrorCode; } /**
/** * free this listener and update/add the target record. */ public void free() { if (m_bUpdateOnClose) this.writeAndRefresh(); super.free(); } /**