Simple mathematic operations on search results

Hi,

I’d like to do simple mathematic operations on the results page of a
search. The operation would be e.g. field1 + field2 = new_field3. Has
anyone done something like this before? If this is not possible, can it
be easily done using custom fields and a scrip? Any examples would be
appreciated!

Thanks.

Mattias Nordstrom
CTO
Oy Realnode Ab

nordstrom@realnode.com
www.realnode.com

Hi,

I’d like to do simple mathematic operations on the results page of a
search. The operation would be e.g. field1 + field2 = new_field3. Has
anyone done something like this before? If this is not possible, can it
be easily done using custom fields and a scrip? Any examples would be
appreciated!

Thanks.

Mattias Nordstrom
CTO
Oy Realnode Ab

nordstrom@realnode.com
www.realnode.com

Hi,

I’d like to do simple mathematic operations on the results page of a
search. The operation would be e.g. field1 + field2 = new_field3. Has
anyone done something like this before? If this is not possible, can it
be easily done using custom fields and a scrip? Any examples would be
appreciated!

Thanks.

Mattias Nordstrom
CTO
Oy Realnode Ab

nordstrom@realnode.com
www.realnode.com

Hi,

I’d like to do simple mathematic operations on the results page of a
search. The operation would be e.g. field1 + field2 = new_field3. Has
anyone done something like this before? If this is not possible, can it be
easily done using custom fields and a scrip? Any examples would be appreciated!

Thanks.

Mattias Nordstrom
CTO
Oy Realnode Ab

nordstrom@realnode.com
www.realnode.com

Sorry about the duplicates, my client said there was an error sending.

Mattias Nordstrom
CTO
Oy Realnode Ab

nordstrom@realnode.com
www.realnode.com

Greetings,

I suggest that you take a look at
http://wiki.bestpractical.com/index.cgi?EditCustomFieldsOnUpdate . It
utilizes callback. This method requires you to create a customfield
called new_field3(as indicated in your email).
Look closely at the ‘BeforeDisplay’ portion of it because you may want
to do your things there. ‘BeforeDisplay’ is called with the arguments
TicketObj, Tickets and ARGSRef.

AnthonyOn Wed, 30 Mar 2005, Mattias Nordstrom wrote:

Hi,

I’d like to do simple mathematic operations on the results page of a
search. The operation would be e.g. field1 + field2 = new_field3. Has
anyone done something like this before? If this is not possible, can it be
easily done using custom fields and a scrip? Any examples would be appreciated!

Thanks.


Mattias Nordstrom
CTO
Oy Realnode Ab

nordstrom@realnode.com
www.realnode.com


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Administrator and Developer training is coming to your town soon! (Boston, San Francisco, Austin, Sydney) Contact training@bestpractical.com for details.

Be sure to check out the RT Wiki at http://wiki.bestpractical.com