/** * Constructor. * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param iMainFilesField The sequence of the date changed field in this record. * @param field The date changed field in this record. */ public void init(Record record, DateTimeField field, String mainFilesFieldName) { super.init(record); m_field = field; if (field != null) if (field.getRecord() != record) field.addListener(new FieldRemoveBOnCloseHandler(this)); this.mainFilesFieldName = mainFilesFieldName; } /**
/** * Constructor. * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param iMainFilesField The sequence of the date changed field in this record. * @param field The date changed field in this record. */ public void init(Record record, DateTimeField field) { super.init(record); m_field = field; FieldDataScratchHandler listener = new FieldDataScratchHandler(null); listener.setAlwaysEnabled(true); // Since this holds the current key m_field.addListener(listener); // I will need the original value for the sql update this.setMasterSlaveFlag(FileListener.RUN_IN_SLAVE | FileListener.RUN_IN_MASTER); // Set date key in slave code, check for error in master code } /**
/** * Constructor. * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param iMainFilesField The sequence of the date changed field in this record. * @param field The date changed field in this record. */ public void init(Record record, DateTimeField field) { super.init(record); m_field = field; FieldDataScratchHandler listener = new FieldDataScratchHandler(null); listener.setAlwaysEnabled(true); // Since this holds the current key m_field.addListener(listener); // I will need the original value for the sql update this.setMasterSlaveFlag(FileListener.RUN_IN_SLAVE | FileListener.RUN_IN_MASTER); // Set date key in slave code, check for error in master code } /**
/** * Constructor. * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param iMainFilesField The sequence of the date changed field in this record. * @param field The date changed field in this record. */ public void init(Record record, DateTimeField field) { super.init(record); m_field = field; FieldDataScratchHandler listener = new FieldDataScratchHandler(null); listener.setAlwaysEnabled(true); // Since this holds the current key m_field.addListener(listener); // I will need the original value for the sql update this.setMasterSlaveFlag(FileListener.RUN_IN_SLAVE | FileListener.RUN_IN_MASTER); // Set date key in slave code, check for error in master code } /**