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 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.

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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-05-30 - DavidBaker
 
  • 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.