Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiDemoFiremonkeyIOSOSXWindows

Transfer & Debug Objects With DataSnap In Delphi XE5 Firemonkey On Android And IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE5 Firemonkey Datasnap Object CodeSite | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSVsevolod Leonov from Embarcadero is on a roll with a second blog post about building a DataSnap client and server (read about the other post). In this blog post┬áVsevolod shows how to send an object from a mobile DataSnap client using Delphi XE5 Firemonkey to a DataSnap server. DataSnap automatically serializes the object as JSON on the client and deserializes it again on the server. Additionally, he covers how to use Codesite Express to view the data that is being transferred between the two using the CodeSite Live Viewer. First he creates a custom object class called TMyObject which has some values in it. Next he creates a function to send the object from the client to the server. And finally he sends the object from the server to the CodeSite Live Viewer. I recommend doing your debug and testing with a Win32 DataSnap server and then switching to an ISAPI for production. The┬áDataSnap client should work on both Android and IOS (as well as Windows and OSX). The post is in Russian so I’ve run the link through Google Translate. Here is a sample function from his project:
procedure TForm2. Button3Click (Sender: TObject);
MyObject: TMyClass;
MyObject: = TMyClass. Create;
MyObject. A: = 777;
MyObject. B: = 3.1415926;
ClientModule1. ServerMethods1Client. LogObject (MyObject);

Head over and read the full blog post about sending objects via DataSnap.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging


Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply