cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to display inline attachment for selected viewscreen Selected.'{Attachments}-sharepoint list

 

I have created 3 screens, new screen to attach images and viewscreen to display inline attachment.

I don't want to use gallery list, instead of for the selected screen data I want to display images selectedscreen

.Selected.'{Attachments}

1 ACCEPTED SOLUTION

Accepted Solutions

Hi, this seems to work for me when I change the AbsoluteUri setting to Value.

View solution in original post

17 REPLIES 17
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please share a bit more about your scenario?

Do you want to display the inline attachment within the Display screen (View Screen that you mentioned)?

Further, could you please share mode details about your app's configuration?

 

If you want to display the inline attachment (image) within the Display screen, you could consider add a Gallery control within the Display form of your Display screen, then add a Image control within the Gallery control to display the image.

 

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

 

 

Set the Items property of the Gallery control to following formula:

Gallery1.Selected.'{Attachments}'

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

ThisItem.AbsoluteUri

 

The test GIF image as below:Test1.gif

 

 

 

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.
Anonymous
Not applicable

Hi Kris,

 

Thanks for your response.

I don't see '{Attachments}' property under items of Gallery control.Can you please help?

 
Gallery1.Selected.'{Attachments}'

 

Thanks Kris,

Anonymous
Not applicable

Hi Kris,

 

I am using SharePoint list as the data source and duplicated screen to view and edit.

in viewscreen, I want to display an inline picture/image for all attachments,

 

Thanks,

Anonymous
Not applicable

What can we do when the attatchment does not open on Mobile phone due to Sharepoint permission?

 

I searched a lot on this forums, a lot of answer to this questions but i did not get a conclusion for this....On web the images displays ok, but on mobile phone no....Is there a way to get only the URL of the image in a column on Sharepoint list, and then display it on PA using the URL column?

I'm having the exact same issue. '{Attachments}' is not an option for me on Gallery.Selected. If I just type it in, it's not recognized.

Hi @Anonymous,

 

Do you have a BrowserScreen (which contains a Gallery control) within your app?

 

I assume that you add a Gallery control within your ViewScreen, please set the Items property of the Gallery control (within the ViewScreen) to following formula:

Gallery1.Selected.'{Attachments}'

Note: The Gallery1 represents the Gallery control within your BrowserScreen (first screen) rather than ViewScreen. On your side, you may have a Gallery control called BrowserGallery1 within your BrowserScreen, please set the Items property of the Gallery control within ViewScreen to following:

BrowserGallery1.Selected.'{Attachments}'

 

Add a Image control within the Gallery control (within the ViewScreen), then set the Image property to following formula:

ThisItem.AbsoluteUri

Best ragrds,

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.
Anonymous
Not applicable

Hi Kris,

 

Thanks for your response.

I am not using Gallery control, I am creating a screen from SharePoint list and duplicated screen for edit and view.

Can image control handle inline attachment view? or any approach for this.

 

Thanks Kris!.

Don't mean to hijack Mike's thread, but I'm not sure the Support folks understand what is going on.  The issue is we don't have .

'{Attachments}'

as an option on Gallery.Selected.  There is '{HasAttachments}' but not Attachments.  So, we can't connect a Gallery to the Attachments Table. 

Anonymous
Not applicable

Here is the workaround I made it work.

insert gallery control on screen and plug to SP list and filter it to display based on ID.

hide gallery control

add a new button to open a new screen.

add a new screen and insert gallery control and now you can write based on selected gallery display image.

however, this works on the browser, not on mobile.

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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