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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,420)