Issue 49339

Summary: Writer used to fail if Base form includes macro and preview mode is "Document"
Product: Base Reporter: valdisvi <valdis.vitolins>
Component: codeAssignee: marc.neumann
Status: CLOSED FIXED QA Contact: issues@dba <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: 680m100   
Target Milestone: OOo 2.0.1   
Hardware: PC   
OS: Windows 2000   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
BookWorm database none

Description valdisvi 2005-05-16 12:51:56 UTC
Edit form in Base and add macro to it:
Tools-Macros-Organize Macros-OpenOffice.org
basic..-FormName-Standard-New-Module1. Write function e.g.:
Sub Main
  Print "test"
End Sub
Assign macro to form, e.g. Form..Events-After record
action...-Assign-FormName-Standard-Module1-Main-Ok-Ok-Save Form, Save Base.

Open form in view mode, press Enable Macros - get message:
The document FormName could not be opened.

Note, sometimes it works, but it isn't stable. Try to edit macro again, and
probably will get:
Error loading BASIC of document Module1,xml:
General Error
General input/output error
Comment 1 Frank Schönheit 2005-05-17 14:41:52 UTC
hmm, cannot reproduce. Can you attach a sample database?
Comment 2 valdisvi 2005-05-17 15:40:12 UTC
Created attachment 26238 [details]
BookWorm database
Comment 3 valdisvi 2005-05-17 15:42:58 UTC
See BOOKS form in attached database file.
Comment 4 Frank Schönheit 2005-05-18 11:21:25 UTC
Can reproduce, thanks! (also submitted issue 49441 and issue 49442, which I
encountered with your document :-\)

fs->oj:
There seems to be a timing problem with the document preview. In the database,
the preview mode is set to "Document". Now, when you double-click the "BookWorm"
form, it is loaded into the preview window, and (virtually at the same time)
opened for viewing. Those two operations seem to interfere.
Workaround: switch off document preview. Or just select the form, wait until its
preview is loaded, then double-click it.

Since this looks to the user like data loss ("Oh my god! I can't access my form
anymore, 10 hours of designing it are lost!" :), the issue qualifies for 2.0.1, IMO.
Comment 5 ocke.janssen 2005-05-20 13:49:33 UTC
The preview bug is fixed in cws dba201a. The other error is described in
http://www.openoffice.org/issues/show_bug.cgi?id=49582
Comment 6 ocke.janssen 2005-06-06 13:36:11 UTC
Please verify in cws dba201. Thanks.

re-open issue and reassign to msc@openoffice.org
Comment 7 ocke.janssen 2005-06-06 13:36:16 UTC
reassign to msc@openoffice.org
Comment 8 ocke.janssen 2005-06-06 13:36:21 UTC
reset resolution to FIXED
Comment 9 marc.neumann 2005-06-07 10:30:56 UTC
verified in cws dba201

Comment 10 Frank Schönheit 2005-07-12 10:50:15 UTC
re-opening issue to move it to another CWS (where it needs to be verified, again)
Comment 11 Frank Schönheit 2005-07-12 11:10:47 UTC
fixed in CWS dba201b
Comment 12 marc.neumann 2005-08-16 13:10:19 UTC
verified in cws dba201b
Comment 13 marc.neumann 2005-11-21 11:20:01 UTC
Hi,

this is fixed in the current master. The current master is available at
http://download.openoffice.org/680/index.html

I close this issue now.

Bye Marc