Modify

Opened 15 months ago

Last modified 14 months 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:

Description

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 15 months ago by anonymous

  • Type changed from defect to enhancement

comment:2 Changed 14 months 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 14 months 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 14 months 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 14 months 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.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.