Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian Testing
Web server: Apache 2
Perl version: Perl 5
Client OS: Windows 2000 and Windows XP
Web Browser: Firefox
Categories: Search

-- MervynWilson - 14 Nov 2006

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-11-19 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.