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

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:
Topic revision: r2 - 2007-10-27 - 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.