web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attachment control and...
Power Apps
Unanswered

Attachment control and PDF viewer

(0) ShareShare
ReportReport
Posted on by 315

All my different items in an equipment list has the ability to carry 10 attachments each.
These are stored in the Dataverse table, on the items row.

 

In my PowerApp I have the AttachmentControl to show the files (jpg/pdf/etc.)

 

Is there a workaround to be able to open the PDF files in the attachment control, inside the app in the PDF-viewer?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @mrstian89 :

    Do you want to display a PDF file in the attachment control by PDF-viewer?If so,I've made a test for your reference:

    vbofengmsft_0-1636091243481.png

    Note:

    If you click the file in the attachment, the file will be downloaded. Therefore, the only way is to call the Attachments property of the attachments control, find the PDF file in the file list, and get its Value (URL).

    Best Regards,

    Bof

     

  • mrstian89 Profile Picture
    315 on at

    Thanks for responding!
    I am able to make this happen, but when I click on a object in the attachment control, it also prompts me to download the file.

     

    Is there any way to choose a OnSelect for the attachment control? If I choose to open the PDF viewer, then it won't prompt me to download the file?

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @mrstian89 :

    I'm afraid that is not available,unless you add one more list box.for example:
    1\Add a list box(ListBox1) and set it's items property to:

    DataCardValue16.Attachments /*DataCardValue16 is the attachment control*/

    2\Select the PDF file on the list box

    3\Set the PDF viewer's Items property to:

    ListBox1.Selected.Value

    vbofengmsft_0-1636703597053.png

    Best Regards,

    Bof

     

  • Albertax Profile Picture
    111 on at

    Thank you for this solution, it saved my time!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard