Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

PDFViewer conditional view

(0) ShareShare
ReportReport
Posted on by 10

I have an application that shows the PDF documents that are in a SharePoint directory, showing their titles and clicking on the title allows you to view them with PDF Viewer.


However, there are times when there are no PDF documents to view in a folder and you see the window in gray as I show in the photo.


This causes confusion for the user, since they believe that the titles are not loading.


How can I only display the PDF viewer container if there is a PDF document title to display?

 

Example screen without documents to see:

SoporteSM_0-1715166709046.png

 

Example screen with a document to see:

SoporteSM_1-1715166873344.png

 

 

  • DBO_DV Profile Picture
    DBO_DV 4,430 on at
    Re: PDFViewer conditional view

    You could use the visible property.
    I see you are using a gallery for at least the Titlenames.

    //Visible property of PDF Container
    
    !IsEmpty(DataSourceOfGallery)

     

    Where i put DataSourceOfGallery you need to put the DataSource that you also put into your Gallery since you probably used a collection or filters to only get the Documents necessary. 

     

    You could also replace this container with an Image or something that states No Documents available. Like this there won't be any misunderstanding. 

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard