public int fieldChanged ( boolean bDisplayOption , int iMoveMode ) { boolean flag = this . getOwner ( ) . getState ( ) ; if ( flag ) m_mergeRecord . getTable ( ) . addTable ( m_subRecord . getTable ( ) ) ; else m_mergeRecord . getTable ( ) . removeTable ( m_subRecord . getTable ( ) ) ; m_mergeRecord . close ( ) ; // Must requery on Add, should close on delete if ( m_gridScreen == null ) return DBConstants . NORMAL_RETURN ; else return super . fieldChanged ( bDisplayOption , iMoveMode ) ; }
The Field has Changed . If this field is true add the table back to the grid query and requery the grid table .