Question
I am using a formatted search in a topic to filter out some entries where the issue we are dealing with is closed.
My search string is
%SEARCH{"ProjectP" format="$percntCALC{$IF($EXACT($formfield(
IssueStatus),IssueOpen), |
$topic | $summary(40) |,)}$percnt" regex="on" }%
This works very well except when a user puts a comma in the first 40 characters of the topic, if this happens the search output table really gets messed up.
Is there a setting to fix this or is it some sort of bug like feature?
Environment
--
MervynWilson - 14 Nov 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
I guess that that the comma will end the IF statement so you don't get the final | on the table. You could try reversing your logic so that you do a IF NOT EXACT so the , doesn't act as the divider between the THEN and ELSE part of the IF statement. Another thought you could try is using the
RecursiveRenderPlugin and try enclosing the summary with the
<render> </render>
tags. Hope one of these work.
--
RickMach - 18 Nov 2006
Rick diagnosed the problem properly, reversing the IF should fix it.
--
PeterThoeny - 19 Nov 2006