cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ratanapouy
Level: Powered On

Preview Gallery Image from Form

Hi,

 

I have two different screen, 1st is detail screen by using Form to preview all fields from Sharepoint. 2nd screen to preview image that attached in each item of Sharepoint.

There is one indicator in 1st to let me know whethere item has attachment or not. if it has [On], click [Attachment] to preview attachment at 2nd screen. I am finding formular to preview 2nd screen from 1st scree. please help..

1st screen:

first screen.png

by clicking on Attachment textbox, it will preview attachment at 2nd screen

second screen.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Preview Gallery Image from Form

Hi @ratanapouy,

 

Could you please share a bit more about the first screen (Detail Screen) that you mentioned within your app?

Further, could you please show a bit more about the formula within Items property of the Display form of your Detail screen?

 

I have made a test on my side, please take a try with the following workaround:

5.JPG6.JPG7.JPG

 

Within Gallery screen (Screen1):

 

set Items property of the Gallery control (Gallery1) to my SP list data source. Set OnSelect property of Navigate button to following formula:

Navigate(Screen2,ScreenTransition.Fade)

Within Detail Screen (Screen2):

 

Set Item property of the Display form control to following formula:

Gallery1.Selected

Set OnSelect property of the "Has Attachments" Label control (On your side, it is "Attachment") to following formula:

If(Gallery1.Selected.'{HasAttachments}'=true,Navigate(Screen3,ScreenTransition.Fade))

Within Attachments Preview screen (Screen3):

 

Set Items property of the Gallery control (Gallery2) to following formula:

Gallery1.Selected.'{Attachments}'

Set the Image property of the Image control within the Gallery control (Gallery2) to following formula:

ThisItem.AbsoluteUri

 

If you could provide more details about your scenario, we would provided a proper workaround for you.

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Preview Gallery Image from Form

Hi @ratanapouy,

 

Could you please share a bit more about the first screen (Detail Screen) that you mentioned within your app?

Further, could you please show a bit more about the formula within Items property of the Display form of your Detail screen?

 

I have made a test on my side, please take a try with the following workaround:

5.JPG6.JPG7.JPG

 

Within Gallery screen (Screen1):

 

set Items property of the Gallery control (Gallery1) to my SP list data source. Set OnSelect property of Navigate button to following formula:

Navigate(Screen2,ScreenTransition.Fade)

Within Detail Screen (Screen2):

 

Set Item property of the Display form control to following formula:

Gallery1.Selected

Set OnSelect property of the "Has Attachments" Label control (On your side, it is "Attachment") to following formula:

If(Gallery1.Selected.'{HasAttachments}'=true,Navigate(Screen3,ScreenTransition.Fade))

Within Attachments Preview screen (Screen3):

 

Set Items property of the Gallery control (Gallery2) to following formula:

Gallery1.Selected.'{Attachments}'

Set the Image property of the Image control within the Gallery control (Gallery2) to following formula:

ThisItem.AbsoluteUri

 

If you could provide more details about your scenario, we would provided a proper workaround for you.

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Nena
Level: Powered On

Re: Preview Gallery Image from Form

Hi

I used the 

ThisItem.AbsoluteUri

but it does not work on my Powerapps,  I am trying to preview my image on the SP List customized form

Thanks 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 228 members 4,776 guests
Please welcome our newest community members: