[rt-users] TicketObj->Id to string for html
Izz Abdullah
Izz.Abdullah at hibbett.com
Mon Mar 12 11:11:16 EDT 2012
<a href="https://ourRT/Ticket/History.html?id=".$id onClick="window.print();return false">Print Ticket Summary</a>
This is being displayed on the Display.html page. I am simply wanting to print, from the Display.html page, the corresponding History.html page.
Above this I had set $id = $TicketObj->id;
This does not play well in the print dialog, nothing is passed into the $id (at least as a string).
-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Thomas Sibley
Sent: Monday, March 12, 2012 10:08 AM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] TicketObj->Id to string for html
On 03/12/2012 10:56 AM, Izz Abdullah wrote:
> I’m trying to grab just the current ticket ID, for a print button
> above the ticket summary on the Display.html screen. I want this so
> that when the user clicks on the print button, it actually prints
>
> /History.html?id=<whatever the ticket ID is>.
>
> Either my Google is broken because I am not finding how to extract the
> last 5 characters of the URL, and / or I am having trouble putting the
> value of $TicketObj->Id as a string value. This is not a scrip, but
> rather a Callback. Any help is greatly appreciated.
You should really show what you're trying, since otherwise no one can point to where you've gone wrong.
I suspect you just want <% $TicketObj->Id %>
More information about the rt-users
mailing list