4D v19 R6 and v19 R7 brought two interesting features to 4D for Mobile. Sessions and displaying web pages served by the 4D server in your native mobile app. But did you think about the possibilities you get when combining them both?
This blog post will show you one of these possibilities. We are going to see how to build a simple app that enables mobile users to place orders with their central purchasing office to consolidate their stock:
We got many questions on the 4D Forum on how licenses work using 4D for Mobile, and this is an excellent time to remind you of the process through this blog post that answers the most frequently asked questions.
As you probably know, scalable sessions have been available since 4D v18 R6. They’re a web session type that is able to handle several processes in preemptive mode. This means they can handle several user-agent requests simultaneously and share data between these processes.
Well, 4D v19 R7 greatly enhances this feature and makes it available to 4D for Mobile.
You can already compose views based on templates; dozens of them are at your disposal to beautify your mobile apps. 4D v19 R7 is spicing up things even more by enabling you to display a web page served by 4D using a new preset action: Open URL.
This means four things :
- You are now totally free to create your own designs
- The user experience remains seamless embedded in your native app
- Get updated data in real-time
- You can keep user data and offer an optimized user experience using sessions.
You only have to create a web page optimized for mobile devices.
Let’s see how to use it with a simple example:
The days of defining business-related formulas in your 4D user interface are over; these concepts offer you a new way to separate your business logic from the UI, enabling you to improve performance by optimizing the parts separately.
And now, with 4D v19 R6, aliases are fully available and ready to use for scalars in your iOS and Android mobile projects as soon your aliases are defined on the 4D side.
The Data section is available in the project editor, enabling you to filter the data to be embedded into mobile devices. With 4D v19 R4, this data section has been improved to better understand what will be included in your application.
As of now, you can use almost all types of attributes in your mobile projects: text, dates, time, integers… 4D v19 R4 is bringing another one.
Say hello to object attributes.
As you probably know, computed attributes are available starting from 4D v19 R3. A blog post is available that presents this great new feature.
As we always propose the best and complete user experience to our mobile app developers, computed attributes are compatible with all your iOS and Android projects.
4D for iOS gives you the ability to define actions that automatically call a 4D method linked with an event on the smartphone. For example, using them, you can execute 4D code, manage and edit your app’s content using parameters, and, more recently, sort your app’s content easily using sort actions!
Defining sort criteria and action parameters has been improved to make things easier and help you work more quickly and efficiently.
With 4D for iOS, we are always thinking about mobile-friendly features. The primary purpose is to help developers provide the best user experience for their mobile applications. And that’s why, with 4D v19 R3, we’re shipping action input controls.