Opened 4 years ago

Last modified 4 years ago

#11222 new enhancement

Populate drop down list from database

Reported by: cverdecchia@… Owned by: asic_druide
Priority: normal Component: WikiFormsPlugin
Severity: normal Keywords:
Cc: Trac Release:


Hello I would like to know if it's possible to populate a drop down list whit a query to the database.

Thanks in advice for your excellent work Carlo

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by anonymous

Type: defectenhancement

comment:2 Changed 4 years ago by anonymous

sorry i don't get the point. The WikiFormsPlugin is a kind of frontend to enter values into the database. What does "...populate a drop down list with a query to the database." mean in this context?

Yes, you might choose a value from a list and store the selected value in the trac db. Yes, you might query the selected value and fill it into a wiki page. No, the options to select from are hard coded in the checklist.

comment:3 Changed 4 years ago by anonymous

As an example: I installed the ClientsPlugin and I would like to select a client in a WikiForm from a drop down list filled with values readed from trac database instead that hardcoded in the WikiForm.

comment:4 Changed 4 years ago by anonymous

...duplicate lines 616:624 with new command (e.g. select_db) and create list of parameters from SQL query. Rest as it is.

comment:5 Changed 4 years ago by anonymous

Thanks for the reply, but I'm not able to program in python. If you think this is a good enhancement you could insert it in a new release?

In any way thanks for this great plugin.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain asic_druide.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.