*接続 [#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 または名称 getByName を利用してテーブルを取得します。テーブル数は getCount メソッドで、テーブルのすべての名称は getElementNames メソッドで取得できます。 |