To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=78987
------- Additional comments from [EMAIL PROTECTED] Sun Jul 8 19:48:29 +0000
2007 -------
This is fixed in that it allows you to override the default behaviour (which is
unchaned) on a per-database and a per-(logical-)form basis.
That is, when an FormController (which is the instance raising the message box)
is going to do the "NULL but required" checks, it beforehand checks it's logical
form whether it has a property "FormsCheckRequiredFields" (more below). If this
property is not present, the Settings of the DataSource which the form belongs
to (more precise: which was used to create the connection of the form) is
examined for this property. It is always present, and defaulted to TRUE.
Well, leaving out some of the technical stuff:
Dim bValue as Boolean
bValue = FALSE
oForm.addProperty( "FormsCheckRequiredFields", 0, bValue )
will disable the checks per a logical form "oForm". If you save the form
document afterwards, the new property will be made persistent.
Dim oDataSource as Object
oDataSource = createUnoService( "com.sun.star.sdb.DatabaseContext" ). _
getByName( ... )
Dim bValue as Boolean
bValue = FALSE
oDataSource.Settings.setPropertyValue( "FormsCheckRequiredFields", _
bValue )
will disable the checks for all forms for this database document. You still need
to save the database document to make the setting persistent.
(Note: The latter macro does not work :). I still need to investigate how to set
boolean properties in Basic, the above will silently use a byte value for
bValue, instead of a boolean one.)
---------------------------------------------------------------------
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]