public String getSFieldProperty ( String strFieldName ) { String strValue = super . getSFieldProperty ( strFieldName ) ; // Hack - For some weird reason DOJO returns the display value instead of the 'option' value. Need to look up the field value. Convert converter = this . getScreenField ( ) . getConverter ( ) ; String strConverter = converter . toString ( ) ; if ( ( ( strValue != null ) && ( strValue . equals ( strConverter ) ) ) || ( ( strValue == null ) && ( strConverter == null ) ) ) { // The value has not changed, return it! if ( converter . getField ( ) != null ) // Always return converter . getField ( ) . toString ( ) ; } for ( int index = 0 ; index < SPopupBox . MAX_POPUP_ITEMS ; index ++ ) { String strDisplay = converter . convertIndexToDisStr ( index ) ; if ( ( ( strValue != null ) && ( strValue . equals ( strDisplay ) ) ) || ( ( strValue == null ) && ( strDisplay == null ) ) ) { if ( converter . convertIndexToField ( index , DBConstants . DISPLAY , DBConstants . SCREEN_MOVE ) == DBConstants . NORMAL_RETURN ) return converter . getField ( ) . toString ( ) ; } if ( index > 0 ) if ( ( strDisplay == null ) || ( strDisplay . length ( ) == 0 ) ) break ; // Far Enough } return strValue ; }
Get this control s value as it was submitted by the HTML post operation .