OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Data Sources 202<br />
interface)<br />
TableFilter (Array)<br />
list of table names to be displayed<br />
TableTypeFilter (Array)<br />
list of table types to be displayed. Values available are TABLE, VIEW and SYSTEM<br />
TABLE<br />
SuppressVersionColumns (Boolean)<br />
suppresses the display of columns that are used for version administration<br />
Queries<br />
The data sources from <strong>OpenOffice</strong>.<strong>org</strong> are not 1:1 comparable with the data sources in ODBC. Whereas<br />
an ODBC data source only covers information about the origin of the data, a data source in<br />
<strong>OpenOffice</strong>.<strong>org</strong> also includes a range of information about how the data is displayed within the database<br />
windows of <strong>OpenOffice</strong>.<strong>org</strong>.<br />
Predefined queries can be assigned to a data source. <strong>OpenOffice</strong>.<strong>org</strong> notes the SQL<br />
commands of queries so that they are available at all times. Queries are used to simplify<br />
working with databases because they can be opened with a simple mouse click and also<br />
provide users without any knowledge of SQL with the option of issuing SQL commands.<br />
An object which supports the<br />
com.sun.star.sdb.QueryDefinition<br />
service is concealed behind a query. The queries are accessed by means of the<br />
QueryDefinitions method of the data source.<br />
The following example lists the names of data source queries can be established in a<br />
message box.<br />
Dim DatabaseContext As Object<br />
Dim DataSource As Object<br />
Dim QueryDefinitions As Object<br />
Dim QueryDefinition As Object<br />
Dim I As Integer<br />
DatabaseContext = createUnoService("com.sun.star.sdb.DatabaseContext")<br />
DataSource = DatabaseContext.getByName("Customers")<br />
QueryDefinitions = DataSource.getQueryDefinitions()<br />
For I = 0 To QueryDefinitions.Count() - 1<br />
QueryDefinition = QueryDefinitions(I)<br />
MsgBox QueryDefinition.Name<br />
Next I<br />
In addition to the Name property used in the example, the