cancel
Showing results for 
Search instead for 
Did you mean: 

Hello Experts, i have issue with mime repository image with different languages ?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member184578
Active Contributor
0 Kudos

Hi,

In the WDA Component Mimes folder, when you double click on Export_ES.png, Are you able to see the image? If so, instead of setting the image dynamically, bind statically to the image source and test. I guess there might be some case sensitive in the image name?

Regards,

Kiran

Former Member
0 Kudos


Hi Kiran,

when i am double clicking i am able to see the image.

As you suggest if i do staitcally ,it will problem for another langauges .

but i am mainting same name for mime object.

Thank you

former_member184578
Active Contributor
0 Kudos

Hi,

As you suggest if i do staitcally ,it will problem for another langauges .

What I mentioned was, check if it is working if you maintain statically instead of setting from code.

Regards,

Kiran