[rt-users] Display user custom fields in user list

Ruslan Zakirov ruz at bestpractical.com
Thu Nov 11 08:32:45 EST 2010


Josef,

Your question is unrelated to this thread. Start a new thread next time.

CustomFieldValues returns an object, not a hash. You use it when cf may have
multiple values. Otherwise use FirstCustomFieldValue method.

Regards, Ruslan. From phone.
2010 11 11 01:40 пользователь "Josef" <pepus at p-h-a.cz> написал:
> I have a simillar question,
> how could I display these user fields in a script? I have tried
> something like
>
> {$Ticket->CustomFieldValues('MyCustomField')}
> but it returns some hash...
>
> {$Ticket->MyCustomField}
> doesn't work as well
>
> Dne 11/10/10 5:03 PM, Emmanuel Lacour napsal(a):
>> On Wed, Nov 10, 2010 at 04:21:53PM +0100, Wolfram Huettermann wrote:
>>> Hi,
>>>
>>> I have a user list with the entries "id", "name", "real name" and
>>> "e-mail address". I have created a user custom field "hobbies" and
>>> I want to display it in that list as an additional column. How is it
>>> possible? What should I do?
>>>
>> on recent RT 3.8.8, you should be able to do this with configuration
>> variable %AdminSearchResultFormat.
>>
>> example to display CF "Test":
>>
>> Set(%AdminSearchResultFormat,
>> ...
>> Users =>
>> q{'<a
href="__WebPath__/Admin/Users/Modify.html?id=__id__">__id__</a>/TITLE:#'}
>> .q{,'<a
href="__WebPath__/Admin/Users/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
>> .q{,__RealName__, __EmailAddress__}
>> .q[, 'CF.{Test}'],
>> ^^^^^^^^^^^^^^^^^^
>> ...
>> );
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20101111/9ca7f6e1/attachment.htm>


More information about the rt-users mailing list