Populate Custom Field with autocomplete

I have set up small incident tracking system with RT 4.2.

Custom fields with autocomplete is used to document at what site the
incident occurred and when resolved what pice of hardware was the cause.

Setting up the fields only lets me add possible sites and units in a static
list, in my view this should be a dynamic list based on the values earlyer
used for this field.

Shouldn’t this be a simple choise in the setup?
Do you have to write your own module just for this?

I have started the modules, but my perl skills and google fail to deliver a
concrete answer, so I turn to you :slight_smile:

Based on the example with the Groups.pm file I get it to use the group list
as suggestions, but changing that code to get values from the fields beats
me…

Hacking away guided by google has brougth me to changing:

my $groups = RT::Groups->new( $self->CurrentUser );
$groups->LimitToUserDefinedGroups;

to:

my $groups = RT::CustomFieldValues->new( $self->CurrentUser );
$groups->LimitToCustomField;

But I get no elemets back from this.
So, how far off am I?

Regards

View this message in context: http://requesttracker.8502.n7.nabble.com/Populate-Custom-Field-with-autocomplete-tp60871.html