Issue 19444 - Hidden Paragraph does not hide missing field
Summary: Hidden Paragraph does not hide missing field
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: jack.warchold
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks: 19568
  Show dependency tree
 
Reported: 2003-09-11 13:25 UTC by phillg
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
labels with extra field Company that's not part of data source (6.33 KB, application/octet-stream)
2003-09-11 13:28 UTC, phillg
no flags Details
data source to set up use with labels (after Exchange Database) (5.79 KB, application/octet-stream)
2003-09-11 13:30 UTC, phillg
no flags Details
Data Source (5.18 KB, application/octet-stream)
2003-09-14 21:48 UTC, phillg
no flags Details
Merge Document with Hidden Paragraphs (5.32 KB, application/octet-stream)
2003-09-14 21:49 UTC, phillg
no flags Details
Result of Mail Merge (5.34 KB, application/octet-stream)
2003-09-14 21:49 UTC, phillg
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description phillg 2003-09-11 13:25:04 UTC
Open a new labels file and insert in many mail merge fields.  Use the hidden
paragraph function with the condition Not(Field) to hide all lines in case they
are empty.  After testing the mail merge use Edit > Exchange Database to change
the source of the document to a second data source (with the same field names
bar one) and then perform the mail merge.  The field that is not present in new
data source is printed as a blank line, rather than hiding it.

In the example labels below if you create a data source with the field names
{Forename, Surname, Address1-4, Postcode} and leave out Company, you can open
the labels file and perform the mail merge.  As the field Company does not exist
it should be hidden as the hidden paragraph function is set to not(Company)
which is true.  Instead it appears as a blank line.

This did work fine under 1.0 and has only come to light as the hidden functions
have been broken since beta1 until RC4.  I think this warrants inclusion before
the 1.1 release.
Comment 1 phillg 2003-09-11 13:28:09 UTC
Created attachment 9199 [details]
labels with extra field Company that's not part of data source
Comment 2 phillg 2003-09-11 13:30:58 UTC
Created attachment 9200 [details]
data source to set up use with labels (after Exchange Database)
Comment 3 jack.warchold 2003-09-12 10:24:55 UTC
please do not set an issue to new without any QA member confirmed it

reassigned to jw
Comment 4 jack.warchold 2003-09-12 10:25:24 UTC
set target to OOo later
set prio to P3
Comment 5 phillg 2003-09-14 20:06:06 UTC
Jack:  I was a previous QA member but have been working solely under
the DBA side of things for quite a while now.  I had confirmed this
issue on several different machines and installs, forgot to add that,
Sorry.
Comment 6 phillg 2003-09-14 20:34:11 UTC
Confirmed as working under OOo 1.0

Now part of tracker bug 19568
Comment 7 phillg 2003-09-14 21:42:14 UTC
This issue can also make the field appear as <Field> on the result of
the mail merge, rather than just a blank line.

Adding new data source with 6 columns, but column Four has already
deleted (a common occurence).  Use the second merge document to
perform the mail merge and you can see more clearly what happens even
though there is a hidden paragraph on the line when column Four was
supposed to be printed.
Comment 8 phillg 2003-09-14 21:48:23 UTC
Created attachment 9312 [details]
Data Source
Comment 9 phillg 2003-09-14 21:49:03 UTC
Created attachment 9313 [details]
Merge Document with Hidden Paragraphs
Comment 10 phillg 2003-09-14 21:49:23 UTC
Created attachment 9314 [details]
Result of Mail Merge
Comment 11 eric.savary 2003-09-15 16:47:57 UTC
I can't reproduce the "blank line effect" (OOo 1.1 RC4).
I see <Company> or <Four> (depending on your sample docs).
In those cases the placholder <Company> IS the content of the field
which is then not empty anymore and is displayed occordingly. 
To make this disappear, you'd have to write the condition:
'not(Company) OR <Company>'
Comment 12 jack.warchold 2004-09-16 12:40:31 UTC
closing