public String addScreenParams ( BasePanel screen , String strURL ) { int iNumCols = screen . getSFieldCount ( ) ; for ( int iIndex = 0 ; iIndex < iNumCols ; iIndex ++ ) { ScreenField sField = screen . getSField ( iIndex ) ; boolean bPrintControl = true ; if ( sField instanceof BasePanel ) { strURL = this . addScreenParams ( ( BasePanel ) sField , strURL ) ; bPrintControl = false ; // ie., Don't print buttons } if ( sField . getConverter ( ) == null ) bPrintControl = false ; if ( screen == this ) bPrintControl = false ; // My children are the report detail (Not params). if ( ! sField . isInputField ( ) ) bPrintControl = false ; if ( ! sField . isEnabled ( ) ) bPrintControl = false ; if ( bPrintControl ) if ( sField . getScreenFieldView ( ) != null ) { String strData = sField . getSFieldValue ( false , false ) ; // Match HTML submit (input format/go through converters). strURL = Utility . addURLParam ( strURL , sField . getSFieldParam ( null , false ) , strData ) ; // Don't need outside frame stuff in a window } } return strURL ; }
Display this screen in html input format . returns true if default params were found for this form .