<!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">
Dear list, dear Emmanuel,<br>
<br>
today I used cpan (cpan -i RT::Extension::SearchResults::XLS) to
install SearchResults-XLS to one of our RT instances (RT v3.6.6,
Apache/2.2.3, Perl v5.8.8 on a SUSE Linux Enterprise Server 10).<br>
<br>
After that I got some error messages (see below my posting).<br>
Looks like RT::Handle::cmp_version is not known in RT 3.6.6 yet. As
small workaround it was sufficient, to comment out the condition in the
callback:<br>
% #if (RT::Handle::cmp_version( '3.8.1', $RT::VERSION ) > 0 ) {<br>
<a
href="<%$RT::WebPath%>/Search/Results.xls<%$QueryString%>">XLS</a><br>
% #}<br>
<br>
Maybe you can have a look at this. <br>
<br>
Best regards,<br>
Ben<br>
<br>
<br>
<table border="0" cellpadding="1" cellspacing="0">
<tbody>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>error:</b> </font></td>
<td align="left" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2">Undefined
subroutine &RT::Handle::cmp_version called at
/opt/rt3/share/html/Callbacks/Results-XLS/Search/Results.html/SearchActions
line 3.<br>
</font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>context:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>1:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2">% # Don't
display this callback if our RT Version contains the new ResultsView</font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>2:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2">% # AfterTools
Callback</font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>3:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><font
color="red">% if (RT::Handle::cmp_version( '3.8.1', $RT::VERSION )
> 0 ) {</font></font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>4:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><a
href="<%$RT::WebPath%>/Search/Results.xls<%$QueryString%>">XLS</a></font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>5:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2">% }</font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>6:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><%ARGS></font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>7:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2">$QueryString
=> undef</font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>...</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><br>
</td>
</tr>
</tbody>
</table>
</font></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>code stack:</b> </font></td>
<td align="left" nowrap="nowrap" valign="top"><font
face="Verdana, Arial, Helvetica, sans-serif" size="-2">
/opt/rt3/share/html/Callbacks/Results-XLS/Search/Results.html/SearchActions:3<br>
/opt/rt3/share/html/Elements/Callback:85<br>
/opt/rt3/share/html/Search/Results.html:94<br>
/opt/rt3/share/html/Search/Build.html:783<br>
/opt/rt3/share/html/autohandler:291<br>
</font></td>
</tr>
</tbody>
</table>
<br>
<div id="body">
<pre>Undefined subroutine &RT::Handle::cmp_version called at /opt/rt3/share/html/Callbacks/Results-XLS/Search/Results.html/SearchActions line 3.
</pre>
</div>
</body>
</html>