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!
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!
Log files can be extremely useful for troubleshooting. They’re also a big help for finding the root cause of an incident. Logs let us track of where a problem occurred, and when. Before, with the Get 4D folder command, you could easily access the folder containing all the logs. Now, 4D v16 R6 makes easy to find a particular log file, thanks to the enhancement of the Get 4D file command.
There’s a saying about not sweating the small stuff, but when it comes to security, it’s often the little things that have the biggest impact.
On the “Backup” page of Database Settings, you’ll notice an option for an automatic restore of the last backup if your database is damaged. To provide you with the best level of protection for your data, this option is now checked by default for new databases, right out of the box.
4D v16 R6 opens a wide range of possibilities to manage collections. Merging two collections into one, cloning or just ordering a collection is as easy as calling a method. It saves valuable time, for example, when you need to concatenate two collections, keep only the distinct values, or sort it.
Object notation opens new possibilities! To help you adopt this way of coding, we have improved the autocomplete mechanism of the method editor. Whenever you type a dot after an object, you will now get a list of suggested attributes. Just what you need to speed up your coding!
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.
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.
Adding and/or removing elements to and from collections are common programming tasks that developers often encounter. 4D v16 R6 provides over 40 collection methods, including methods specifically dedicated to the addition and removal of elements in a collection. With these methods, you can easily create a stack (FIFO) or queue (LIFO), add new elements at any position, and much more…
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…
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!