...on a related note, if you need to determine if a particular program
is installed you could use a Set Fields $PROCESS$.  

$zTmpField1$ = "C:\Program Files\DameWare Development\DameWare Mini
Remote Control\dwrcc.exe"

$zTmpField2$ = $PROCESS$ cmd.exe /c "if exist """$zTmpField1$""" (echo
Yes) else (echo No)"

The next Run If qualification would be:  'zTmpField2' LIKE "Y%"

You could use this to test for other browsers.

When users login and first load the startup form I test for the
existence of certain programs and versions, for example Excel, Outlook,
Remote Control, IE, etc.  I store the full path's in global fields so
that whenever I need a path to a program I only have to add the
particular global field to a new form.


Stephen

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Cleereman (IT)
Sent: Monday, January 22, 2007 10:36 AM
To: [email protected]
Subject: Re: Opening a new browser window

Thanks to all who replied to this.

To explain better what I was trying to do, we have a field that contains
a FedEx tracking number.  Management wanted to be able to have a user
click a link, and have just FedEx's basic tracking information appear
within a Remedy Dislpay Only form.  They also wanted the ability to copy
and paste as a table.

I created a small shell script called fedex:
        wget -O t1 -q --proxy
http://mobile.fedex.com/wince/tracking_query.xml?trackNumber=$1
        cat t1

(I chose http://mobile.fedex.com, as their interface is already quite
stripped down, and it changes very infrequently)

I was then able to perform the following Set Field for a View field:
        $PROCESS$ @@:/RMD/home/rmduow01/fedex $FedEx Tracking Number$

A few more Set Field Functions called within the same active link, as
viola, only the info we need, and everything looks pretty as it's now
formatted as a table similar to the following:
        Tracking No:        XXXXXXXXXXXX  
        Status:             Delivered  
        Shipping Date:      MM/DD/YYYY  
        Delivery Location:  ANYTOWN, OH  
        Delivery Date/Time: MM/DD/YYYY HH:MM  
        Signed By:          C.FARLEY
        Service Type:       FedEx XDay Service  

It was later requested that I add a link to this form, so that if a user
wanted to, they could easily  open the FedEx tracking page.

My preference was Michiel had suggested, to use a View field in a DO
form.  My preference did not win out, and it was decided that it should
open in a new window using a user's default browser, with all the trim.

Previously, when we'd only had Internet Explorer, I'd done links similar
to how Stephen suggested, such as:  
        "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
http://fedex.com/Tracking?tracknumbers=XXXXXXXXXXXX

Now that we have multiple browsers, this is trickier.  I ended up
combining Steve's suggestion with one from a coworker, and option C from
the original email.  I ended up using the following Set Field to detect
if "Reuse windows for launching shortcuts" is checked within Internet
Explorer:
        $PROCESS$ for /f "delims=x tokens=2" %f in ('reg query
"HKCU\Software\Microsoft\Internet Explorer\Main"^|find
"AllowWindowReuse"') do @echo %f

If a 0 is returned, I then use option C from a hidden button, and then
unhide the button.  This allows the FedEx site to open in new tab in IE7
or Opera, or a new windows in IE6.

If a 1 is returned, I append the following to the HTML inside the View
field:
        <a href="http://fedex.com/Tracking?tracknumbers=XXXXXXXXXXXX";
target="_blank">URL name</a>

This forces the link to open in a new browser window.

Thanks again all,

Eric Cleereman


-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] Behalf Of Heider, Stephen
Sent: Thursday, January 18, 2007 7:42 AM
To: [email protected]
Subject: Re: Opening a new browser window


The way I do it here is to run IE's .exe with the URL in a Run Process.
 
"C:\Program Files\Internet Explorer\IEXPLORE.EXE"  http:\\google.com
 
This opens the URL in a new window.
 
Stephen

________________________________

From: Action Request System discussion list(ARSList) on behalf of
Michiel Beijen
Sent: Thu 1/18/2007 6:44 AM
To: [email protected]
Subject: Re: Opening a new browser window


** Hi Eric,

I do not know what your users are supposed to be using their browsers
for, but one option might be is to create a Remedy DO form with a View
field on it with the URL you want and open this using workflow. Now you
can control how this will open. This might be a solution if you only
want them to be on one site and the drawback is that there is no
navigation available (back button and stuff like that). 

Kind regards,

Michiel


On 1/17/07, Eric Cleereman (IT) <[EMAIL PROTECTED] > wrote: 

        ** 

        Hi All, 

        A majority of my users using WUT 6.3 with assorted patches.
They have a mix of browsers, including Internet Explorer and Opera in
assorted versions.  They are all using Windows 2000, XP, or 2003. 

        I am looking to create an Active Link which will open a specific
URL in the user's default browser, in a new Window. 
        I've tried the following Run Processes: 

                A) PERFORM-ACTION-OPEN-URL new http://$URL$ 

                B) cmd /c start http://$URL$ 

                C) rundll32 url.dll,FileProtocolHandler http://$URL$ 

                D) explorer "http://$URL$"; 

        The problem I run into is within Internet Explorer.  There is a
setting under Options \ Advanced for Reuse windows for launching
shortcuts.  This is checked by default.  If it is checked, options A - C
all open in an existing browser window if one exists.  Option D does
work, but it open the new window behind the WUT. 

        I've Googled the heck out of this, and have not found any real
good answer.  Does anyone have a way to force remedy to open a specific
URL from within Remedy, by opening a new window in the user's default
browser? 

        Eric Cleereman 

        

        __20060125_______________________This posting was submitted with
HTML in it___ 


__20060125_______________________This posting was submitted with HTML in
it___ 

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to