public void init ( Record record , Record recordMain , String iMainFilesField , BaseField fieldMain , String fsToCount , boolean bRecountOnSelect , boolean bVerifyOnEOF , boolean bResetOnBreak ) // Init this field override for other value { super . init ( record ) ; this . fsToCount = fsToCount ; if ( fieldMain != null ) m_fldMain = fieldMain ; else if ( recordMain != null ) m_fldMain = recordMain . getField ( iMainFilesField ) ; if ( m_fldMain != null ) if ( ( m_fldMain . getRecord ( ) == null ) || ( m_fldMain . getRecord ( ) . getEditMode ( ) == DBConstants . EDIT_NONE ) || ( m_fldMain . getRecord ( ) . getEditMode ( ) == DBConstants . EDIT_ADD ) ) this . resetCount ( ) ; // Set in main file's field if the record is not current. m_dOldValue = 0 ; m_bRecountOnSelect = bRecountOnSelect ; m_bVerifyOnEOF = bVerifyOnEOF ; m_bResetOnBreak = bResetOnBreak ; m_dTotalToVerify = 0 ; m_bEOFHit = true ; // In case this is a maint screen (grid screens start by requery/set this to false) }
Constructor for counting the value of a field in this record .