Converted RUI screen that opens a file folder - How?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
wolfj
New User
Posts: 2
Joined: Wed Feb 17, 2016 8:01 pm
First Name: Jim
Last Name: Wolfgang
Company Name: Swift Transportation
Phone: 623-907-7568
Address 1: 2200 S. 75th Ave
City: Phoenix
State / Province: Arizona
Zip / Postal Code: 85043
Contact:

Converted RUI screen that opens a file folder - How?

Post 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?
User avatar
Glenn
Profound Logic Staff Member
Posts: 124
Joined: Mon Apr 14, 2014 4:08 pm
First Name: Glenn
Last Name: Hopwood
Company Name: Profound Logic Software
State / Province: Ohio
Country: United States
Contact:

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

Post 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
User avatar
matt.denninghoff
Profound Logic Staff Member
Posts: 115
Joined: Wed Feb 10, 2016 3:53 pm
First Name: Matthew
Last Name: Denninghoff
Company Name: Profound Logic Software
State / Province: Ohio
Country: United States
Contact:

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

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests