on 03-04-2014 11:15 AM
Good day !
I was facing the issue with images : we are creating the images by using CSS tool to generate a button. that image type is .png , this images we are importing into webdyunpro component as a mime object.
These images are binided into button image source property. And i am writing the code for calling this button (this is uniq code for all languages).
But all langaues are working fine for spanish(ES) langage only it was not displaying the image. it is displyind cross mark.
Naming standard i ma mainintg for mime object name : Export_ES.png.(spanish).
Please can any one help me on this .
Regards,
Venu
Hi,
And i am writing the code for calling this button (this is uniq code for all languages).
What do you mean by calling button? How you are calling button in WDA?
Have you uploaded different images for different languages? Isn't the image same for all the languages?
Try increasing the width(property) of Button and check.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Thanks for your Promt reply.
1. i am creating different images for different languages.
ex : english : Export_EN.png
Spanish : Export_ES.png
Code will be : here i am creating attribute and bing that attribute to button image source.
me ->get_button_img
EXPORTING
im_button_id = 'Export'
im_button_value = 'IMG_EXPORT'
im_type = '.png'
CHANGING
ch_context_ele = lo_el_images.
'IMG_EXPORT' : attribute name
method : get_button_img
DATA: lv_img_name TYPE string,
lv_lang TYPE string.
* lv_jpg(4) TYPE c VALUE '.jpg'.
lv_lang = sy-langu .
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'
EXPORTING
input = lv_lang
IMPORTING
output = lv_lang.
CONCATENATE im_button_id '_' lv_lang IM_TYPE INTO lv_img_name.
CALL METHOD CH_CONTEXT_ELE->set_attribute
EXPORTING
value = lv_img_name
name = im_button_value.
here lv_img_name : Export_ES.png.
But its not working.
thank you
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.