create a new page, using OOoBasic/Base/Connection as a template.
Front page
Search
掲示板
Reload
Help
Browse Log
掲示板の使い方
OOo 掲示板3
OOo 掲示板2
OOo 掲示板
掲示板
雑談掲示板
New
List of pages
Recent changes
Backup
簡単ヘルプ
整形ルール
Start:
*接続 [#d9aa0551]
データソースへの接続
#contents
**接続 [#paa231f3]
[[データソース>../DataSource]]から接続します。
oDBConnection = oDataSource.getConnection("","")
データベースドキュメントから行うには次のようにします。
oDataSource = oDoc.DataSource
' with css.sdbc.XDataSource interface
oConnection = oDataSource.getConnection("", "")
ドキュメントのコントローラからも接続できます。
with controller
oController = oDoc.getCurrentController()
connect to db and get connection
If NOT oController.isConnected() Then
oController.connect()
End If
oConnection = oController.ActiveConnection
**テーブルコンテナ [#w7f60fe6]
getTables メソッドを利用してテーブルコンテナオブジェクト...
**テーブル [#v662228d]
テーブルコンテナからインデックス getByIndex または名称 ge...
End:
*接続 [#d9aa0551]
データソースへの接続
#contents
**接続 [#paa231f3]
[[データソース>../DataSource]]から接続します。
oDBConnection = oDataSource.getConnection("","")
データベースドキュメントから行うには次のようにします。
oDataSource = oDoc.DataSource
' with css.sdbc.XDataSource interface
oConnection = oDataSource.getConnection("", "")
ドキュメントのコントローラからも接続できます。
with controller
oController = oDoc.getCurrentController()
connect to db and get connection
If NOT oController.isConnected() Then
oController.connect()
End If
oConnection = oController.ActiveConnection
**テーブルコンテナ [#w7f60fe6]
getTables メソッドを利用してテーブルコンテナオブジェクト...
**テーブル [#v662228d]
テーブルコンテナからインデックス getByIndex または名称 ge...
Page: