public int fieldChanged ( boolean bDisplayOption , int iMoveMode ) { // Read a valid record if ( this . getOwner ( ) != null ) { IntegerField thisField = ( ( IntegerField ) this . getOwner ( ) . getRecord ( ) . getField ( m_iMainFilesFieldSeq ) ) ; if ( this . getOwner ( ) . getRecord ( ) . getRecordOwner ( ) != null ) if ( this . getOwner ( ) . getRecord ( ) . getRecordOwner ( ) . getTask ( ) != null ) if ( this . getOwner ( ) . getRecord ( ) . getRecordOwner ( ) . getTask ( ) . getApplication ( ) != null ) { int iUserID = - 1 ; if ( this . getOwner ( ) . getRecord ( ) . getRecordOwner ( ) != null ) if ( ( ( BaseApplication ) this . getOwner ( ) . getRecord ( ) . getRecordOwner ( ) . getTask ( ) . getApplication ( ) ) != null ) if ( ( ( BaseApplication ) this . getOwner ( ) . getRecord ( ) . getRecordOwner ( ) . getTask ( ) . getApplication ( ) ) . getUserID ( ) != null ) if ( ( ( BaseApplication ) this . getOwner ( ) . getRecord ( ) . getRecordOwner ( ) . getTask ( ) . getApplication ( ) ) . getUserID ( ) . length ( ) > 0 ) iUserID = Integer . parseInt ( ( ( BaseApplication ) this . getOwner ( ) . getRecord ( ) . getRecordOwner ( ) . getTask ( ) . getApplication ( ) ) . getUserID ( ) ) ; // File written or updated, set the user name int iErrorCode = thisField . setValue ( iUserID , bDisplayOption , DBConstants . SCREEN_MOVE ) ; if ( iMoveMode == DBConstants . INIT_MOVE ) thisField . setModified ( false ) ; // Don't make this record modified just because I set this field. return iErrorCode ; } } return DBConstants . ERROR_RETURN ; // Can't set a field that is not long! }
The Field has Changed . Change the changed by user field .