Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel
Getting Custom Fields for a User
 

Index | Next | Previous | View Flat


leefm40 at yahoo

Apr 15, 2012, 11:59 AM


Views: 1137
Permalink
Getting Custom Fields for a User

Good Evening,

I'm trying to obtain the list of custom fields for the current user so that I can take certain decisions based on these values.

I've had a look at the code in 'Admin/Elements/EditCustomFields' and adapted (I think) accordingly but it's not returning any values:


I'd appreciate any assistance that you can offer. 

Here's the code of put into 'local/html/Callbacks/MyCallbacks/Ticket/Elements/EditCustomFields/MassageCustomFields'

---
<%$session{'CurrentUser'}->RealName%>
% while (my $CustomFieldObj = $CustomFields->Next) {
<% $CustomFieldObj->id %><% $CustomFieldObj->Name %><br />
%}

<%INIT>
  my $CustomFields = RT::CustomFields->new($session{'CurrentUser'});
  $CustomFields->UnLimit;
  $CustomFields->LimitToLookupType( $LookupType ) if $LookupType;
</%INIT>

<%ARGS>
  $LookupType => 'RT::Queue-RT::User'
</%ARGS>
---

Thanks in advance

Lee
--------
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Subject User Time
Getting Custom Fields for a User leefm40 at yahoo Apr 15, 2012, 11:59 AM
    Re: Getting Custom Fields for a User trs at bestpractical Apr 15, 2012, 12:07 PM
        Re: Getting Custom Fields for a User leefm40 at yahoo Apr 15, 2012, 12:21 PM
            Re: Getting Custom Fields for a User ruz at bestpractical Apr 16, 2012, 7:25 AM
    Re: Getting Custom Fields for a User leefm40 at yahoo Apr 16, 2012, 12:29 PM
        Re: Getting Custom Fields for a User ruz at bestpractical Apr 16, 2012, 2:15 PM
    Re: Getting Custom Fields for a User leefm40 at yahoo Apr 21, 2012, 2:30 PM
        Re: Getting Custom Fields for a User ruslan.zakirov at gmail Apr 21, 2012, 8:53 PM
    Re: Getting Custom Fields for a User leefm40 at yahoo Apr 22, 2012, 2:52 PM
        Re: Getting Custom Fields for a User falcone at bestpractical Apr 24, 2012, 9:38 AM
    Re: Getting Custom Fields for a User leefm40 at yahoo Apr 27, 2012, 11:38 AM
        Re: Getting Custom Fields for a User leefm40 at yahoo Apr 27, 2012, 11:41 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.