Product

ORDA Classes to handle your data model

Automatically translated from English

In a previous blog post, we introduced you to the world of ORDA data model classes. Now it’s time to get our hands dirty and learn more!

You already know that ORDA’s structure (datastore, dataclass, entity, entity selection) is made up of objects. But they’re not just objects, they’re strongly-typed objects linked to specific ORDA classes. This means that you can write functions to hide the complexity of your data’s physical implementation.

Product

Welcome to the world of ORDA classes

Automatically translated from English

ORDA was a revolution with 4D v17. It opened a whole new world of possibilities and took you to another programming dimension. A dimension where you can easily develop applications using an object-oriented approach.

We didn’t stop there! We continued to add enhancements to ORDA through a set of features in each subsequent feature release. Now with 4D v18 R4, we’re thrilled to be going another step further with the availability of ORDA data model classes. Classes dedicated to your data model.

This will greatly elevate your code. Your applications can now easily expose services, be more manageable and easier to maintain, and seamlessly integrate with other applications.

This is another big feature made possible thanks to the projects!

 

Product

An intro to object-oriented programming in 4D: Classes

Automatically translated from English

Many of you have have been asking to be able to define an object type ever since the Object type became available. Thanks to object notation, many of you dream of having object functions.  Dream no more and say hello to classes in 4D v18 R3 project database! In this blog post, we’re introducing one of the most interesting concepts of object-oriented programming … along with a database example and a bonus video!

Product

ORDA: Thoroughly compare two entity selections

Automatically translated from English

Since ORDA allows you to work with several entity selections simultaneously, we’re sure you take advantage of this by passing entity selections as a parameter to project methods or to functions of ORDA Data model classes.

To work efficiently with object-oriented programming using as few lines of code as possible, you need robust and optimized functions. That’s why with 4D v19 R3, we are shipping a new function available on the entitySelection object: the selected() function.

Thanks to it, you’ll be able to inspect and compare two entity selections. Let’s see the details!

Product

Simplified navigation between development windows

Automatically translated from English

When writing a new function or method, or when creating a form, the work is never linear. We usually need to:

  • access the explorer to find the form in its folder
  • access the explorer to write the documentation for the method
  • read the documentation of a command on the 4D documentation website
  • read the documentation of a component’s method

 

In this new version, we have added some menu items in the code editor and form editor to allow you to better navigate between the different elements of a project.

Product

Need a magic wand? Here are computed class properties!

Automatically translated from English
The apparition of classes in the 4D development environment has made programming more modern and easier to scale. Classes allow the definition of properties, functions and also support inheritance.
In your application, you probably have a class to manage scientific or financial data. Let’s take the example of financial data. Say you have created functions to calculate taxes. If you also manage several countries, you may have used inheritance to manage the different rules. Then, you display these results in a list box, but if the user changes one of the attributes used in the formula, you have to manage this event to update the result.
With 4D v19 R3, 4D allows you to simplify this process thanks to computed properties: You can define a get and set function for your computed property, and when you add your property to a list box, everything is handled automatically by 4D. No more business logic in your UI.

Product

A magic show awaits you with ORDA’s computed attributes!

Automatically translated from English

It is often helpful or even essential that databases be adapted in a flexible and evolving way to users and their businesses in the computer world. The control of accessible data is also a recurrent and sensitive subject. From this point of view, developers use methods and formulas that are sometimes complex to give or restrict access to information, depending on the context or the access rights of the users.

Let’s take a simple example. In your application, you sometimes need to display a list of people. One of the columns displays their full names, but in your database, you have a first name field and a last name field. Currently, you write a formula in the list box column, and you have to manage the sorting on the column yourself. Wouldn’t it be great to have a computed field where you can define its calculation formula and sorting method, and have all the business logic inside the class and not in each interface?

Well, starting with 4D v19 R3, 4D provides a solution to this, with computed attributes.

News

4D v19 R3 Beta Starts Today

Automatically translated from English

We’re pleased to announce the launch of beta testing for 4D v19 R3! One of the richest feature releases we have shipped so far!

Without further ado, let’s take a look and see what this feature release has in store for you:

 

  • Your business logic will love 4D’s new Computed Attributes in ORDA, Classes, iOS, and Android.
  • 4D for iOS with features allowing to interact with native Apple apps and build even more advanced UI’s. 
  • As for 4D for Android, we’re giving you a way to test your Android app on a real device before releasing it to users.
  • 4D Write Pro is shipped with an image setting dialog, the possibility to have different numbers of columns on the same page with continuous section breaks, and additional options to manage formula visibility. 
  • Out-of-the-box security boost with the support of the bcrypt algorithm for passwords. What’s best, there’s nothing to change in the code. Everything is automatic. 
  • More news for dark mode enthusiasts. After giving end-users a choice between dark and light mode for the appearance of their applications, it is now the turn of developers to choose between these modes during development.
  • And more (see below)!