Hi folks,
Problem:
Not possible to open external web site URL (a link to an invoice registered outside) from NAV launched in the Citrix environment. More details in the previous topic:
http://mibuso.com/forum/viewtopic.php?f=23&t=60040
As a result information on the page (PDF and some other data) is not accessible from NAV.
Customer is running NAV 5 SP1
Expected behavior:
It was agreed that all the other data is not that relevant for NAV user, but it is really important to open the PDF file.
Suggested solution:
With this, I was thinking about the following solution as we are already using ADO to get the data from web application:
- Web application would store PDFs for corresponding invoices as BLOB (image) fields in SQL db
- When user triggers PDF lookup from NAV, NAV-interface would download the PDF from SQL db using one of the methods described here using ADO:
viewtopic.php?p=122794#p122794
- Once the file is retreived from SQL it will be opened using one of the methods described here:
viewtopic.php?t=12861 (Will it be necessary to store the downloaded PDF file as BLOB in NAV or it would be possible to open the file just using the path retreived during download?)
Please let me know what do you think about the suggested approach to solving this problem?
Thank you.
Comments
1. Upload a PDF into SQL db for testing (prior to our web-application being able to do it):
PDF field type is 'image'
2. Import PDF file from SQL into NAV as BLOB:
3. Open PDF stored in NAV as BLOB:
'PDF' is a BLOB field in a table
The question is - is it possible to delete a created file during step 2 and 3 from above?
I noticed, there is a function File.ERASE in NAV 2009 and later, but the solution will be installed into 5.00 SP1 where it is not available yet.