More Client Dataset Features

Many options are available to control the TClientDataset component. In this section, we will look at ways to use the TClientDataset to make coding easier in complex applications.

Two-Tier Applications

You've seen how to assign the provider—and therefore the data—to the ClientDataset in a three-tier application. However, many times a simple two-tier application is all that's needed. So, how do you use DataSnap in a two-tier application? There are four possibilities:

  • Runtime assignment of data

  • Design-time assignment of data

  • Runtime assignment of a provider

  • Design-time assignment of a provider

The two basic choices when using ClientDataset are assigning the AppServer property and assigning the data. If you choose to assign ...

Get Borland® Delphi™ 6 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.