Frank Schönheit - Sun Microsystems Germany wrote:
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? :)

Yes

ThisDatabaseDocument.Forms( "my beautiful form").open


Well, you asked.



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

Reply via email to