Topic Options
Rate This Topic
#36961 - 11/08/00 03:58 AM macro problem
zzg-problemmanagement-izb Offline
Stealth Member

Registered: 06/12/01
Posts: 30

Hi all,

I have a selection field, display type drop down list in my form.The
selection values are 1,2,3,4,5 and N. An acitve Link starts a macro on
button press. This macro copies the value of that field to a new request.
The problem is that the values are copied in a wrong way:
Value 1 is copied to 1
Value 2 is copied to 1
Value 3 is copied to 2
Value 4 is copied to 3
Value 5 is copied to 4
Value N is copied to 5
If I change the values to 11,21,31,41,51,N1 everything works correctly.
Any tips/ ideas would be apprechiated.

Environment
Server ARS 4.0.3
Sun Solaris
Oracle 8.05
Client Win NT 4.0
AR User 4.00.03 Patch 850

Thanks again

Martin

Informatik Zentrum Bayern GmbH & Co. KG.
Karolinenplatz 1
80333 München
* (089)2171-6939
* (089)2171-5383
* mailto:Martin.Hagen@izb.de
* http://www.izb.de





Top
#36962 - 11/09/00 01:35 AM Re: macro problem [Re: emoyer]
dave Offline
Stealth Member

Registered: 06/12/01
Posts: 79

On Wed, 8 Nov 2000 10:58:14 +0100, ZZG-Problemmanagement-IZB wrote:

Try wrapping with quotes. It is seeing the numeric value as a valid
enum value rather than the character value you want.

>**
>
>Hi all,
>
>I have a selection field, display type drop down list in my form.The
>selection values are 1,2,3,4,5 and N. An acitve Link starts a macro on
>button press. This macro copies the value of that field to a new request.
>The problem is that the values are copied in a wrong way:
>Value 1 is copied to 1
>Value 2 is copied to 1
>Value 3 is copied to 2
>Value 4 is copied to 3
>Value 5 is copied to 4
>Value N is copied to 5
>If I change the values to 11,21,31,41,51,N1 everything works correctly.
>Any tips/ ideas would be apprechiated.
>
>Environment
>Server ARS 4.0.3
>Sun Solaris
>Oracle 8.05
>Client Win NT 4.0
>AR User 4.00.03 Patch 850
>
>Thanks again
>
>Martin
>
>Informatik Zentrum Bayern GmbH & Co. KG.
>Karolinenplatz 1
>80333 Mnchen
>* (089)2171-6939
>* (089)2171-5383
>* mailto:Martin.Hagen@izb.de
>* http://www.izb.de
>
>
>
>

--
Regards

Dave Saville
Second star to the right and straight on 'til morning
(Capt. James T. Kirk quoting Peter Pan)





Top
#36963 - 11/09/00 03:36 AM AW: macro problem [Re: emoyer]
zzg-problemmanagement-izb Offline
Stealth Member

Registered: 06/12/01
Posts: 30

Hello Dave,
thanks for your idea, but wrapping with quotes will show the quotes in the
ticket, which is not very nice. A workaround would be changing the order to
N,1,2,3,4,5. The problem is that the old tickets are getting mixed up.

Martin


> **
>
>
>
> Try wrapping with quotes. It is seeing the numeric value as a valid
> enum value rather than the character value you want.
>
> >**
> >
> >Hi all,
> >
> >I have a selection field, display type drop down list in my form.The
> >selection values are 1,2,3,4,5 and N. An acitve Link starts a macro on
> >button press. This macro copies the value of that field to a new request.
> >The problem is that the values are copied in a wrong way:
> >Value 1 is copied to 1
> >Value 2 is copied to 1
> >Value 3 is copied to 2
> >Value 4 is copied to 3
> >Value 5 is copied to 4
> >Value N is copied to 5
> >If I change the values to 11,21,31,41,51,N1 everything works correctly.
> >Any tips/ ideas would be apprechiated.
> >
> >Environment
> >Server ARS 4.0.3
> >Sun Solaris
> >Oracle 8.05
> >Client Win NT 4.0
> >AR User 4.00.03 Patch 850
> >
> >Thanks again
> >
>
>





Top
#36964 - 11/09/00 04:12 PM Re: macro problem [Re: emoyer]
bottsg61 Offline
addict

Registered: 06/12/01
Posts: 434

Your problem is caused by how Remedy handles the selection fields. They're
actually stored as numbers and the macro is passing the numeric value. This
causes 0 to attempt to find itself in the menu. When that fails, it saves
the numeric. This correctly sets the value. The value 1 exists in the menu,
so it's looked up and saved as 0 (the position of the 1 in the menu.) The
remaining numbers fall prey to this as well.

Use dummy variables that are character or integer, depending on the desired
result, to hold or receive the pushed field.

example:
push fields: selection field to integer
submit filter copies the integer into the selection field which should
bypass
the menu lookup.


example 2 (if you only wanted the text value):
set fields: selection field to character
push the character field.


-----Original Message-----
From: ZZG-Problemmanagement-IZB
[mailto:ZZG-Problemmanagement-IZB@IZB.DE]
Sent: Thursday, November 09, 2000 4:36 AM
To: ARSLIST@LISTSERV.VISTAIT.COM
Subject: AW: macro problem

Hello Dave,
thanks for your idea, but wrapping with quotes will show the quotes in the
ticket, which is not very nice. A workaround would be changing the order to
N,1,2,3,4,5. The problem is that the old tickets are getting mixed up.

Martin


> Try wrapping with quotes. It is seeing the numeric value as a valid
> enum value rather than the character value you want.
>
>
> >Hi all,
> >
> >I have a selection field, display type drop down list in my form.The
> >selection values are 1,2,3,4,5 and N. An acitve Link starts a macro on
> >button press. This macro copies the value of that field to a new request.
> >The problem is that the values are copied in a wrong way:
> >Value 1 is copied to 1
> >Value 2 is copied to 1
> >Value 3 is copied to 2
> >Value 4 is copied to 3
> >Value 5 is copied to 4
> >Value N is copied to 5
> >If I change the values to 11,21,31,41,51,N1 everything works correctly.
> >Any tips/ ideas would be apprechiated.
> >
> >Environment
> >Server ARS 4.0.3
> >Sun Solaris
> >Oracle 8.05
> >Client Win NT 4.0
> >AR User 4.00.03 Patch 850
> >
> >Thanks again





Top


Moderator:  Matt Reinfeldt