To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=78593
                 Issue #|78593
                 Summary|API: "Info" and "Settings" properties of a css.sdb.Dat
                        |aSource do not correlate for defaulted user-added prop
                        |erties
               Component|Database access
                 Version|OOo 2.2
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|none
             Assigned to|fs
             Reported by|fs





------- Additional comments from [EMAIL PROTECTED] Mon Jun 18 08:29:56 +0000 
2007 -------
execute the following macro:
  Dim oDataSource as Object
  oDataSource = createUnoService( "com.sun.star.sdb.DatabaseContext"_
    ).getByName( "Bibliography" )

  oDataSource.Settings.addProperty( "inactivity-timeout", 0, 600 )

  Dim aInfoProps()
  aInfoProps() = oDataSource.Info

  Dim i as Integer
  For i = LBound( aInfoProps() ) To UBound( aInfoProps() )
    MsgBox aInfoProps(i).Name
  Next i

Note that "inactivity-timeout" is not displayed in the message box. If you add 
an
  oDataSource.Settings.setPropertyValue( "inactivity-timeout", 1000 )
after adding the property, then "inactivity-timeout" *is* displayed.

Info and Settings should correlate as much as possible, except properties which
are defaulted in the Settings, those are to not appear in the Info. However, the
current implementation assumes all properties to be DEFAULT after being added,
even if the MAYBEDEFAULT attribute is not set.

---------------------------------------------------------------------
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]

Reply via email to