Need a magic wand? Here are computed class properties!
A magic show awaits you with ORDA’s computed attributes!
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.
4D v19 R3 Beta Starts Today
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 on macOS.
- And more (see below)!
Ready for the 4D World Tour Live 2021?
So far, 2021 has been really exciting for us here at 4D.
This year’s milestones include the release of 4D v19, one of our best LTS yet, the launch of 4D v19 R2 beta, as well as webinars in multiple languages to introduce you to the latest and the greatest, and the list goes on. Now there’s even more exciting news: The 4D World Tour Live 2021 is just around the corner!
Show online documentation directly from the code editor
In the latest versions of 4D, several improvements have been made to simplify the writing of code with classes:
- function and attribute suggestions according to type
- display of the prototype with a short description
With 4D v19 R2, you can open the online documentation of a function with a single action.
Create a BLOB attribute in an object
With the introduction of classes in the 4D environment, the need to store your data in objects, and especially blobs, has increased. That’s why 4D v19 R2 lets you encapsulate blobs in objects.
Beyond the storage aspect, since the blob object is a reference type, your performance in terms of memory occupation and speed will be greatly improved.
4D v19 R2 Beta starts today
Beta testing for 4D v19 R2 is starting today! Here is what this feature release has in store for you:
- 4D for Android (our development platform for Android devices) is now final with 4D v19 R2.
- Speaking of mobile, new features for iOS and Android platforms are now available, allowing you to customize your app’s color, adapt it to dark or light mode, sort its local data, and more!
- 4D View Pro: Analyze data with pivot tables. Import and export CSV files. Manage your sheets by programming. Easily handle page breaks (for printing purposes) from the user interface.
- 4D Write Pro: More display options for inline and anchored pictures. We’ve also made it easier to format the images used as background of documents, sections, paragraphs, etc.
- Features that incorporate best practices such as defining a default .gitignore file and managing Byte Order Mark (BOM) and End of Line (EOL).
- Features to enhance either your experience as a developer, such as getting access to the details of a class function from the code editor, or your end-users’ experience, such as automatic component signing on Mac.
- And more (see below)!
CSS Media query for a dark or light UI
Dark mode has been gaining a lot of ground recently. That’s why we’ve added support for it in 4D v19, and mentioned a few ways you can adjust it to your needs in the related announcement.
In this blog post, we’ll focus on CSS and explain in detail how to set CSS styles for light and dark modes using CSS media queries.
Dark Mode support on macOS has arrived.
Dark Mode is awesome and creates an exciting user experience. That’s why, starting with 4D v19, 4D now supports Dark Mode, which activates automatically if Dark Mode is turned on at the macOS level.
This is just the beginning, and there is more to come in future versions such as Dark Mode support for all components (e.g. the 4D Write Pro widget) and Design Mode.
Want to see how Dark Mode transforms the look of 4D elements? Keep reading!
4D v19 beta starts today
Beta testing for 4D v19, one of the best LTS yet, is starting today, six months earlier than planned, to provide you with a Silicon native version of 4D!
This includes more than +80 advances, including the introduction of Object-Oriented Programming (OOP) in 4D thanks to Project mode, major enhancements to existing products, and highly requested features you voted for.
Buckle up, and let’s discover some of what 4D v19 Beta has to offer:
- Apple Silicon support: be ready to give your 4D application a boost right away thanks to Apple M1’s remarkable performance and the brand new 4D compiler.
- ORDA: write business-oriented code to hide complexity, reduce errors, and speed up the development process.
- 4D for iOS: be productive anywhere with our mobile solution. Check inventory in the warehouse, generate invoices during client visits, perform inspections onsite, and more.
- OOP: thanks to Project mode, take advantage of object-oriented programming concepts for greater productivity, better code quality, and lesser maintenance costs.
- 4D language: discover how the versatile tools of the 4D language improve your developer experience.
- 4D Write Pro: Word documents import, PDF export, enhanced UI, more commands to manage your documents with code, and plenty of features to produce beautiful documents in record time.
- 4D View Pro: localized UI. More than +20 new commands to programmatically handle your documents and more.
- And much more (see below).
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