Subscribe to this list via RSS Blog posts tagged in Object Pascal
Learn How To Execute External Commands On Linux From An Auto Tables For RAD Server API Endpoint Auto Tables for RAD Server is an automated solution for generating a REST API for your database. However, in addition to that it supports defining custom methods for an endpoint. Inside of this custom method you can call external commands on Windows. You can also call external commands when the RAD Server instance is hosted on Linux using the code I will show here from StackOverFlow. Once you create your Endpoint in the Auto Tables Editor and the Endpoint is selected you can go to the Endp...
Auto Generate Powerful REST API Client/Server Solution For RAD Server With Delphi 10.2 Tokyo Auto Tables is an automatic low code REST API generator for RAD Server. The easy to use interface allows for the quick automatic configuration of a REST server and client SDK with dynamic endpoints providing read, write, and delete access to your data. Everything can be generated from your database tables in just a few clicks. Database tables can be made available with enterprise permissions for over 30 different databases including databases such as MySQL, Microsoft SQL Server, and InterBase. A...
Offline Capable Cross Platform Delphi 10.2 FireMonkey Client Code For Android, iOS, macOS, And Windows The RAD Server Field Service Template provides an end to end field service application template for routing appointments, managing parts, and user administration. It is made up of a REST server module, a desktop client, and a cross platform mobile client. The template can give you a head start in building your own field service solutions. This blog post is about the offline capable mobile client app that comes with the template. You can download the Field Service Template for free from Embarcade...
Secrets of FireDAC: Pagination With Grids And LiveBindings If you want to display only a range of results from a recordset you can using paging (otherwise known as pagination) to do so. It is a common pattern when doing web development to give the user 20 results for example and then the ability to move to the next page. If you are implementing a REST API in RAD Server you might also implement this functionality instead of delivering 2 million rows for the query you only deliver the first 20 rows and the next 20 can be requested in the next call. Obviou...
Secrets Of FireDac: Last Inserted Auto Generated Id And Enterprise Connectors A common pattern when inserting data into a database table which has an auto increment field set on it is to use an SQL query to select the last inserted ID of the newly created record. Once you use your TFDQuery to run your INSERT query you can run this second query to get the newly inserted auto increment ID. Different databases have different SQL queries to accomplish this. MySQL for example has a SELECT query function that you can run called LAST_INSERT_ID() (example: SELECT LAST_INSERT...
Learn How To Replicate A TFDMemTable Into An IBLite Table With FireDAC In Delphi 10.2 Tokyo The Field Service Template client app has offline capabilities which allows you to record changes offline without an internet connection. Later updates can be sent back up to the RAD Server once an internet connect is detected. One of the pieces of code in the Field Service Template client app that makes this possible is a function which will take the FireDAC JSON that is received from the RAD Server and store it as a table in IBLite. As you will see in the source code below the proce...
Full Featured FireMonkey Mobile Client Source Code For Delphi 10.2 Tokyo On Android, iOS, macOS, and Windows The RAD Server Field Service Template utilizes a RAD Server based REST server module for the server side. On the admin side there is a FireMonkey based desktop client for adding, viewing, and managing appointments. Additionally, the admin client allows you to manage parts inventory and do user administration. The offline capable cross platform client app is built in FireMonkey and it can be deployed to Android, iOS, macOS, and Windows. There is a single codebase and single UI. It allows you to v...
Upload An Attachment To SalesForce With The Delphi 10.2 Tokyo Enterprise Connectors I am working on a project that utilizes the Embarcadero Enterprise Connectors powered by CData to access SalesForce through it's API. The Enterprise Connectors provide you a wide variety of connectors for quickly and easily accessing APIs like SalesForce, Google AdWords, Mailchimp, Facebook, Azure, YouTube, and many many more. The Enterprise Connectors work through FireDAC and give you an SQL interface to the various APIs that are on offer. This means you don't have to learn new APIs you simply...
Largest World Record Holding Model Train Set Powered By Delphi Miniatur Wonderland Hamburg is the world's largest model train set as officially certified by the Guinness World Book of Records. Apparently the whole system is powered by software built in Delphi on the back end (including the control room). Embarcadero's Jim McKeeth has another article where he details more about the control room and the other software like Railware that controls the whole setup. The train set has a 1,490 m² layout, contains 260,000+ figures, cost over 21 million Euro's ...
Free Field Service App Template Solution Quick Start Guide For Android, iOS, macOS, and Windows The RAD Server Field Service Template consists of three main components and a setup application (also check out the deep dive). The Field Service Admin app has been tested on Windows and macOS (but probably also runs on Android and iOS). The Field Service App has been tested on Android, iOS, macOS, and Windows. The Field Service Setup has been tested on Windows. The Field Service Server has been tested on Windows but may also run on Linux. This is an excerpt from the RAD Studio Field Service Tem...

Check out more tips and tricks in this development video: