cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
takashi9999
Helper II
Helper II

click the image to download image

Dear All

 

Can anyone help me step by step to click the image to download the image?7.JPG

4 REPLIES 4
v-albai-msft
Community Support
Community Support

Hi @takashi9999 ,
Where do you get the image to show in your Image3 control? From the Attachments column of the selected item?

Or do you have a column called "Value" in your DataSource that keep the URL of images?(so that the output result of "Gallery2.Selected.Value" is URL).

Assume that you display attachment image of the selected item in your Image control, and want to download this image. So you can try this method:

1. Here is my image, the Image property is(you can add more Image controls to show the second, third, fourth attachment image, in my example, I just show the first attachment):

First(Gallery1.Selected.Attachments).Value

valbaimsft_0-1624427560428.png

2. Set OnSelect property of this image control to:

Download(First(Gallery1.Selected.Attachments).AbsoluteUri)

valbaimsft_2-1624427770452.png

Run your app and check the result.

 

Note: here is some notes about Download function.

valbaimsft_3-1624427837198.png

Best regards,

Allen

The image3 show image base on gallery2

 

8.JPG

Hi @takashi9999 ,

What's the Image property of your Image2 control inside the gallery?

Best regards,

Allen

Yes, it is control by Gallery2 as below screen0.JPG00.JPG

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,199)