[rt-users] Update fields when 'refreshing' home page
rt at viewbankrise.net.au
rt at viewbankrise.net.au
Mon Aug 4 05:47:52 EDT 2008
> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com
> [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf
> Of rt at viewbankrise.net.au
> Sent: Monday, 4 August 2008 6:07 PM
> To: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] Update fields when 'refreshing' home page
>
> OK, so I added this to /Elements/MyRT:
>
> my $TicketObj = LoadTicket($id);
> my $CustomFields = $TicketObj->QueueObj->TicketCustomFields();
>
> # Now let callbacks have a chance at editing %ARGS
> $m->comp('/Elements/Callback', TicketObj => $TicketObj,
> CustomFields => $CustomFields, ARGSRef => \%ARGS);
>
> my @results = ProcessTicketBasics(TicketObj => $TicketObj,
> ARGSRef => \%ARGS); my @cf_results =
> ProcessObjectCustomFieldUpdates(Object
> => $TicketObj, ARGSRef => \%ARGS); push (@results, @cf_results);
>
> Inside <%INIT></%INIT>, and this at the bottom:
>
> <%ARGS>
> $id => 1
> </%ARGS>
>
> I'm assuming that this $id => 1 is a default value where none
> is specified, but either way I can't make any change to the
> ticket defined in the url query or even ticket #1 with:
>
> http://rt.mydom.com/rt/index.html?id=5&priority=6
>
> I can be certain that the code is being properly applied,
> because if I try to set that default $id to something that
> dos not exist, rt throws an error.
>
> Any guidance is most appreciated/
>
> Regards, Mike.
>
> > -----Original Message-----
> > From: rt-users-bounces at lists.bestpractical.com
> > [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of
> > rt at viewbankrise.net.au
> > Sent: Monday, 4 August 2008 2:23 PM
> > To: rt-users at lists.bestpractical.com
> > Subject: [rt-users] Update fields when 'refreshing' home page
> >
> > Hi all.
> >
> > How can I make the queue change when opening the home page,
> >
> > Ie, I can do this OK:
> >
> > http://rt.mydom.com/rt/Ticket/Modify.html?id=1&Object-RT::Tick
> > et-1-CustomFie
> > ld-7-Values=LB15&Object-RT::Ticket-1-CustomField-8-Values=Setup
> >
> > I want to also do this:
> >
> > http://rt.mydom.com/rt/?id=1&Object-RT::Ticket-1-CustomField-7
> > -Values=LB15&O
> > bject-RT::Ticket-1-CustomField-8-Values=Setup
> >
> > In Modify.html, I see this:
> >
> > -----------------------------------
> > my $TicketObj = LoadTicket($id);
> > my $CustomFields = $TicketObj->QueueObj->TicketCustomFields();
> >
> > # Now let callbacks have a chance at editing %ARGS
> > $m->comp('/Elements/Callback', TicketObj => $TicketObj,
> CustomFields
> > => $CustomFields, ARGSRef => \%ARGS);
> >
> > my @results = ProcessTicketBasics(TicketObj => $TicketObj,
> ARGSRef =>
> > \%ARGS); my @cf_results = ProcessObjectCustomFieldUpdates(Object =>
> > $TicketObj, ARGSRef => \%ARGS); push (@results, @cf_results);
> > -----------------------------------
> >
> > I suppose that I can add this code to the default home script, but
> > where is that script? Am I on the right track here? :-}
> >
> > Any advice or suggestions most appreciated
> >
> > Thanks, regards, Mike.
> >
> > _______________________________________________
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >
> > Community help: http://wiki.bestpractical.com Commercial
> > support: sales at bestpractical.com
> >
> >
> > Discover RT's hidden secrets with RT Essentials from
> O'Reilly Media.
> > Buy a copy at http://rtbook.bestpractical.com
> >
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com Commercial
> support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
More information about the rt-users
mailing list