<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'm not quite out of the woods yet, as I've decided to spend time
trying to figure out rt's back end, such that checking and un-checking
a value will work. I could whip this up fairly quickly with javascript,
but where is the fun in that?<br>
<br>
That said, I would appreciate any help anyone can provide. I'm
currently poking around RT::ObjectCustomFieldValue_Overlay.pm<br>
<br>
-Joel<br>
<br>
Joel Schuweiler wrote:
<blockquote cite="mid:47CC8628.8050706@fonality.com" type="cite">
<pre wrap="">I personally did the following in my EditCustomFieldSelect (in my local dir)
<%method options>
% my $selected;
% my $CFVs = $CustomField->Values;
% my @levels;
% while ($CFVs and my $value = $CFVs->Next )
% {
% if ($CustomField->MaxValues == 0 )
% {
<input type="checkbox" style="border: none;"
value="<%$value->Name%>"
% if ($Values)
% {
<% $Values->HasEntry($value->Name) && ($$SelectedRef
= 1) && 'CHECKED' %>
% }
% elsif ($Default)
% {
<% (ref $Default ? (grep {$_ eq $value->Name}
@{$Default}) : ($Default eq $value->Name))
&& ($$SelectedRef = 1) && 'CHECKED' %>
% }
><% $value->Name%><br>
% }
% else
% {
<option value="<%$value->Name%>"
% if ($Values)
% {
<% $Values->HasEntry($value->Name) &&
($$SelectedRef = 1) && 'SELECTED' %>
% }
% elsif ($Default)
% {
<% (ref $Default ? (grep {$_ eq $value->Name}
@{$Default}) : ($Default eq $value->Name))
&& ($$SelectedRef = 1) && 'SELECTED' %>
% }
><% $value->Name%></option>
% }
% }
Todd Chapman wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Does this help?
<a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/pipermail/rt-users/2007-November/048774.html">http://lists.bestpractical.com/pipermail/rt-users/2007-November/048774.html</a>
On 3/2/08, Jan Grant <a class="moz-txt-link-rfc2396E" href="mailto:jan.grant@bristol.ac.uk"><jan.grant@bristol.ac.uk></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Sun, 2 Mar 2008, Todd Chapman wrote:
> This would be easy enough to do. There is a callback in 3.6 that lets
> you control what Mason component is used to render a custom field.
Can you supply some details, or a pointer to this?
--
jan grant, ISYS, University of Bristol. <a class="moz-txt-link-freetext" href="http://www.bris.ac.uk/">http://www.bris.ac.uk/</a>
Tel +44 (0)117 3317661 <a class="moz-txt-link-freetext" href="http://ioctl.org/jan/">http://ioctl.org/jan/</a>
...You're visualising the _duck_ taped over my _mouth_..?
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
<a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a>
Community help: <a class="moz-txt-link-freetext" href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a>
Commercial support: <a class="moz-txt-link-abbreviated" href="mailto:sales@bestpractical.com">sales@bestpractical.com</a>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at <a class="moz-txt-link-freetext" href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a>
</pre>
</blockquote>
<br>
</body>
</html>