Thanks to all who've made suggestions.  What I finally ended up doing was
this.  I created a text trim field and added my mailto URL into it.  The
challenge I had was that the mailto is triggered from a button with an image
on it.  So what I did was lay the text field on top of the button.  But then
I had the problem of the ugly blue hyperlink text on top of my pretty
button.  So I changed the hypertext from something like "Click here" to a
string of underscores, like this: ______________________.

Then I STYLE property of the page properties and changed the color of the
hyperlink to the background color of my form.  With some precise
positioning, I placed the underscore directly under the text of my button,
and bam, done.  Works like a champ.

A kludge, yes, but 5.1.2 is pretty much just a shrink wrapped box of
kludges.

Norm

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black
Sent: Thursday, February 15, 2007 7:37 AM
To: [email protected]
Subject: Re: Mailto Link Alternative?

Norm,

How about using a special Mid-tier trick to call a Javascript
function? ( I think this was supported in v5.1.2's mid-tier.)

Make your existing active link only fire for the User Tool (UT) by
using the CLIENT-TYPE keyword. Then copy that active link to a new
Active Like that you make only fire for the Mid-tier. (just a
different value for CLIENT-TYPE) Next change the
"PERFORM-ACTION-OPEN-URL" into a "Run process" action that starts with
the string (javascript:), but do not use the parentheses. Then you
just need to add a Javascript function and append it's name to the Run
Process action.

So if you javascript function was called (openMailtoLink) then your
Run Process action would be (javascript:openMailtoLink();). Again, no
parentheses and I forget if the trailing semi-colen is needed or not.
You can also pass in parameters from ARS fields to the Javascript
functions if needed too.

Your javascript function would likely look something like this:

function openMailtoLink() {
    window.open('mailto:";, '_targetWindowName');
}

You can get that javascript function into the Mid-Tier Javascript in a
couple of ways. The most "broad way" is to add it to a BMC/Remedy
javascript file that your Mid-tier is already sending to the browser.
( Just make sure that you pick a function name that is not already
part of the Mid-Tier Javascript environment. Maybe make the function
name "eglin_af_mil_openMailtoLink". I doubt BMC/Remedy would have used
that as a name. :) And this approach would let you maintain it in one
place and have access to it on all ARS forms via the Mid-Tier. Just
remember it when you upgrade your Mid-Tier.

HTH

-- 
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap.... Pick two.


On 2/14/07, Kaiser Norm E CIV USAF 96 CG/SCWOE <[EMAIL PROTECTED]>
wrote:
> **
>
>
>
> Anyone have any ideas on how to open a mailto link without using
> PERFORM-ACTION-OPEN-URL? There's a bug in version 5.1.2 that isn't fixed
> until 6.3, but I need this to work...so anyone have any ideas for me to
> consider?
>
>
>
> Any ideas at all are much appreciated.
>
>
>
> Norm

____________________________________________________________________________
___
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