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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,066)