public Record getRecord(String strFileName)
    {
        Record record = super.getRecord(strFileName);
        if (record == null)
        {   // Special check for sessions - see if the record is owned by a sub-"table session"
            for (int iIndex = 0; iIndex < this.getSessionObjectCount(); iIndex++)
            {
                BaseSession sessionObject = this.getSessionObjectAt(iIndex);
                if (sessionObject instanceof TableSession)
                    if (sessionObject.getMainRecord() != null)
                        if (sessionObject.getMainRecord().getTableNames(false).equals(strFileName))
                            return sessionObject.getMainRecord();
            }
        }
        return record;  // Look thru the parent window now
    }
public Record getRecord ( String strFileName ) { Record record = super . getRecord ( strFileName ) ; if ( record == null ) { for ( int iIndex = 0 ; iIndex < this . getSessionObjectCount ( ) ; iIndex ++ ) { BaseSession sessionObject = this . getSessionObjectAt ( iIndex ) ; if ( sessionObject instanceof TableSession ) if ( sessionObject . getMainRecord ( ) != null ) if ( sessionObject . getMainRecord ( ) . getTableNames ( false ) . equals ( strFileName ) ) return sessionObject . getMainRecord ( ) ; } } return record ; }
Lookup this record for this session.
@param strFileName The file name.
@return The main record (or null if none).