How it works...

Let's open the Chapter09\CODE\RECIPE07\SurveyGroup.groupproj group project and analyze each part.

The group project is composed of three projects:

  • The application itself
  • The local service that the app uses to send data to the server
  • The REST web service that collects the information sent by the service

The app UI is quite simple and is shown in the following screenshot:

Figure 9.5: The UI or SurveyApp with some data

When the user writes the data and clicks on Send Survey, the inserted data is packaged in a JSON object and then sent to the local service. Here's the code under the button and the method that actually sends ...

Get Delphi Cookbook - Third Edition 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.