Opening file on IFS

Use this board to ask questions or have discussions with other Rich Displays users.
RICHARD RUTA
Profound User
Posts: 40
Joined: Mon Apr 26, 2010 11:53 am
First Name: RICHARD
Last Name: RUTA
Company Name: WILLAM B. MEYER
Phone: 203.984.7175
Address 1: 255 LONG BEACH BLVD
City: STRATFORD
State / Province: Connecticut
Zip / Postal Code: 06615
Country: United States
Contact:

Re: Opening file on IFS

Post by RICHARD RUTA »

That's what I used. In Chrome it opened the file, but not in EXCEL. And the arrow back went to eoj. In Explorer, still got the navigation message. I think I'm pretty far from the latest version of Profoundui. I'm at 2.2.8. Would that be the problem?
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Opening file on IFS

Post by David »

Are you still trying to use pui.link()? Remember, I had mentioned before that this does not work in most browsers. This was my mistake -- I hadn't actually tried it in non-IE browsers with a CSV file before recommending it to you.

What I am recommending here with the fully qualified web url is to use it in conjunction with the runPCCommand() call.

This is sort of the way you were doing it before, except passing a fully qualified "http://" URL to the Excel executable.

I have tested this with Google Chrome, and it works perfectly. I'm using this code, for example:

Code: Select all


runPCCommand("\"%PROGRAMFILES%\\Microsoft Office\\Office12\\excel.exe\" \"http://MyiSeries:8080/myfile.csv\"");

RICHARD RUTA
Profound User
Posts: 40
Joined: Mon Apr 26, 2010 11:53 am
First Name: RICHARD
Last Name: RUTA
Company Name: WILLAM B. MEYER
Phone: 203.984.7175
Address 1: 255 LONG BEACH BLVD
City: STRATFORD
State / Province: Connecticut
Zip / Postal Code: 06615
Country: United States
Contact:

Re: Opening file on IFS

Post by RICHARD RUTA »

OK. Here's what I have:

var file = get("ExportFile"); var path = "\\program files\\microsoft office\\office12\\excel.exe http://11.103.41.99:8080/tiffs/" + file; alert(path); runPCCommand(path);

When I run this I get:

Unable to execute "\program files\microsoft office\office12\excel.exe http://11.103.41.99:8080/tiffs/boltst.csv".

TypeError

Object #<HTMLAppletElement> has no method 'runCommand'.

Please see attached
Attachments
skskssj.docx
(24.35 KiB) Downloaded 323 times
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Opening file on IFS

Post by David »

This type of message indicates that the Java Applet has not been loaded properly. When it's loaded, you'll see the Java icon in the Windows task bar.

To load the applet, you'll need to call the loadPCCommandApplet() function before you attempt to run commands on the PC.
RICHARD RUTA
Profound User
Posts: 40
Joined: Mon Apr 26, 2010 11:53 am
First Name: RICHARD
Last Name: RUTA
Company Name: WILLAM B. MEYER
Phone: 203.984.7175
Address 1: 255 LONG BEACH BLVD
City: STRATFORD
State / Province: Connecticut
Zip / Postal Code: 06615
Country: United States
Contact:

Re: Opening file on IFS

Post by RICHARD RUTA »

I am loading the applet. And it seems to load correctly. See above, where we started and I said the command worked.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Opening file on IFS

Post by David »

If you could attach your DDS source member here, we could have a look at the code to see if we can spot any problems...
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 12 guests