On Tue, 30 Oct 2007 11:51:34 -0400
"Todd Williams" <[EMAIL PROTECTED]> wrote:
> Has anyone done anything similar to this? Can anybody offer some
> pointers, ideas, or thoughts? Any suggestions would be greatly
> appreciated.
>
we are currently implementing something like this (that is special
customfield with customised editor viewer). Approach, which seems to
work quite fine is adding new type of custom field (which will be used
only in one cf, but it gives us nice separation of code):
% cat local/lib/RT/CustomField_Local.pm
no warnings qw/redefine/;
package RT::CustomField;
$FieldTypes{ClCustID} = [
'Select multiple customers',
'Select one customer'
];
then, we create/add custom field to queue(s). As rt is using custom
field type for selecting which widget/componenet, so it is using:
local/html/Elements/EditCustomFieldClCustID
local/html/Elements/ShowCustomFieldClCustID
they were created based on one of default ones, with added additional
'helper' dropdowns and searches. They use some javascript/async
requests to fetch data from other systems and modify existing controls.
The only thing you have to keep in mind is that the value stored in
customfield is the one which is passed in
'<%$NamePrefix.$CustomField->Id%>-Value' field of form, so you have to
make sure it is filled with correct value.
Hope it helps.
--
Stanislaw Sawa
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch
today.
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com