Skip to Content
0
Former Member
Dec 21, 2011 at 12:36 PM

Set size of an image in a configurable FormView

57 Views

Hello,

I've following requirement.

I want to resize a image on a cofigurable FormView.

Over GET_P* i get a image field:

case iv_property.

when if_bsp_wd_model_setter_getter~fp_fieldtype.

rv_value = cl_bsp_dlc_view_descriptor=>field_type_image.

endcase.

And the URL is set in the GET_* methode.

Now i would like to set a static hight and width to the image. Is this possible? Or i have to do this in *.htm, for excample:

<%

DATA: lv_status_img_url TYPE string.

lv_status_img_url = "/SAP/BC/BSP/SAP/thtmlb_styles/sap_skins/default/images/warning.gif".%>

<htmlb:image src = "<%=lv_status_img_url%>"

alt = "Status img!" />

I I refer to

http://wiki.sdn.sap.com/wiki/display/CRM/Uploadanddisplayimagesinwebui+screen

adding-an-icon-to-a-view

add-a-image-on-account-details-view

Best Regards,

Manuel Nonnenmacher