Skip to Content

How to display image in second tab,which is selected through fileUpload in first tab

Hello Experts,

In a tabstrip , I have 2 tabs. In tab1, using fileUpload I chose an image file. On clicking the save button, I want the image to be displayed in the second tab. I used Image UI. But the source attribute is not taking the resource context attribute. Please help me in this regard....

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • May 02, 2017 at 12:11 PM

    Hello Aswini,

    Would you like to code it with WD Java?

    Best Regards,

    Szabolcs Renyo

    Add comment
    10|10000 characters needed characters exceeded

  • May 03, 2017 at 04:45 AM

    yes Renyo. Please give me detailed steps, it would be very helpful for me.

    Add comment
    10|10000 characters needed characters exceeded

  • May 03, 2017 at 11:38 PM

    UI Web Dynpro Java tag should be added.

    Add comment
    10|10000 characters needed characters exceeded

  • May 06, 2017 at 08:29 PM

    It must be problem with the binding.

    Since tabstrip will be in the same view, first try to display the image within the same tabstrip by binding the context variable which holds the uploaded image.

    Once that is fixed, then create an image in second tab and bind the same variable. Since tabstrip is in same view context, the image data will be available throughout the view.

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sharath, thank you for the answer. I am able to display the image independently by taking the Image UI. But my requirement is, I will choose an image using FileUpload in first tab. In the second tab, I want to display the image selected in the FileUpload. For fileUpload, we will use the resource type, binding the resource to Image UI is not possible(since it will take only string type). Please tell me, whether there is any way out for this thing

      Thanks

      Aswini Yagati.