Tags:
create new tag
, view all tags

Question

I have a topic with a form and a corresponding search feature that returns results in a table. The search finds topics based on values entered into the form.
Does anyone know how I can initialise the form fields used by the search so that when the topic is first displayed, the search can find some initial results?

i.e.

 

%SEARCH{ search="%URLPARAM{"testmanager" multiple="on" separator="|" }%;%URLPARAM{"search"}%;%URLPARAM{"product" multiple="on" separator="|" }%;%URLPARAM{"feature" multiple="on" separator="|" }%" scope="text" regex="on"  web="Planning"  excludetopic="NewProjectTemplate, WebHome" casesensitive="on" nosearch="on" nototal="on" format="| [[$web.$topic][$topic]] | $formfield(testmanager) | $formfield(product) | $formfield(feature) | $formfield(release) | "}%

Is there anyway of initialising URLPARAM(testmanager) or any of the other form fields - without submitting the form?

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache
Perl version:  
Client OS: Windows
Web Browser: Explorer
Categories: Search

-- DavidBaker - 26 May 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

You could try using the default="any value" attribute for the URLPARAM variables.

-- LynnwoodBrown - 26 May 2006

That did the trick - thanks!

-- DavidBaker - 30 May 2006

 
Topic revision: r4 - 2006-05-30 - DavidBaker
 
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.