Thanks!  I like the second selection box approach - it is a lot cleaner than
all those active links.  I did have to run SUBSTR() on the field. Otherwise,
I guess it was bringing in the ID thus causing an Arithmetic error.

Thanks again.
Alan

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:arsl...@arslist.org] On Behalf Of Carey Matthew Black
Sent: Monday, January 19, 2009 4:42 PM
To: arslist@ARSLIST.ORG
Subject: Re: Selection Field: Value vs. Alias Value?

Alan,

I realize you already found a solution... but I had already started
this... so .. I will send it anyway.

Ok... now that post defines what you are after... :)

You need to find the string value (in a string form) so that you can
pass the string out to an external integration. ( Sorry, but using a
URL to pass data has to be defined as an external integration in my
book. Even if the web site is the Mid-tier. Which RKM is not actually
the Mid-tier anyways. But that is another fish to fry in a different
thread.. :) )


One approach that I have seen people take...

Create a second selection field that does not have a difference
between the Alias and the Value values for the selection field. That
way you keep the two fields in sync at design time and at run time you
set the "no-alias" field with the current value from the "Alias" field
then you can use the "no-alias" fields value and get the "Value"
string your after. Note: You may have to set the "no-alias" selection
field to a character field too. (But that should just be a few actions
in one active link.

Another is to go to the DB with Direct SQL. ( It can be done, but I
would strongly suggest not going this route.) In the short term it
should work. However, Remedy (and now BMC) has never made any promise
of not changing the DB at anytime. So what may work now (at the SQL
level) may not work after a patch is installed, or a version upgrade
is done.

Yet another route... is to use the ARS API. I would think that a
Filter Plugin should be a very viable way to get at this information
with minimal effort... I do note however, that you did not specify
what AR Server version your using.... if it is >=7.1 then let me know
and I will whip up an example ARF for you for this function. It should
be very trivial to implement in the Java API, but I just can not
supply a C API plugin for you. ( I am thinking a method like
getSelectionValue(String Form, int fieldId, int selection_field_value)
Combine that with a Service call from an Active Link and there you go.
:)

Anyway.. hope some of that helps someone. :)

-- 
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 Mon, Jan 19, 2009 at 5:05 PM, Alan Blake <abl...@knowlysis.com> wrote:
> Makes sense.  Yes it was in a message action that I was seeing the Alias
> value being used.
>
> So this is for a RKM integration where you push values as URL params.  So
I
> need the active link to read in the "Value" of the selection field so I
can
> pass it as a URL param, not the "Alias value".
>
> Alan
>
> -----Original Message-----
> From: Action Request System discussion list(ARSList)
> [mailto:arsl...@arslist.org] On Behalf Of Carey Matthew Black
> Sent: Monday, January 19, 2009 2:57 PM
> To: arslist@ARSLIST.ORG
> Subject: Re: Selection Field: Value vs. Alias Value?
>
> Alan,
>
> I think your confusing yourself a bit.... but maybe not...
>
> Selection fields are just an integer value as far as work flow (Active
> Links, Filters, and Escalations) are concerned. However, to the user
> the field shows the Alias String (for the integer) when the user looks
> at the field and when you echo the fields value in a Message action.
>
> So .. maybe you could explain more about what you are trying to do and
> maybe some suggestion could be made for how to do that?
>
> --
> 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 Mon, Jan 19, 2009 at 4:34 PM, Alan Blake <abl...@knowlysis.com> wrote:
>> **
>>
>> I am trying to create a selection field that has a value different than
> the
>> alias value.  Basically, I want a Label and a Value.  I need to use the
>> value in an active link, but when I reference the selection value with
>> $template_type$ it returns the Label and not the value.
>>
>>
>>
>> Is this even an option on a selection field?
>>
>>
>>
>> Thanks.
>>
>> Alan

____________________________________________________________________________
___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are"

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

Reply via email to