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

AndroidAppmethodCode SnippetComponentDelphiDemoFiremonkeyIOSOSXWindows

LiveBindings REST Client Demo With Two Hidden Gems For Delphi XE6 Firemonkey On Android And IOS

Delphi XE6 Firemonkey LiveBindings REST Client TutorialDeveloper Superlevin has a blog post up where he explains how to consume a REST service with LiveBindings in Delphi XE6 Firemonkey. He also points out a hidden gem buried in the Delphi samples directory. The blog post is in Chinese so you’ll probably need to use a translator (like Google Chrome) on it but in provides a pretty detailed tutorial on consuming the REST service. The service he uses is from the city government of TaiPai and it returns JSON data containing a list of hotels. He shows you what components you need to add and how to changed the settings so they connect to the REST service and then output the results for consumption by LiveBindings. The results come into a RESTResponseDataSetAdapter component and then are output to a TListview. Using the REST Debugger is also demonstrated. Now here is where the hidden gem comes in. Deep within the Embarcadero \ Studio \ 14.0 \ Samples \ Object Pascal \ Mobile Samples \ User Interface \ ListView directory there are two packages that you can compile and install into the IDE. They are a Listview Multi Detail Appearance package and a Listview Ratings Appearance package. Once you install these into the IDE you will be able to have a TListViewItem that contains three lines of data instead of just one and a TListViewItem with a ratings element. This sample should work on all Firemonkey platforms which are Android, IOS, Windows, and OSX in addition to compiling in AppMethod.

Head over and check out the full tutorial on building a LiveBindings REST client and then download the source code.

Or head directly to the sample source code for the Delphi XE6 REST client demo on Github.

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

Related posts
C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

AndroidC++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS

C++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

TStringList and TFDMemTable Contribute To The Powerhouse That Is Cross Platform Delphi Development In FireMonkey

AndroidC++BuilderDelphiFiremonkeyIDEIOSOSXWindows

Massive Update With Tons Of Fixes For Delphi 10.4 Firemonkey On Android, IOS, MacOS, Windows, And Linux

Sign up for our Newsletter and
stay informed

2 Comments

Leave a Reply