public String getReferenceRecordName ( ) { if ( m_recordReference != null ) return this . getReferenceRecord ( ) . getTableNames ( false ) ; else { // This code just takes a guess if ( this . getClass ( ) . getName ( ) . indexOf ( "Field" ) != - 1 ) return this . getClass ( ) . getName ( ) . substring ( Math . max ( 0 , this . getClass ( ) . getName ( ) . lastIndexOf ( ' ' ) + 1 ) , this . getClass ( ) . getName ( ) . indexOf ( "Field" ) ) ; else if ( this . getFieldName ( false , false ) . indexOf ( "ID" ) != - 1 ) return this . getFieldName ( false , false ) . substring ( 0 , this . getFieldName ( false , false ) . indexOf ( "ID" ) ) ; else this . getFieldName ( false , false ) ; } return Constants . BLANK ; // Never }
Get the record name that this field references .