Why not just add the URL to a line of text on a button?

From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of William Rentfrow
Sent: Friday, October 10, 2014 3:16 PM
To: arslist@ARSLIST.ORG
Subject: Re: NOT SOLVED: PERFORM-ACTION-OPEN-URL to open internal network site

**
Disclaimer: I haven't messed around with this for a while, so it might take 
some tinkering.

Stuff below taken from here:

http://stackoverflow.com/questions/4679756/show-a-pdf-files-in-users-browser-via-php-perl

If you have PHP on your web server you can directly display a PDF doing 
something like this:

<?php
$file = './path/to/the.pdf';
$filename = 'Custom file name for the.pdf'; /* Note: Always use .pdf at the 
end. */

header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($file));
header('Accept-Ranges: bytes');

@readfile($file);
?>


William Rentfrow
wrentf...@stratacominc.com<mailto:wrentf...@stratacominc.com>
Office: 715-204-3061 or 701-232-5697x25
Cell: 715-498-5056

From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of JD Hood
Sent: Friday, October 10, 2014 1:47 PM
To: arslist@ARSLIST.ORG<mailto:arslist@ARSLIST.ORG>
Subject: Re: NOT SOLVED: PERFORM-ACTION-OPEN-URL to open internal network site

**
The last thing I want to do is muddy the issue, but this rings a faint bell 
about browser security.

It has been awhile and I can't recall the specifics, but maybe it will jog 
someone else's memory. It was something about trying to open a file on a local 
path that the browser (by default) viewed as malicious activity and either did 
nothing, or 404'd as a result.

It may not be applicable, but just in case.

-JDHood

On Fri, Oct 10, 2014 at 1:30 PM, Sinclair, Keith 
<ksincl...@shoppertrak.com<mailto:ksincl...@shoppertrak.com>> wrote:
**
Using the URL directly in Chrome does work, also in IE. However, trying to call 
it from an AL using the Perform…URL, etc. it doesn’t do anything. Driving me 
nuts…

Logs still are showing that AL fired:

ActiveLink Start:- ST:SI-OpenSiteOther | ST:SiteInformation/Default Admin View 
- Fri Oct 10 2014 12:25:25 PM ms 271
True actions:
action 0
Run Process: PERFORM-ACTION-OPEN-URL 
\\pwfil01\Public\IT<file:///\\pwfil01\Public\IT> HD\DocTest\S80039514.pdf
ActiveLink End:- ST:SI-OpenSiteOther | ST:SiteInformation/Default Admin View - 
Fri Oct 10 2014 12:25:25 PM ms 271
EVENT End:- Button/Menu Field |  Site Other(536870948)  | 
ST:SiteInformation/Default Admin View   Fri Oct 10 2014 12:25:25 PM


From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG<mailto:arslist@ARSLIST.ORG>] On Behalf Of LJ 
LongWing
Sent: Friday, October 10, 2014 11:56 AM
To: arslist@ARSLIST.ORG<mailto:arslist@ARSLIST.ORG>
Subject: Re: NOT SOLVED: PERFORM-ACTION-OPEN-URL to open internal network site

**
I just used the following url in chrome

file://server/share/something.log<file:///\\server\share\something.log>

if you try to specify the url in question, does it open manually?  What does 
the log show?

On Fri, Oct 10, 2014 at 10:43 AM, Sinclair, Keith 
<ksincl...@shoppertrak.com<mailto:ksincl...@shoppertrak.com>> wrote:
**
Never mind, I stand corrected. This will work in the client tool but I cannot 
get it to run in Chrome or IE10 for the life of me. IE10 does nothing. Chrome 
opens up a blank window. All browser settings have been reset back to stock and 
pop up blockers are completely off.

From: Sinclair, Keith
Sent: Friday, October 10, 2014 10:27 AM
To: arslist@ARSLIST.ORG<mailto:arslist@ARSLIST.ORG>
Subject: SOLVED: PERFORM-ACTION-OPEN-URL to open internal network site

I agree with Fred, as well.

Looks like the “file://” did the trick. I had forgotten that was an option for 
browsers. Now my battle is for the file location folder permissions as I tried 
it on a publicly accessible network directory/file and was able to open it, but 
not my original document.

From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of LJ LongWing
Sent: Friday, October 10, 2014 9:00 AM
To: arslist@ARSLIST.ORG<mailto:arslist@ARSLIST.ORG>
Subject: Re: PERFORM-ACTION-OPEN-URL to open internal network site

**
I agree with Fred

On Fri, Oct 10, 2014 at 7:54 AM, Sinclair, Keith 
<ksincl...@shoppertrak.com<mailto:ksincl...@shoppertrak.com>> wrote:
**
So, I have a button that fires an AL with Run Process: PERFORM-ACTION-OPEN-URL 
\\NETWORK\Public\Site<file:///\\NETWORK\Public\Site> Management\Site 
Documents\$Site ID$.pdf.

When I click on the button, nothing happens. The AL does fire, according to the 
logs.

If I change the OPEN-URL to http://www.msn.com, it works. The button opens up 
MSN in a new browser window.

From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG<mailto:arslist@ARSLIST.ORG>] On Behalf Of LJ 
LongWing
Sent: Friday, October 10, 2014 8:45 AM
To: arslist@ARSLIST.ORG<mailto:arslist@ARSLIST.ORG>
Subject: Re: PERFORM-ACTION-OPEN-URL to open internal network site

**
Keith,
We would need a bit more information, such as 'What happens' when you 
try....there should be no difference between an external and an internal 
web/document, as long as you are using the properly formatted url.

Have you run logs, what do they show.

On Fri, Oct 10, 2014 at 7:42 AM, Sinclair, Keith 
<ksincl...@shoppertrak.com<mailto:ksincl...@shoppertrak.com>> wrote:
**
Is there a way to open an internal document via the PERFORM-ACTION-OPEN-URL 
command? I have used this in the past and it worked but now I cannot get it to 
open a URL unless it’s an external website. If I try to open an internal link, 
the link appears to do nothing. Essentially, I am trying to achieve a link to a 
dynamic document repository. If there’s another way to do it, then I am all 
ears. I’ve tried multiple browsers but with the same results.

Stuff:
ARS 8.1
MT 8.1
Linux/Oracle backend.


Thanks,

Keith Sinclair
Remedy Development
ShopperTrak  Chicago USA
O:  312.676.8289<tel:312.676.8289> |  M:  630.946.4744<tel:630.946.4744>
ksincl...@shoppertrak.com<mailto:ksincl...@shoppertrak.com> | @shoppertrak
www.shoppertrak.com<http://www.shoppertrak.com/>

_ARSlist: "Where the Answers Are" and have been for 20 years_

_ARSlist: "Where the Answers Are" and have been for 20 years_
_ARSlist: "Where the Answers Are" and have been for 20 years_

_ARSlist: "Where the Answers Are" and have been for 20 years_
_ARSlist: "Where the Answers Are" and have been for 20 years_

_ARSlist: "Where the Answers Are" and have been for 20 years_
_ARSlist: "Where the Answers Are" and have been for 20 years_

_ARSlist: "Where the Answers Are" and have been for 20 years_
________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2014.0.4765 / Virus Database: 4037/8349 - Release Date: 10/08/14
_ARSlist: "Where the Answers Are" and have been for 20 years_

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to