How to find possible values for an object

I’m not a Perl programmer and the documentation for RT isn’t very friendly
for folks like me. I’m trying to put the ticket owner’s full name in a
template, for example, and I can’t find anything that tells me what the
possible values are for {$Ticket->OwnerObj}. I did see a snippet that used
{$Ticket-OwnerObj->Name} but that displays just the username, not the full
name.

Aside from needing to resolve that specific problem, is there a way a
non-Perl-person can find what values are possible for other objects, as
well?

Thanks, I know this is such a noob question, but I’m stumped.
-Rick

View this message in context: http://requesttracker.8502.n7.nabble.com/How-to-find-possible-values-for-an-object-tp56324.html

I’m not a Perl programmer and the documentation for RT isn’t very friendly
for folks like me. I’m trying to put the ticket owner’s full name in a
template, for example, and I can’t find anything that tells me what the
possible values are for {$Ticket->OwnerObj}. I did see a snippet that used
{$Ticket-OwnerObj->Name} but that displays just the username, not the full
name.

OwnerObj is an RT::User, so you have all methods available here:

http://www.bestpractical.com/docs/rt/4.2/RT/User.html

(You wan’t ->RealName here).

Aside from needing to resolve that specific problem, is there a way a
non-Perl-person can find what values are possible for other objects, as
well?

Each object have a corresponding .pm file in lib/RT/ (User.pm,
Ticket.pm, …).

You can do “perldoc lib/RT/…pm” to see available methods or use the
online documentation above)

Easter-eggs Spécialiste GNU/Linux
44-46 rue de l’Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com

Thanks! I guess the trick is for me to learn how to navigate the
documentation. It probably makes perfect sense to a Perl programmer or
more experienced RT user - I didn’t even make that connection, though. I
appreciate it!

-RickOn 1/17/2014 7:38 AM, Emmanuel Lacour [via RequestTracker] wrote:

On Thu, Jan 16, 2014 at 12:21:54PM -0800, rwzoerner wrote:

I’m not a Perl programmer and the documentation for RT isn’t very
friendly
for folks like me. I’m trying to put the ticket owner’s full name in a
template, for example, and I can’t find anything that tells me what the
possible values are for {$Ticket->OwnerObj}. I did see a snippet
that used
{$Ticket-OwnerObj->Name} but that displays just the username, not
the full
name.

OwnerObj is an RT::User, so you have all methods available here:

RT::User - RT 4.2.17 Documentation - Best Practical

(You wan’t ->RealName here).

Aside from needing to resolve that specific problem, is there a way a
non-Perl-person can find what values are possible for other objects, as
well?

Each object have a corresponding .pm file in lib/RT/ (User.pm,
Ticket.pm, …).

You can do “perldoc lib/RT/…pm” to see available methods or use the
online documentation above)


Easter-eggs Spécialiste GNU/Linux
44-46 rue de l’Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:[hidden email] </user/SendEmail.jtp?type=node&node=56336&i=0>


If you reply to this email, your message will be added to the
discussion below:
http://requesttracker.8502.n7.nabble.com/How-to-find-possible-values-for-an-object-tp56324p56336.html

To unsubscribe from How to find possible values for an object, click
here
http://requesttracker.8502.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=56324&code=cmlja0B6b2VybmVyLmNvbXw1NjMyNHwtMTczNDEzOTU5OQ==.
NAML
http://requesttracker.8502.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html!nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers!nabble%3Aemail.naml-instant_emails!nabble%3Aemail.naml-send_instant_email!nabble%3Aemail.naml

View this message in context: http://requesttracker.8502.n7.nabble.com/How-to-find-possible-values-for-an-object-tp56324p56340.html