public String getZmlImagePath ( ) { String strImage = null ; if ( this . getScreenField ( ) . getConverter ( ) != null ) if ( this . getScreenField ( ) . getConverter ( ) . getField ( ) != null ) if ( ! this . getScreenField ( ) . getConverter ( ) . getField ( ) . isNull ( ) ) { BaseField field = ( BaseField ) this . getScreenField ( ) . getConverter ( ) . getField ( ) ; Record record = field . getRecord ( ) ; String strObjectID = null ; if ( ( record . getEditMode ( ) == DBConstants . EDIT_CURRENT ) || ( record . getEditMode ( ) == DBConstants . EDIT_IN_PROGRESS ) ) { try { strObjectID = record . getHandle ( DBConstants . OBJECT_ID_HANDLE ) . toString ( ) ; } catch ( DBException ex ) { strObjectID = null ; } } if ( strObjectID != null ) if ( strObjectID . length ( ) > 0 ) { String strGraphicFormat = "jpg" ; String strImageServlet = HtmlConstants . SERVLET_PATH + ' ' + DBParams . IMAGE_PATH ; strImageServlet = Utility . addURLParam ( strImageServlet , DBParams . DATATYPE , strGraphicFormat ) ; strImageServlet = Utility . addURLParam ( strImageServlet , DBParams . RECORD , record . getClass ( ) . getName ( ) ) ; strImageServlet = Utility . addURLParam ( strImageServlet , DBConstants . STRING_OBJECT_ID_HANDLE , strObjectID ) ; strImageServlet = Utility . addURLParam ( strImageServlet , "field" , field . getFieldName ( false , false ) ) ; //? String strImageSize = ""; //+ strSize = " width=" + strWidth + " height=" + strHeight; strImage = strImageServlet ; } } return strImage ; }
Get the path to the image in this control .