Tags:
create new tag
view all tags

Question

I am using the DBIQueryPlugin to pull some data from a pre-existing database. This works exactly as expected. Now, I would like to use an HTML select list to limit results of the query. This works fine with in the DBI query. However, when the page is submitted, the "state" of the HTML form is, of course, lost. I am looking for a way to set the "selected" value on a select list based on . However, I don't see a way to do this. Is a plugin needed for this?

Thanks, Sean

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: Defaults, NatSkin, DBIQueryPlugin
Server OS: MacOS 10.4.10
Web server: Apache 2.2
Perl version: 5.8.6
Client OS:  
Web Browser:  
Categories:  

-- SeanDavis - 26 Oct 2007

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 am not familiar with this plugin, but I assume this is the same for TWikiForms based applications: You have a choice how to remember picklist values.

1. List URL parameter value in first entry:

(nothing is selected)

2. Select pick-list value based on URL parameter value:

(nothing is selected)

-- PeterThoeny - 27 Oct 2007

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-10-27 - 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.