Hi,
I want an app in the nav tree to open a PDF I have on the IFS. I copied the "Open PDF to Tab" example app to a new app and set the full path to point to the PDF that is stored in a directory on the IFS (outside of the Valence instance directory). When I try to use it, however, I'm getting an "Internal Sever Error" message in the browser and a "Client denied by server configuration: /valencext1/favicon.ico" message in the server log.
Of course, the first thought is that I probably don't have the right directive specified in my config file, but I do. I know the directive is written properly because I'm opening the same PDF (using the same path) with a toolbar button using window.open() in another application, which works successfully.
So if the path in the window.open function and the Document field in the app settings are the same, what am I missing?
My directive:
My window.open() code:
My app Document field setting:
Thanks in advance for your help!
I want an app in the nav tree to open a PDF I have on the IFS. I copied the "Open PDF to Tab" example app to a new app and set the full path to point to the PDF that is stored in a directory on the IFS (outside of the Valence instance directory). When I try to use it, however, I'm getting an "Internal Sever Error" message in the browser and a "Client denied by server configuration: /valencext1/favicon.ico" message in the server log.
Of course, the first thought is that I probably don't have the right directive specified in my config file, but I do. I know the directive is written properly because I'm opening the same PDF (using the same path) with a toolbar button using window.open() in another application, which works successfully.
So if the path in the window.open function and the Document field in the app settings are the same, what am I missing?
My directive:
Code:
Alias /distRpts /home/hostreports/Distributor_Orders/Web <Directory /home/hostreports/Distributor_Orders/Web> Order Allow,Deny allow from all </Directory>
Code:
var filepath = "/distRpts/DistributorOnlineOrderingGuide.pdf"; var my_help_window = window.open(filepath, myHelpWindow, "status=1,width=750,height=750");
Code:
/distRpts/DistributorOnlineOrderingGuide.pdf
Comment