Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Conditional text fields referencing database fields behave erratically | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | brh <brian> | ||||||
Component: | code | Assignee: | eric.savary | ||||||
Status: | CLOSED FIXED | QA Contact: | issues@sw <issues> | ||||||
Severity: | Trivial | ||||||||
Priority: | P3 | CC: | issues, orw | ||||||
Version: | OOo 1.0.1 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Attachments: |
|
Description
brh
2002-12-05 18:58:39 UTC
Created attachment 3926 [details]
Document demonstrating the problem
Reassigned to ES ES->AMA: Indeed! As described! I have no idea who can be responsible for this so a choose the nicest developper ever first :-) . . . OD (12.03.2003): accepted. Created attachment 5193 [details]
simple document also showing the defect
OD->OS 21.03.2003: Please take over. I attached document <testdoc.sxw>, which also shows the defect - follow the instructions at the beginning of the document. I already figured out that the database manager doesn't seem to reset the selection and the position, when its asked for the value of the identifier. There are at least two different problems. One is that when database data is merged into the document and a field update is done after that the database selection is not re-used. That problem is fixed. The other one is what is done after a document like the attached ConditionalTest.sxw is loaded and printed. Printing initiates an update of the fields. By evaluating the fields' expressions an access to the database takes place. As the database selection that created the document prior to saving it is not restorable the wrong data is used for the expressions. This could only be prevented by storing all accessed data from the database which is not a good idea ;-) Another possibility is to detect such missing database selection and providing an error message for it. Additionally locking of the fields could be provided that allows to print the document 'as is' without changing any of the fields and other expressions. Filed issue 12608 as enhancement, brh set as CC. The fix is contained in cws os7 in sw/source/ui/dbui/dbmgr.cxx os7 is available on so-cwsserv03, wntmsci9 and unxsols4.pro ES: verified in os7 verified All tasks are verified in OOo1.1 Beta2 |