Issue 49339 - Writer used to fail if Base form includes macro and preview mode is "Document"
Summary: Writer used to fail if Base form includes macro and preview mode is "Document"
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: 680m100
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: OOo 2.0.1
Assignee: marc.neumann
QA Contact: issues@dba
Depends on:
Reported: 2005-05-16 12:51 UTC by valdisvi
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

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

BookWorm database (67.56 KB, application/vnd.sun.xml.base)
2005-05-17 15:40 UTC, valdisvi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description valdisvi 2005-05-16 12:51:56 UTC
Edit form in Base and add macro to it:
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 :-\)

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
Comment 6 ocke.janssen 2005-06-06 13:36:11 UTC
Please verify in cws dba201. Thanks.

re-open issue and reassign to
Comment 7 ocke.janssen 2005-06-06 13:36:16 UTC
reassign to
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

this is fixed in the current master. The current master is available at

I close this issue now.

Bye Marc