Tags:
create new tag
, view all tags

Question

Why is formatted search not working?

Here is my search:

SEARCH{"VendorSupportForm[0-9].*" web="Sandbox" regex="on" scope="topic" $nototal="on" nosummary="on" nosearch="on" noheader="on" order="formfield(OS)" format="| $formfield(OS) | [[$topic]] | [[$username]] |" }
(I've left off the % symbol in the above)

This does return the matching topics:

AIX      VendorSupportForm2003-Jul-28-21:39?  PaulSue?  
Linux    VendorSupportForm2003-Jul-28-21:20?  PaulSue?  
Solaris  VendorSupportForm2003-Jul-28-20:52?  PaulSue?  
Windows  VendorSupportForm2003-Jul-28-21:29?  PaulSue?  
Number of topics: 4

But it doesn't display the topic and username as links!! If I don't use the format statement, then it displays the topic and user correctly as links:

VendorSupportForm2003-Jul-28-20:52  28 Jul 2003 - 20:52 - NEW  PaulSue  
VendorSupportForm2003-Jul-28-21:20  28 Jul 2003 - 21:21 - NEW  PaulSue  
VendorSupportForm2003-Jul-28-21:29  28 Jul 2003 - 21:30 - NEW  PaulSue  
VendorSupportForm2003-Jul-28-21:39  28 Jul 2003 - 21:40 - NEW  PaulSue  

What am I doing wrong??

Thanks!

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH Linux, 2.4.20-18.9
Web server: apache 2.0.40
Perl version: 5.8
Client OS: MS Windows 2000
Web Browser: IE 6

-- PaulSue - 28 Jul 2003

Answer

You search the Sandbox web, but it is not clear if the search is done in the Sandbox web or some other web. If another web you need to specify the $web in the format; you need to do that for $username as well (or use $wikiusername instead). As in:

format="| $formfield(OS) | [[$web.$topic][$topic]] | $wikiusername |"

-- PeterThoeny - 29 Jul 2003

Topic revision: r2 - 2003-07-29 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.