Hi Marc,

>>> For completeness, let me mention that an interface to "simulate" opening
>>> a table/query/form/report from the application window - i.e.
>>> programmatic access to what happens when you double-click such an
>>> object, or choose "Edit" in its context menu -, is planned. This would
>>> not have helped you here, since you don't have an database application
>>> window, though ...
>> Can you give some more details on this topic, please?
>>
>> I'd be interested in an issue number and a rough guess when it might be
>> available.
> 
> http://www.openoffice.org/issues/show_bug.cgi?id=86996

implemented in CWS dba30b, which will be going to QA this week.

What about
  ThisDatabaseDocument.loadComponent(
    com.sun.star.sdb.application.DatabaseObject.FORM,
    "my beautiful form",
    TRUE
  )
?

Supported object types are TABLE, QUERY, FORM, REPORT (of course).
Supported modes are "for editing" (same as "Edit" in the object's
context menu) and "for viewing" (same as "Open" in the object's context
menu). Hierarchical names are supported, too (for forms and reports,
that is). And, well, there is a "loadComponentWithArguments" which
allows passing additional arguments.

Can you imagine a *shorter* way to open a sub component of a database
document? :)

Ciao
Frank

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to