[rt-users] Adding a CustomField to QuickCreate
John Stoffel
john.stoffel at taec.toshiba.com
Fri Jan 14 14:32:56 EST 2005
Does anyone know the trick to adding a custom field dropdown to the
/Elements/QuickCreate web form?
I'm trying to pull in and use the /Elements/SelectCustomFieldValue
code to use that to figure out which CustomField (I've got two
defined) to pull in.
My CustomField is just a bunch of location codes, so I'd like to be
able to put that into the QuickCreate script right up front.
I'm trying:
<td>
<font size="-1"><&|/l&>Location</&>:<br><&
/Elements/SelectCustomFieldValue, CustomField => 'Location', ShowNullOption => \
0 &></font>
</td>
But it's not working, it keeps throwing an exception back at me, as
shown below. I've tried using 'Name' => 'Location' instead, but the
same type of error.
Thanks,
John
John Stoffel - Senior Staff Systems Administrator - System LSI Group
Toshiba America Electronic Components, Inc. - http://www.toshiba.com/taec
john.stoffel at taec.toshiba.com - 508-486-1087
---------------------------------------------------------------------------
Subject:
Queue:
Location:
System error
error: Can't locate object method "Type" via package "Location" (perhaps you forgot to load "Location"?) at /var/lib/rt3/share/html/Elements/SelectCustomFieldValue line 47.
context:
...
43: %# those contributions and any derivatives thereof.
44: %#
45: %# }}} END BPS TAGGED BLOCK
46: <& /Elements/Callback, %ARGS &>
47: % if ($CustomField->Type =~ /Select/i) {
48: % my $values = $CustomField->Values;
49: <select name="<%$Name%>">
50: <option value="" SELECTED>-</option>
51: <option value="NULL"><&|/l&>(no value)</&></option>
...
code stack: /var/lib/rt3/share/html/Elements/SelectCustomFieldValue:47
/var/lib/rt3/local/html/Elements/QuickCreate:20
/var/lib/rt3/local/html/index.html:13
/var/lib/rt3/share/html/autohandler:221
raw error
More information about the rt-users
mailing list