Data Source selection issue

Creating and using forms
Post Reply
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Data Source selection issue

Post by dalenielsen1 »

I have created a form, a customer list with drop downs for some fields such as date, city, zip, etc.
Then created new text document...data source table shows other fields such as name, address however the drop down fields showing only numbers (corresponding ID number). How do I get data source to show the drop down selections instead of the numbers?
Last edited by thomasjk on Tue Sep 17, 2019 7:19 pm, edited 1 time in total.
Reason: I split your post becasue you do not have the same problem as the original poster
OpenOffice 4 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Data Source selection issue

Post by Villeroy »

Unfortunately, the data source window shows only raw data from tables and queries.
If you need those data for a mail merge in Writer, you can create a query merging the required tables and then use that query for the mail merge.
Open the query designer, select the involved tables. Link the common fields (foreign keys and primary keys) by dragging a line between the column names. Then double-click the field names. Add alias names and sort orders if you want. The F5 key shows the resulting record set. Save the query under some name and save the database document. You will find the query in Writer's data source windo.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

thank you much for your response just to be clear you say "in Writer" what is this?
OpenOffice 4 on Windows 10
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

Open Office 4 windows 10
OpenOffice 4 on Windows 10
User avatar
robleyd
Moderator
Posts: 5082
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Data Source selection issue

Post by robleyd »

dalenielsen1 wrote:thank you much for your response just to be clear you say "in Writer" what is this?
Writer is the word processor component of Apache OpenOffice, which you can use in combination with a data source - e.g. database - to create a mail merge document.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

might you be able to walk me through this...Not sure you understand my problem how do I link O,1,2,3,4,5 etc to the actual slection on the form?...Why does it display only raw data or the numbers...are you sure you understand?
OpenOffice 4 on Windows 10
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

For instance, 0 would be attributed to Livermore as one of the dropdown box selections in the "City" Field on my form. Then "1"=Pleasanton;2=San Francisco3=Dublin;4=San Ramon;5=Danville etc. Why does it show the numbers instead of the city names?? I will try with w spreadsheet...just confirming that you understand my issue
OpenOffice 4 on Windows 10
User avatar
robleyd
Moderator
Posts: 5082
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Data Source selection issue

Post by robleyd »

I understand your issue but as I don't use Base I don't know the solution; I was responding to your question about Writer.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

I have a table for city a table for zip a table for square feet table of customer list(which shows numbers instead of the actual selections from the drop down boxes) Why would I, as you recommend, want to merge these tables...If you understand my problem, can you please walk me through the steps is if i was a caveman?
OpenOffice 4 on Windows 10
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

ok thank for answering a question i didnt have
OpenOffice 4 on Windows 10
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

Anybody else out there could help a cave man? better off with stone tablet sometimes...what good is having a convenient drop down box such as date,City,Zip code, etc. for instance on a form that I created, when you cant do a mail merge... unless you can...Anybody? Come on how do I change data source result from raw data numbers attributed to each drop down selection TO the actual selection itself?
OpenOffice 4 on Windows 10
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

how do I get table to reflect actual selections (from drop down box) from a created form and not raw data numbers attributed to each drop down selection?
OpenOffice 4 on Windows 10
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

anybody from apache out there?
OpenOffice 4 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Data Source selection issue

Post by Villeroy »

dalenielsen1 wrote:how do I get table to reflect actual selections (from drop down box) from a created form and not raw data numbers attributed to each drop down selection?
You can't. Tables and queries show raw data. List boxes belong to the realm of forms.
dalenielsen1 wrote:anybody from apache out there?
Nobody from Apache. This is a 100% user forum.
.If you understand my problem, can you please walk me through the steps is if i was a caveman?
Base is not for you. Forget it.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
UnklDonald418
Volunteer
Posts: 1548
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: Data Source selection issue

Post by UnklDonald418 »

how do I get table to reflect actual selections (from drop down box) from a created form and not raw data numbers attributed to each drop down selection?
You can't, in the realm of relational databases (databases with relationships between multiple tables) you must use queries as a data source for mailmerge. The query can make the substitutions to display text data from the linked table rather than the foreign key value stored in the primary table.
Designing a query requires knowledge of SQL and intimate details of the tables and relationships in the database.
It appears you don't have the SQL skills to design a working query so I suggest you upload a sample database so someone can help with the query design.
[Forum] How to attach a document here
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

thanks for the reply...yes I agree I dont have the SQL skills to design a querry esp not knowing what SQL is? SQL? anybody?
OpenOffice 4 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Data Source selection issue

Post by Villeroy »

SQL is what formulas are in spreadsheets. Most spreadsheet formulas return single values. Among other things, SQL statements select data sets from tables. They convert stored data into information.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
dalenielsen1
Posts: 12
Joined: Tue Sep 17, 2019 5:14 pm

Re: Data Source selection issue

Post by dalenielsen1 »

Standardized query language got it... anyone speak SQL? taught myself how to weld so this should be a piece of cake even for a caveman like me.
how hard could it be?
Boy o Boy love technology making life easier yay good job apache open office idiots as useless as Base and this forum
OpenOffice 4 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Data Source selection issue

Post by Villeroy »

Base has a query designer, a graphical tool which allows you to click together very simple SELECT statements. It chokes on slightly advanced ones. This might be simple enough.
Create new query in design view
Double-click involved tables
Drag lines between related table columns
Double-click columns from different tables.
There is a button toggle between graphical design and plain SQL text. The SQL looks like SELECT <various columns> FROM <various tables> WHERE X.A=Y.B AND Y.C=Z.D
Store query
Store database
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply