on 05-03-2012 10:00 AM
please help me i m not geting image on button i m sending u button
CALL METHOD cl_wd_button=>new_button
EXPORTING
* activate_access_key =
* bind_design =
* bind_enabled =
* bind_image_first =
* bind_image_source =
* bind_text =
* bind_text_direction =
* bind_tooltip =
* bind_visible =
* bind_width =
* context_menu_behaviour = E_CONTEXT_MENU_BEHAVIOUR-INHERIT
* context_menu_id =
* design = E_DESIGN-STANDARD
enabled = 'X'
* explanation =
* hotkey = E_HOTKEY-NONE
id = 'B1'
image_first = 'X'
image_source = 'C:\Documents and Settings\ravi.kumar\My Documents\Downloads\1.jpeg'
on_action = 'asda'
text = 'kk'
* text_direction = E_TEXT_DIRECTION-INHERIT
* tooltip =
* view =
* visible = E_VISIBLE-VISIBLE
* width =
receiving
control = zz .
Hi ravi,
Whenever you are refering an image or a file in webdynpro, it should be in the mime objects. You have a given a path of your system. How the server would be able to find that image in the client end.
Regards
Fareez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
Image should be existed in MIME objects of your current component.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gothrough the below reference and there PDF is maintained instead of IMAGE. you can use image in place of PDF.
http://wiki.sdn.sap.com/wiki/display/WDJava/Using+MIME+Object+%28pdf%29+in+web+dynpro
Hi,
MIME object can be any kind like images,external apps, icons,html pages, documents etc
which can be imported into SAP.You can find MIME repository in ABAP workbench.
To use MIME in Webdynpro component, Just right click on your component->create->MIME object->import. Then you can add your image from your PC and give some name to this object.
Now you will find this MIME object under a folder within your component,Just give this name in your image source. it should work
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.