public String getDefaultScreenKeyArea ( ) { for ( int i = DBConstants . MAIN_KEY_AREA ; i < this . getKeyAreaCount ( ) ; i ++ ) { if ( this . getKeyArea ( i ) . getUniqueKeyCode ( ) == DBConstants . NOT_UNIQUE ) if ( this . getKeyArea ( i ) . getKeyField ( DBConstants . MAIN_KEY_FIELD ) . getField ( DBConstants . FILE_KEY_AREA ) instanceof StringField ) return this . getKeyArea ( i ) . getKeyName ( ) ; } return null ; // Return the current key area }
Get the default key index for grid screens . The default key area for grid screens is the first non - unique key that is a string . Override this to supply a different key area .