Page 1 of 1

Converted RUI screen that opens a file folder - How?

Posted: Wed Nov 09, 2016 7:22 pm
by wolfj
We are just starting our conversion to ProfoundUI and are in the process of fixing some basic issues that come from running through a browser before converting every screen in Visual Design. One RPG/DDS program/screen has a function key, that when pressed, used to run STRPCO/STRPCCMD to open a file folder on the network in Windows Explorer. We are using Chrome and IE is not an option, so we cannot use the applet.. And we are asked to NOT install the listener to enable the STRPCCMD, since it will be needed on every PC. Is a hyperlink field on the new screen the only way to do this? (The way the folder is presented on the browser tab is less than desirable.)

Other places where STRPCO/STRPCCMD was used to open an URL, we used the window.open command in the onload definition of the record format of a dummy program that is sent the URL (i.e. http://www.maps.google.com). When the folder path is sent as the parameter value (i.e. file://P:/Common/Directory1) into the dummy program, the new browser tab opens blank. Is there a method other than converting the entire original screen? (Yes, we will return later to convert each screen after this initial cleanup.)

Any suggestions?

Re: Converted RUI screen that opens a file folder - How?

Posted: Thu Nov 10, 2016 12:41 pm
by Glenn
In my experience, all of the browsers will consider it a security violation if you try to open a file:// address while on an http:// page. There are, apparently, ways around this in Chrome with extensions and/or apps but that still leads to the same issue of having to modify each PC.
http://stackoverflow.com/questions/3900 ... l-resource

If you're not willing/able to install the PC Command Listener (or use the applet) than you will probably have to redesign the app that needs to open the file explorer.

Glenn

Re: Converted RUI screen that opens a file folder - How?

Posted: Wed Nov 16, 2016 5:40 pm
by matt.denninghoff
Glenn is correct. Browser security prevents websites from accessing or loading resources from your local machine.

We do offer the PC Listener in a .msi package. Some of our customers have setup a Windows Group Policy to automatically install the PC Listener. This might be a helpful resource: https://support.microsoft.com/en-us/kb/816102