You can also do it this way if you want your image to come from the HTMLB library:
<% data image type ref to cl_htmlb_image. data: image_string type string. create object image. image->id = `UserSelectionCancel2`. image->src = cl_bsp_mimes=>sap_icon( `ICON_CHECKED` ). image->tooltip = ``. clear image_string. image_string = image->IF_BSP_BEE~RENDER_TO_STRING( page_context ). %> <htmlb:button id = "UserSelectionCancel" encode = "FALSE" text = "<%= image_string %>   <OTR>Text to go with the Image</OTR>" />
Message was edited by: Thomas Jung
Add a comment