Display a collection in a listbox
Recently, 4D introduced of a new type of variable: collections, as well as a large set of methods to manipulate them. With 4D v17, the possibilities of collections is becoming larger by being able to easily display the content of a collection. How? List boxes of collection type!
Create, update and delete data with ORDA
4D v17 introduces ORDA, a major evolution in 4D which is opening a world of new possibilities for 4D developers. To learn more about ORDA and its benefits, check out this post to see how ORDA will change the way you work. In order to guide you through the ORDA exploration, we’ve prepared a series of blog posts fully dedicated to the core concepts and related features. This blog post will detail how you can perform CRUD operations on your database with ORDA. CRUD is an acronym for the four basic operations you can perform on data: Create, Read, Update, and Delete.
How ORDA will change the way you work
Imagine a way of using your database with an object-oriented approach, without worrying about its physical structure. Imagine that you could maintain multiple current selections at the same time or that you could perform recursive queries in a single line of code. Well, this is now a reality thanks to ORDA! With 4D v17, your code can be written in an object-oriented mode, and you can easily navigate through your entire data model.
ORDA was one of the major announcements of 4D Summit 2018, opening a world of new possibilities in 4D. It’s now time to give you more details about the ORDA features available with 4D v17. To do so, we’ve prepared a series of blog posts dedicated specifically to ORDA core concepts and related features. And we’ll release them, one after another, day after day.
4D v17 BETA STARTS TODAY!
We are thrilled to announce the launch of beta testing for 4D v17! This major release is chock-full of enhancements and new features that one blog post is not enough to cover them!
With that being said, 4D v17 Beta introduces more than +60 advances including improvements to existing functionalities as well as new ones. And if you’re eager to see 4D v17 Beta in action, check out this extensive library of examples (HDIs) to have an overall idea on this release full potential.
So, let’s take a look and discover some of what 4D v17 Beta has in store for you:
- ORDA: a revolutionary concept, making it possible to use your database in an object-oriented approach.
- 4D language: major enhancements to help you boost your productivity with fewer lines of code.
- 4D Write Pro: to create complex business documents.
- Security: the highest security level off the shelf for 4D products.
- 4D View Pro: to display advanced lists and create spreadsheets.
- 4D commands: More 4D commands to enlarge your programming capabilities.
- Flexible tools: to help you design an immersive User Experience.
Query collections
Simplicity is the ultimate sophistication, and with over 40 methods in 4D v16 R6 to manage collections, things are getting much easier for you as a developer. Not only is your code clean and more readable, but its also written in record time!
In this blog post we’ll take a look at how the two new methods, query and indices, will allow you to manipulate and retrieve items from a collection in a snap!
Calculations in collections
Calculate average, total or price (including tax) are common tasks in any business application. Collections are an easy way to aggregate your data in a consistent way. With it, this type of calculation becomes very simple, because there are collection methods that do everything for you!
4D Summit Advanced Training 2018 – Innovation at its finest!
In this year’s 4D Summit Advanced Training, you’re going to learn about a lot of new innovative concepts that will be revealed during the Keynote and the MasterClass.
Not only sugar syntax, but accessing data in a very different way. Not only will these cutting edge features will allow you to take your applications to a whole new level, but they will also help you attract new talent! However, if you’re still skeptical and trying to decide if it’s worth booking a whole day dedicated to this new version, well the answer is: YES, it’s definitely worth it!
Convert collections
4D v16 R6 provides advanced capabilities to manipulate collections, thanks to 40+ methods to be used with Object Notation. By using them, you’ll be able to write your code in a more efficient way. New code is great, but we also kept in mind that this new code needs to easily integrate with your existing code. This is why we’ve introduced dedicated commands to convert collections to arrays or strings, and vice-versa.
Using path elements in objects
4D is making your developer’s life easier with two new commands to effortlessly manage file or folder paths. Save valuable time with the Path to object command which, in a single line of code, extracts the extension, the file name or the parent folder. Then you can modify and recombine the different object attributes to compose a new path with Object to path.
Discover the power of dynamic forms
You’ve told us how much you want a feature to dynamically build forms fully adapted to your end users’ needs. Well, we heard you, and 4D v16 R6 now opens new opportunities with dynamic forms! Provided as a preview in 4D v16 R6, dynamic forms allow you to programmatically build your forms in an object or load them from a text file. But this only scratches the surface of what we’ve cooked up for you…
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
