public boolean onHelp ( int iOptions ) { String strPrevAction = this . getScreenURL ( ) ; if ( ( strPrevAction == null ) || ( strPrevAction . length ( ) == 0 ) ) return false ; // Can't handle help if I'm not the target screen. // Note: The following is a hack to make the demo screen stop displaying after the first help is pressed if ( this . getProperty ( "displayInitialHelp" ) != null ) if ( ( this . getProperty ( "helplanguage" ) != null ) && ( this . getProperty ( "helplanguage" ) . length ( ) > 0 ) ) if ( this . getTask ( ) != null ) if ( this . getTask ( ) . getApplication ( ) != null ) this . getTask ( ) . getApplication ( ) . setProperty ( "helplanguage" , this . getTask ( ) . getApplication ( ) . getLanguage ( true ) ) ; strPrevAction = Utility . fixDisplayURL ( strPrevAction , true , true , true , this ) ; BaseAppletReference applet = null ; if ( this . getAppletScreen ( ) != null ) if ( this . getAppletScreen ( ) . getScreenFieldView ( ) != null ) applet = ( BaseAppletReference ) this . getAppletScreen ( ) . getScreenFieldView ( ) . getControl ( ) ; if ( applet != null ) iOptions = applet . getHelpPageOptions ( iOptions ) ; if ( ( MenuConstants . HELP_WEB_OPTION & iOptions ) == MenuConstants . HELP_WEB_OPTION ) return this . getScreenFieldView ( ) . showDocument ( strPrevAction , iOptions & 1 ) ; // Not standalone else return this . getAppletScreen ( ) . showHelpScreen ( strPrevAction , iOptions ) ; }
Process the Help toolbar command .