/** * SetRecordDataStatus Method. */ public int setRecordDataStatus(Record record, String iFieldSeq, int iStatus, ProductMessageData productRequest) { if (iStatus == BaseDataStatus.OKAY) { FieldDataScratchHandler fieldDataScratchHandler = (FieldDataScratchHandler)record.getField(BookingDetail.DETAIL_DATE).getListener(FieldDataScratchHandler.class, false); if (fieldDataScratchHandler != null) { // Always Date dateOriginal = (Date)productRequest.get(ProductMessageData.OLD_DETAIL_DATE); fieldDataScratchHandler.setOriginalData(dateOriginal); // Make sure you know the original date } } return super.setRecordDataStatus(record, iFieldSeq, iStatus, productRequest); }
listener.setOriginalData(this.propertiesToInternalString(propOrig)); Utility.getLogger().info("propNew: " + propNew); return this.setProperties(propNew);
listener.setOriginalData(this.propertiesToInternalString(propOrig)); Utility.getLogger().info("propNew: " + propNew); return this.setProperties(propNew);
listener.setOriginalData(this.propertiesToInternalString(propOrig)); Utility.getLogger().info("propNew: " + propNew); return this.setProperties(propNew);
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (iMoveMode != DBConstants.SCREEN_MOVE) // This is necessary if an override change the repondsTo. // Also, if just refreshing the record, don't change this if set if ((m_bChangeDataOnRefresh) || ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE) != DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE)) if ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_UPDATE_LAST_READ) != DBConstants.OPEN_DONT_UPDATE_LAST_READ) // This is a special case where I want a subsequent write to get an error if changed this.setOriginalData(this.getOwner().getData()); return super.fieldChanged(bDisplayOption, iMoveMode); } /**
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (iMoveMode != DBConstants.SCREEN_MOVE) // This is necessary if an override change the repondsTo. // Also, if just refreshing the record, don't change this if set if ((m_bChangeDataOnRefresh) || ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE) != DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE)) if ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_UPDATE_LAST_READ) != DBConstants.OPEN_DONT_UPDATE_LAST_READ) // This is a special case where I want a subsequent write to get an error if changed this.setOriginalData(this.getOwner().getData()); return super.fieldChanged(bDisplayOption, iMoveMode); } /**
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (iMoveMode != DBConstants.SCREEN_MOVE) // This is necessary if an override change the repondsTo. // Also, if just refreshing the record, don't change this if set if ((m_bChangeDataOnRefresh) || ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE) != DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE)) if ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_UPDATE_LAST_READ) != DBConstants.OPEN_DONT_UPDATE_LAST_READ) // This is a special case where I want a subsequent write to get an error if changed this.setOriginalData(this.getOwner().getData()); return super.fieldChanged(bDisplayOption, iMoveMode); } /**