To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=81894 Issue #|81894 Summary|event OnLoadFinished instead OnCreate is called when a | new database was created Component|Database access Version|current Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|none Assigned to|oj Reported by|msc
------- Additional comments from [EMAIL PROTECTED] Mon Sep 24 12:24:49 +0000 2007 ------- 1. create a new basic macro Sub RegisterListener o = createUnoService("com.sun.star.frame.GlobalEventBroadcaster") oListener = CreateUnoListener( "DocumentListener_","com.sun.star.document.XEventListener" ) o.addEventListener( oListener ) End Sub Sub DocumentListener_notifyEvent( o as object) if (o.Eventname = "OnCreate") then print "OnCreate" elseif (o.Eventname = "OnNew") then print "OnNew" elseif (o.Eventname = "OnLoadFinished") then print "OnLoadFinished" endif End Sub 2. execute the macro 3. create a new database ==>> the event OnLoadFinished is called. Instead the event OnCreate should called, because a new database was created and no database was loaded. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]