Ready to get started?

Learn more about the CData FireDAC Components for UPS or download a free trial:

Download Now

Viewing UPS Data in RAD Studio Data Explorer

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

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

Connecting to UPS Data Using Data Explorer

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

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

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

    The driver uses five pieces of information in order to authenticate its actions with the UPS service.

    • Server: This controls the URL where the requests should be sent. Common testing options for this are: https://wwwcie.ups.com/ups.app/xml and https://wwwcie.ups.com/webservices
    • AccessKey: This is an identifier that is required to connect to a UPS Server. This value will be provided to you by UPS after registration.
    • UserId: This value is used for logging into UPS. This value is the one you chose to login with when registering for service with UPS.
    • Password: This value is used for logging into UPS. This value is the one you chose to login with when registering for service with UPS.
    • AccountNumber: This is a valid 6-digit or 10-digit UPS account number.
    • PrintLabelLocation: This property is required if one intends to use the GenerateLabels or GenerateReturnLabels stored procedures. This should be set to the folder location where generated labels should be stored.

  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: Senders) onto the form.

  7. Select the SendersTable 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 Senders data.