4D for Mobile Tutorial – Include relations
The data of your application are linked together by two types of relationship: Many to One or One to Many.
In this blog post, we will show you how to include relations. With 4D for Android and 4D for iOS, you can easily navigate between your related data. We automatically generate the transition between views in your application.
4D for Mobile Tutorial – Using Formatters
A data formatter allows you to map a data type from your database to a specific display on the mobile side. For example, you can define a date, percentage, or currency format. Data formatters can also call some code to create intelligent interfaces.
For example, you can attach a data formatter to phone numbers that open an action menu on the mobile app when the user touches the number (e.g., to call the person or save them in contacts).
You have three formatter types:
4D for Mobile Tutorial – Sort your list view
To facilitate the use of an application, the data presented to the user is usually sorted alphabetically, chronologically, or a combination of several criteria.
4D for Android and 4D for iOS allows you to define multiple sorts for each list view.
4D for Mobile Tutorial – Define filter queries
For a mobile application, data is usually filtered to preserve storage space and provide direct and quick access to essential data.
With 4D, you have two types of filters.
- A static filter to filter the data for a table. For example, limit to tasks with the status ‘in progress.’
- A dynamic filter depends on the user’s information. For example, return only the user’s tasks.
This tutorial will show you how to use and combine these two filters.
4D for Mobile Tutorial – Your first application
The 4D mobile application generator allows you to create mobile applications for Android and iOS. In the documentation, you have several tutorials to help you get started and even go further with advanced apps.
The first example is simple and allows you to create a contact catalog. All the details can be found here.
And if you prefer, here are all the steps in the video:
Create your Native Mobile Application with 4D
4D for Android and 4D for iOS allow you to configure, design, build, and deploy native Android and/or iOS apps based on a 4D database. Once generated and deployed, mobile clients can connect to the 4D Server and interact with new or existing data without additional requirements.
4D for Android and 4D for iOS are included in a single integrated 4D component. You can create a mobile project and decide to build it for Android, iOS, or both.
4D handles the complexity and generates an Xcode project in Swift or an Android project in Kotlin. Then, you can reopen them with Xcode and Android Studio and continue to work on them.
This blog post is a compilation of features available in our mobile solution that enables you to build a complete app that goes all out!
Sections are Coming to 4D for Android
In a data list, the results are usually sorted on a relevant field to help the user find the desired data quickly and easily. Another trick to make the reading clearer is to group the results by adding sections.
Something that is possible since 4D v19 R8. Let’s delve into the details!
Test your Windows SDI Application
It’s been a long time since you could provide your customers with merged applications in SDI mode.
We know that testing an SDI application can be challenging, so with 4D v19 R8, you can view the result of your application without the need to build your standalone or client application.
Keep reading for all the details.
4D for Mobile: What’s New in 4D v19 R8
With every release, the list of 4D for iOS and 4D for Android features is growing bigger. And this feature release is no exception. Without further ado, let’s see what 4D v19 R8 has in store for you:
WHAT’S IN IT?
For 4D for Android (already available in 4D for iOS):
- Create a choice list from a table field or a JSON file.
- Use input control with code to retrieve, for example, GPS coordinates or phone numbers in the Contact application.
- Add a section in list form to group data by the company, for example.
- Use a custom login form.
- Improvement of the bottom navigation bar to display more than four tables and follow the Android guideline.
Build your Compiled Structure or Component with Build4D
With the introduction of the project mode, it’s pretty easy to manipulate the components of your projects.
In the last few feature releases, we have added several functionalities that allow you to create your own build chain adapted to your team, your working methods, and your needs.
For example:
- Launch a compilation by programming,
- Zip/unzip files and folders with these commands,
- Easily Manage your Application’s Information,
- Headless 4D applications to integrate it into a build tool.
To help you create your own build chain or integrate 4D into a continuous integration tool, we have developed a component named Build4D, available on GitHub with the sources.
For this first step, Build4D allows you to create a compiled structure and a component. We will continue to enrich it to enable you to manage a single-user application, client application, or server application.
Contact us
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!
* Your privacy is very important to us. Please click here to view our Policy