[rt-users] How do I determine the value of a group custom field?
David Young
davidy at funkypenguin.co.za
Fri Sep 30 04:21:14 EDT 2005
Thanks very much!
For future reference, I did it like this:
my $values = $Group->CustomFieldValues('my_custom_field_name');
while (my $value = $values->Next) {
$content = $value->Content;
}
- David
-----Original Message-----
From: Ruslan Zakirov [mailto:ruslan.zakirov at gmail.com]
Sent: 27 September 2005 10:08 PM
To: David Young
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] How do I determine the value of a group custom
field?
On 9/26/05, David Young <davidy at funkypenguin.co.za> wrote:
> Hi guys :)
>
> I'm trying to write some code, to go through my groups, and pull out
> each group name, along with the values of two group custom fields...
> and I'm stuck on how to get the custom field values :(
>
> Here's what I've got so far:
>
> -----------
> % use RT::Groups;
> % my $Groups = new RT::Groups($session{'CurrentUser'});
>
> % $Groups->LimitToUserDefinedGroups();
> % while(my $Group = $Groups->Next) {
>
> <tr>
> <td><% $Group->Name %></td>
See Record.pm, custom fields code now is generic and find lib | xargs grep
'^sub.*CustomField'
> -----------
>
>
>
> Thanks! :)
> - David
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
>
> Buy your copy of our new book, RT Essentials, today!
>
> Download a free sample chapter from http://rtbook.bestpractical.com
>
--
Best regards, Ruslan.
More information about the rt-users
mailing list