Given a Calc spreadsheet:
Sheet name is: N-A, only one sheet
Column names are: Last, First, Street, City, ST, ZIP, Spouse, SpYN
In Writer, use File->New->Database, Connect to an existing database (spreadsheet), <pick spreadsheet>, Register but do not open, name the database ALS and save it.
File->New->Labels added fields from the database in the order below
First Last
Street
City, State ZIP
Synchronize content is active
1st attempt - View->Field Names active
Positioned cursor between the First and Last field adding a space before and after, Insert->Field->Other, Functions tab, Conditional text
Condition: (Typed in as simple text) ALS.N-A.Spouse!=""
Then: and ALS.N-A.Spouse
Else: (nothing)
Click Synchronize Labels
Print to file and get: Charlie and ALS.N-A.SpouseAdler ...
Second attempt - View->Field Names not active, added field Spouse to the field list, copied the field itself
Positioned cursor between the First and Last field adding a space before and after, Insert->Field-Other, Functions tab, Conditional text
In Condition I pasted the copied field and it appeared as <Spouse>, added !="" (no intervening spaces)
Condition: and <Spouse> where <Spouse> is the pasted field
Click Synchronize Labels
Ctrl-P, click Yes, select file (supply unique name) and get: Charlie and <Spouse> Adler
Third attempt - View->Field Names active, copied field from initial screen before clicking new Document
Positioned cursor between the First and Last field, Insert->Field-Other, Functions tab, Conditional text
In Condition I pasted the copied field and it appeared as <ALS.N-A.0.Spouse>, added !="" (no intervening spaces)
Condition: and <Spouse> where <Spouse> is the pasted field
Click Synchronize Labels
Ctrl-P, click Yes, select file (supply unique name) and get: Charlie Adler
Fourth attempt - Synchronize contents not active
View->Field Names active, copied field from top-left label
Positioned cursor between the First and Last field, Insert->Field-Other, Functions tab, Conditional text
In Condition I pasted the copied field and it appeared as <Spouse>, added !="" (no intervening spaces)
Condition: and <Spouse> where <Spouse> is the pasted field
Manually inserted the Conditional text in each label
Ctrl-P, click Yes, select file (supply unique name) and get: Charlie and <Spouse>Adler
Fifth attempt, try File->New->Text document
Insert fields manually in the same format as the labels (including the conditional text)
Print and get Charlie and <Spouse>Adler
I also tried NEQ instead of !=, same result. Per https://forum.openoffice.org//en/forum/ ... base+field this feature should work, what haven't I tried?
