Any chance you walk through this a little more in depth? I think that I understand the concept but would LOVE to see an example of the Event workflow and Function being used if you wouldn’t mind sharing
We were wondering about this as well in Kinetic… Seems like this is something they overlooked or should be working on (if they are not already). This is a great candidate for Epicor Ideas, if it’s not already up there…
We will probably come back to this thread at somepoint and try what is suggested above - if you end up coding something that works well for you, please pass it on via a follow-up reply.
UNC paths are not accessible to web pages for obvious security reasons. A web page/script should not have access to local resources. That is why it worked with a DOTNET application and not a Kinetic page.
The solution is to serve the file up using https. @isnaeni.nurfalah is doing this by storing the image in the Kinetic database instead of a network share and delivering it via an Epicor Function exposed via https.
This solution assumes this is the only place that image appears. If we want to use that image in other applications (M365 or another web app) then one would have to either keep a second copy of the image outside of the Kinetic database for non-Kinetic users to access or use Kinetic has a file server and add Kinetic licenses to all users who need to access that image.
If we use IIS to serve up those images, then one could use the PictureBox with a Link attachment type in Kinetic and also serve the images to non-Kinetic users.
Bonus, in the web server solution, images will be cached. With the Epicor function, they will be served every time.
Epicor has a solution with the Edge Client that is supposed to work with file shares. It becomes the web server for UNC files.