I’ve seen some posts about this on here and wanted to touch base on this subject again to see what the recommended approach would be. I’m using the XFileAttch table and looking at the file paths of my attachments. I want to view them in a browser window, or really any window I can view them in.
I see there is a PDF viewer, which I could see being used for the those types of files, but I have PNGs as well, so I’m wondering what would be the best approach for viewing either type of file, PNG or PDF. Would I need a condition that uses PDF Viewer plus something else for the PNGs? Could I embed a web viewer on the a card in the screen and show which ever file is highlighted in a grid?
The another posts I’ve seen mention that kinetic wants to download attachments, not just view them. In that post I saw someone use the Erp REST approach using Ice.BO.AttachmentSvc with the DownloadFile service operation. So, I’m just wanting some feedback on what the best approach for this would be.
It depends where the files are located. If they are on file shares, the browser cannot access them directly. (The EdgeAgent will in version of Kinetic but not E10). If they are web links, and the user at the browser has access to them, then you could display them in the browser. I’m not familiar with the PDF Viewer widget, so I’ll defer to others.
This will render a website, but also picture files and pdfs. I’ve used it for PDFs and JPGs but I don’t know if I’ve tried PNGs before. You can use a publish subscribe with tokens to get your file locations, or web address mapped.
I’m trying to show files on a local network (not cloud). So my file paths are network folder locations that I can access. I tried the browser approach and got a 404 error, so I’m going to go back and look at that again. Maybe its a permissions issue. I’m in Kinetic 2025
Here are the security reasons why modern browsers access to local resources:
Do you have the Edge Agent installed? I haven’t tried it, but my understanding is that the browser talks to the edge client (a local web resource) and it will go retrieve files for you.
Your other option is to run a web server and mount it to the folders you want to share. You lose file permissions and everything becomes read only but it sounds like what you’re trying to achieve.
The other option is to store these files in ECM, DropBox, Box, or SharePoint and use https urls.
Also, maybe update your profile from 10.1 to K2025.
Thanks for the information. Ultimately I was able able to get it to work using the url-open widget in the Events section. I pass the file path to the viewer via a button click on my grid which passes my grid’s dataview.table_field of the selected row, . Then the url-open opens up the file in microsoft Edge. So, this basically does what I’m familiar with, by showing the file in a browser, the difference is you don’t set up the bowser window and feed it values, you just open up a new one with this event widget.
Oh yeah, my profile, I don’t think I’ve updated it since the yahoo days. I probably should do that