Several formatters have been made available for formatting your data in the list or detail form. For example, a boolean field can be represented as a red or green circle. If you think this is very convenient, then you will love the new features in 4D v19 R5.
Let’s imagine an application with a list of our customers, if we need to go to their offices, it would be really handy to be able to tap on the customer’s address to open Google Maps. Unfortunately on the way, you are stuck in traffic. Don’t panic, just tap on the phone number, and you can choose to send a message or call directly to let them know. 🙂
Several other formatters are at your disposal, we let you discover them.
Which formatters are available
As a reminder, all these formatters are already available on iOS, this is their equivalent for Android.
Address formatter
Open the Google Maps application.
Phone formatter
Open a menu to call or to add to user contact.
URL formatter
Open an URL in external web view.
HTML formatter
Display 4D styled text in a detailed view.
Mail formatter
Open the mail application.
How to use it
You can download the formatter from the gallery. Then, unzip the archive and copy the formatter in “/Resources/Mobile/formatter” folder of your project.
Now, the formatter can be selected from the Formats menu, just like a built-in format.
For your specific needs, you have the possibility to create your own Kotlin formatters, this tutorial can help you to configure and create it.
Next…
Come and share your creations and ideas on the forum, we are waiting for you.