今すぐお試しください!

製品の詳細CData FireDAC Components for Xero を確認して、無償評価版をダウンロード:

今すぐダウンロード

Viewing Xero Data in RAD Studio Data Explorer

How to view Xero data in RAD Studio Data Explorer using the CData FireDAC Components for Xero.

Embarcadero RAD Studio provides a development environment for Delphi and C++Builder applications. With the CData FireDAC Components for Xero, you gain access to live Xero data within RAD Studio, abstracting the data into tables, views, and stored procedures that can be used to both retrieve and update Xero data. This article will walk through connecting to Xero using the Data Explorer.

Connecting to Xero Data Using Data Explorer

You can create a simple application for displaying Xero data by utilizing the CData FireDAC Components for Xero and a new VCL Forms Application:

  1. Open the Data Explorer in RAD Studio and expand FireDAC.
  2. Right-click on CData Xero Data Source and click Add New Connection.

  3. Name the connection.
  4. Fill in the necessary connection parameters and click OK.

    To connect, set the Schema connection property in addition to any authentication values. Xero offers authentication for private applications, public applications, and partner applications. You will need to set the XeroAppAuthentication property to PUBLIC, PRIVATE, or PARTNER, depending on the type of application configured. To connect from a private application, you will additionally need to set the OAuthAccessToken, OAuthClientId, OAuthClientSecret, CertificateStoreType, CertificateStore, and CertificateStorePassword.

    To connect from a public or partner application, you can use the embedded OAuthClientId, OAuthClientSecret, and CallbackURL, or you can register an app to obtain your own OAuth values.

    See the "Getting Started" chapter of the help documentation for a guide to authenticating to Xero.

  5. Back in the Data Explorer, expand the tables for the connection.
  6. Create a new VCL Forms application and drag a table (for example: Items) onto the form.

  7. Select the ItemsTable object on the form and set the Active property to true.
  8. Right-click on the object, bind visually, and link everything (*) to a new control (TStringGrid).

  9. Arrange the TStringGrid on the form and run the application to see the Items data.

 
 
ダウンロード