Issue 76796

Summary: Illogical behaviour of Conditional Text Fields which are not being evaluated
Product: Writer Reporter: helgekraak <helge.kraak>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 680m210   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Please register with name "conditional_text_evaluation"
none
Mailmerge document none

Description helgekraak 2007-04-30 04:01:39 UTC
Please have a look on the attached files.

In the Writer document you see a table with several conditional text fields in
rows which are divided by "next dataset" fields, so that the conditional
textfields of every row are assigned to a different dataset in the database.

The table has 10 rows for 10 datasets but the mailmerge only gets 7 datasets
from the database, so the conditional text fields in the lower 3 rows are not
being evaluated. 

In the rows I use these two conditions rotationally:
First:
IF
conditional_text_evaluation.abfrage_testtabelle.varchar_ignorecase NEQ ""
THEN
filled
ELSE

Second:
IF
conditional_text_evaluation.abfrage_testtabelle.varchar_ignorecase EQ ""
THEN

ELSE
filled

As you will see in the lower 3 rows of the resulting mailmerge document after
the execution of the mailmerge it always shows "filled" though one of the
conditions has the "filled" term as the THEN condition and the other has it as
ELSE condition.

I think that in case some of the conditional text fields don't retrieve a
dataset to evaluate from the database due an insufficient number of datasets,
always the ELSE condition should be used.
Comment 1 helgekraak 2007-04-30 04:03:13 UTC
Created attachment 44767 [details]
Please register with name "conditional_text_evaluation"
Comment 2 helgekraak 2007-04-30 04:03:44 UTC
Created attachment 44768 [details]
Mailmerge document
Comment 3 helgekraak 2007-04-30 10:55:42 UTC
Maybe I was wrong saying it should be the ELSE value. Probably the fields not
evaluating a dataset should be left empty generally.
Comment 4 Oliver Specht 2007-06-06 12:39:07 UTC
Set target to OOo Later
Comment 5 Marcus 2017-05-20 11:22:33 UTC
Reset assigne to the default "issues@openoffice.apache.org".