To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=85687 Issue #|85687 Summary|Event on dataform assigned to macro not called 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|dbaneedsconfirm Reported by|atjensen
------- Additional comments from [EMAIL PROTECTED] Tue Jan 29 18:32:03 +0000 2008 ------- Found in 680M5, XP Open the attached bug document. Open the Basic IDE for 'My Macros',Standard library, Module 1 Copy the folloiwng macro into the module Sub onUpdateRecord( oEvent as object ) dim oDataForm as variant dim oStatement as variant dim oResultSet as variant if oEvent.Source.SupportsService( "com.sun.star.form.component.DataForm" ) then if oEvent.Action = com.sun.star.sdbc.ChangeAction.UPDATE then oDataForm = oEvent.Source oStatement = oDataForm.ActiveConnection.CreateStatement oStatement.EscapeProcessing = False oResultSet = oStatement.executequery( "CALL CURRENT_TIMESTAMP" ) oResultSet.next oDataForm.updateTimeStamp( oDataForm.FindColumn( "LastEdit" ), oResultSet.getTimestamp( 1 ) ) end if end if End Sub ( Be careful about line wrap ) Open the form Table1, edit and save a record, the event 'Before record action' is never called. The above functions properly in 2.3, 2.3.1, 680M4 --------------------------------------------------------------------- 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]