cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Sharathmg
Active Contributor
0 Kudos

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

0 Kudos

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.

catlacroix99
Product and Topic Expert
Product and Topic Expert
0 Kudos

UI Web Dynpro Java tag should be added.

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

true, just added now. thanks pointing out, Catherine.

0 Kudos

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

Szabolcs_Renyo
Advisor
Advisor
0 Kudos

Hello Aswini,

Would you like to code it with WD Java?

Best Regards,

Szabolcs Renyo