turning Create New Base file off

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

turning Create New Base file off

Drew Jensen
Hi,

Checking 3.2 RC1 and this issue

http://www.openoffice.org/issues/show_bug.cgi?id=96862

OK I edited the file

/opt/openoffice.org/basis3.2/share/registry/schema/org/openoffice/office/DataAccess.xcs

to include:

          <prop oor:name="CreateLocalDatabase" oor:type="xs:boolean">
            <info>
              <desc>Specifies that the user is able to creatte new local
database documents in the "Create Database" wizard.</desc>
            </info>
            <value>false</value>
          </prop>

This doesn't seem to work - is there more that needed changing?

Thanks,

Drew

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: turning Create New Base file off

frank.schoenheit
Hi Drew,

> Checking 3.2 RC1 and this issue
>
> http://www.openoffice.org/issues/show_bug.cgi?id=96862
>
> OK I edited the file
>
> /opt/openoffice.org/basis3.2/share/registry/schema/org/openoffice/office/DataAccess.xcs

Uhm, not sure editing the schema is a good idea, I don't know which
restrictions apply there (the least you might need to do is removing
registry/cache in your user data folder).

Try something like the following in Basic
  Dim oProvider as Object
  oProvider = createUnoService( _
    "com.sun.star.configuration.ConfigurationProvider" )

  Dim args(0) as new com.sun.star.beans.PropertyValue
  args(0).Name = "nodepath"
  args(0).Value = _
    "/org.openoffice.office.Office.DataAccess/Policies/Features/Base"

  Dim oNode as Object
  oNode = oProvider.createInstanceWithArguments( _
    "com.sun.star.configuration.ConfigurationUpdateAccess", _
    args() )

  oNode.CreateLocalDatabase = FALSE
  oNode.commitChanges

(warning: that's out of my head, not tried that actual piece of code,
but it works along the above lines)

Ciao
Frank

--
- Frank Schönheit, Software Engineer         [hidden email] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]