Hello,
I'm looking to extract the value of a list box on openoffice 2.2.
In my database, I have a table name City_List and that table has two columns: Code and City. I would like to use a text zone as indicator, to show the name of the city corresponding to the area code. As for example, there's a part of my table:
Code City
416 Toronto
514 Montreal
613 Kingston
A list box named ''Choosen_Code'' is showing the content of the column ''Code''. In the field ''Content'' of the ''Data'' tab of the text zone, I have written the following code:
SELECT City FROM City_List WHERE Code=514
The text zone shows Montreal... But now I would like to show the city corresponding to the value of the list box... in other language, I would have written:
SELECT Description FROM Ingredients WHERE Code=Choosen_Code.Value
But it doesn't work...
Any help would be appreciated...
Thanks a lot,
Ricardo
p.s.: I've started from installing MySQL on QNX (Unix), linked my Database with open office by of JDBC driver and now I can't move on cause I can't get the value of a list box... I can't believe it doesn't exist... I've looked for List Box options (get value, get position, get number of items,...) but couldn't find some.
Getting value from list box
Creating and using forms
Jump to
- Getting started
- ↳ Survival guide
- ↳ Beginners
- ↳ Getting Started Guide for 4.x
- ↳ Getting Started Guide for 3.x
- ↳ Install, Setup and Troubleshooting
- ↳ Admin Guide
- ↳ MS Windows
- ↳ Linux
- ↳ Mac OSX
- ↳ LibreOffice
- ↳ Tablets
- ↳ Tutorials
- ↳ Writer
- ↳ Calc
- ↳ Base
- Applications
- ↳ Writer
- ↳ Writer Guide for 4.x
- ↳ Writer Guide for 3.x
- ↳ Writer Tutorials
- ↳ Templates
- ↳ Advanced Uses
- ↳ Calc
- ↳ Calc Guide for 4.x
- ↳ Calc Guide for 3.x
- ↳ Calc Functions
- ↳ Calc Tutorials
- ↳ Impress
- ↳ Impress Guide for 4.x
- ↳ Impress Guide for 3.x
- ↳ Draw
- ↳ Draw Guide for 4.x
- ↳ Draw Guide for 3.x
- ↳ Math
- ↳ Math Guide for 4.x
- ↳ Math Guide for 3.x
- ↳ Math Guide for 3.x
- ↳ Base
- ↳ Base Guide for 4.x
- ↳ Wiki
- ↳ Base Tutorials
- ↳ Tables & Queries
- ↳ Forms
- ↳ External Data Sources
- ↳ Reporting
- ↳ Database Examples
- Customizing and Extending
- ↳ Macros and UNO API
- ↳ Basic Guide
- ↳ Code Snippets
- ↳ Extension Repository
- ↳ Macro Repository
- ↳ External Programs
- ↳ Extensions
- ↳ Extensions page
- Community
- ↳ General Discussion
- ↳ Site Feedback
- ↳ Forum Governance
- ↳ User Experience (UX)
- ↳ Announcements
- Business
- ↳ Institutions & Educational
- ↳ Paid support
- ↳ Consultants Directory