cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ell1990
Helper I
Helper I

How to clear down PDF Viewer

Hi, I have built an app with a PDF Viewer connected to a SharePoint document library. When someone clicks on the file in the document library, the file appears in the PDF Viewer. The file then stays in the viewer until a new file is selected, even if the user navigates to a different part of the app. 

When the user navigates to a different screen, is there a way of resetting the pdf viewer?  

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @ell1990 ,

I cannot see your model, but I assume it would simply be a case to put the code on every other button the user can navigate from other than the one that goes to full screen.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @ell1990 ,

I am assuming you have the Document in the PDF viewer set the the Variable returned from your Flow?

If so just set it to Blank()

Set(YourPDFVar,Blank())

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @WarrenBelz 

 

Thank you for this, it works perfectly.

 

The issue i have though is that within the app, i have a screen to view the PDF Viewer on a full screen.  

 

When a file is selected, the user as the option of selecting a button which takes them to the same file in full screen.

 

Is there a way of adding something into the formula so that it resets the PDF viewer when navigating to a different part of the app except when navigating to the full screen?

 

Thanks

Emma

Hi @ell1990 ,

I cannot see your model, but I assume it would simply be a case to put the code on every other button the user can navigate from other than the one that goes to full screen.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thank you, this has worked.

 

I have tried accepting this as a solution but it won't let me, I keep getting error messages.

 

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,308)