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
Solved! Go to Solution.
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.
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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
204 | |
70 | |
51 | |
47 | |
20 |
User | Count |
---|---|
258 | |
120 | |
85 | |
80 | |
68 |