[rt-users] RE: Help with query and display

Schultz, Eric ESchultz at corp.untd.com
Thu Jan 12 11:07:54 EST 2006


Looking at the code for MyTickets, it appears you are mixing user/client
syntax with application/server syntax.  That is,  

<& /Elements/TicketList,
        Format => "'<a
href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__id__</a>TITLE:#',
'<a
href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__Subject__</a>/TITL
E:Subject',  __ExtendedStatus__, __DueRelative__, __Owner__",
        Query => $Query,
        OrderBy => 'id',
        Order => 'ASC',
        ShowNavigation => 0
        &>

Should have ExtendedStatus rather than __ExtendedStatus__, Owner rather
than __Owner__, etc.  

> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com 
> [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf 
> Of Dave Kettmann
> Sent: Thursday, January 12, 2006 7:37 AM
> To: Dave Kettmann; rt-users at lists.bestpractical.com
> Subject: [rt-users] RE: Help with query and display
> 
> Anyone? .. Bueller? .. This should be a simple fix I would think?
> 
> Dave
> 
> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com
> [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Dave
> Kettmann
> Sent: Wednesday, January 11, 2006 11:19 AM
> To: rt-users at lists.bestpractical.com
> Subject: [rt-users] Help with query and display
> 
> Hi all,
> 
> I'm trying to get a custom query to display on the main page 
> of RT. Here
> is the contents of the file ...
> 
> --<code>--
> 
> <&|/Elements/TitleBox,
>         title => loc('Pending Service Calls'),
>         title_href => "Search/Results.html".$QueryString &>
> <& /Elements/TicketList,
>         Format => "'<a
> href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__id__</a>
> /TITLE:#',
> '<a
> href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__Subject_
> _</a>/TITL
> E:Subject',  __ExtendedStatus__, __DueRelative__, __Owner__",
> 
>         Query => $Query,
>         OrderBy => 'id',
>         Order => 'ASC',
>         ShowNavigation => 0
>         &>
> </&>
> <%init>
> 
> my $Query = " Status = 'service' ";
> 
> my $QueryString = '?' . $m->comp('/Elements/QueryString',
>             Query => $Query,
>             Order => 'ASC',
>             OrderBy => 'id') if ($Query);
> 
> </%init>
> 
> --</code>--
> 
> All of the data displays except the Owner. I think I am just not
> referencing it by the right name. Any help is greatly appreciated...
> 
> Also, is there anywhere that I can find all of the possibilities for
> fields in a custom search?
> 
> Thanks,
> 
> Dave Kettmann
> NetLogic
> 314-266-4000



More information about the rt-users mailing list