ノーコードでクラウド上のデータとの連携を実現。
詳細はこちら →こんにちは!ドライバー周りのヘルプドキュメントを担当している古川です。
The CData ODBC Driver for DynamicsGP can be used from any platform or development technology that supports ODBC, including Sybase PowerBuilder. This article shows how to connect to Dynamics GP データ and execute queries from the Database Painter and controls such as the DataWindow.
Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for DynamicsGP. In the Database Painter, you can use wizards and the UI to work with Dynamics GP データ.
認証するには、User およびPassword 接続プロパティを設定します。
接続するには、Url をWeb サービスのエンドポイントに設定します。例えば、http://{servername}:{port}/Dynamics/GPService です。さらに、CompanyId を設定します。この値は組織のセットアップウィンドウで「ツール」->「設定」->「組織」をクリックして取得できます。
デフォルトでデータサマリを返し、パフォーマンスを節約します。Line items などの詳細を返すには、LookupIds をtrue に設定します。ただしエンティティは一度に一つずつ返される必要があります。
See the help documentation for a guide to creating a Dynamics GP DSN.You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve Dynamics GP データ into a DataWindow. You can add the following code to the open method:
SQLCA.DBMS = "ODBC"
SQLCA.DBParm = "ConnectString='DSN=CData Dynamics GP Source'"
CONNECT USING SQLCA;
dw_salesinvoice.SetTransObject(SQLCA);
dw_salesinvoice.Retrieve();