To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=51540
Issue #:|51540
Summary:|crash OOo 1.4 (and 1.9.104) using RowSet.IsModified
Component:|Database access
Version:|OOo 1.1.4
Platform:|PC
URL:|
OS/Version:|Linux
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|ENHANCEMENT
Priority:|P4
Subcomponent:|none
Assigned to:|dbaneedsconfirm
Reported by:|villeroy
------- Additional comments from [EMAIL PROTECTED] Mon Jul 4 05:26:50 -0700
2005 -------
I stumbled int this issue when posting issue 51512. The (admittedly
unreasonable) use of the property "IsModified" (service sdb.rowset) crashes OOo.
copied from Issue 51512:
'assign this macro to the "Before record change" as well as the "After record
change" event of any
'(insert-enabled) form with a field named "Author" eg. the builtin
"bibliography"
'this is a simplified version of a macro, I use for rapid insert of rows with
similar values (eg. receipts sorted by date, category and source)
'If you fill all required fields with a macro like this, the row becomes
unwritable because it claims to be not modified.
sub AUTOINSERT_cursorMoved(oEv)
with oEv.Source
' we ignore the call of the form's controller here
if (.ImplementationName = "com.sun.star.comp.forms.ODatabaseForm") then
if .IsNew then
.getColumns.getByName("Author").Value = sAuthor
print "Editing the Author-Column makes me modified? ";
.IsModified
.IsModified = not .IsModified
print "Contrary to the API-docs I can change my
modified-status to: ";
.isModified
.IsModified = true
print "OK, I'd like to be modified. While running this
macro I am modified:
"; .IsModified
else
REM The following line relates to this issue ("crash OOo ...")
REM .ismodified = true
sAuthor = .getColumns.getByName("Author").Value
end if
end if
end with
End Sub
---------------------------------------------------------------------
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]