Suppose you want to Mail Merge and to insert a new field with a condition (insert → Field → more Fields → Functions → conditional text).
In the field "Condition": [testdb.Sheet1.Title]=="Engineer"
In the field "Then": Prof. Dr. Eng.
After printing the document, you should see the text Prof. Dr. Eng. if the condition is true. But it remains empty, because it contains several points. I tested it without points and it worked!
Steps to Reproduce:
1.insert → Field → more Fields → Functions → conditional text
2.In the field "Condition": [testdb.Sheet1.Title]=="Engineer"
3.In the field "Then": Prof. Dr. Eng.
4.Print the document and click yes when you see the dialog (Your document contains address database fields. Do you want to print a form letter?).
5.Open the exported file and see the results!
The field remains empty.
The text would be printed only if the field "Then" doesn't contain this points.
The inserted field should contain Prof. Dr. Eng.
User Profile Reset: No
Build ID: 1:5.2.7-1+deb9u4
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2;
Locale: en-US (en_US.utf8); Calc: group
Version: 18.104.22.168 (x64)
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard;
Gebietsschema: de-DE (de_DE); Calc:
Created attachment 146054 [details]
test case db
Created attachment 146055 [details]
test case document
it works if no dots are used...
Also reproduced in Version 22.214.171.124.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
(In reply to Xisco Faulí from comment #4)
> it works if no dots are used...
So it happens if more than one dot is used. Same behaviour with the else statement
I guess LibreOffice assumes if there's more than a dot the string points to a table in a database like we would do with test_case.Contacts.Title=="Engineer".
Obviously, as Prof. Dr. Eng. doesn't exist, it prints an empty string. My 2 cents...
@Jan-Marek, I thought you could be interested in this issue...
I could not open the attachments.
So what can I do now? Is not that a bug?
(In reply to Nawar Aldanaf from comment #8)
> I could not open the attachments.
i have no problems downloading the attachments.
maybe a problem with your internet connection/firewall ?
(In reply to Oliver Brinzing from comment #9)
> (In reply to Nawar Aldanaf from comment #8)
> > I could not open the attachments.
> i have no problems downloading the attachments.
> maybe a problem with your internet connection/firewall ?
No problem with internet/firewall . I have downloaded the file but it has been saved as "=_UTF-8_Q_test=5Fcase=2Eodb_=.txt" and when I open it, I only see Question marks
My guess is other people use it in documents to refer to a DB entry.
I don't know if spaces would be allowed but even if not this probably used to be an error, so making that a valid different case instead won't help much.
What happens if you escape the dots as \.? No idea if this is supported in these fields, but it would probably be a way to implement it and won't break documents. Or is there some other common escaping variant used in LO?
Or even ODF hase some specs, how this field should behave and be encoded or escaped.
Nothing happens if dot is scaped ( \. ). OTOH, spaces are accepted