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!
Combine and sort collections
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.
Autocomplete function expanded to object attributes
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!
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.
Insert or remove elements from a collection
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…
A wide range of possibilities to manage your collections
4D v16 R6 provides advanced capabilities to manipulate collections, thanks to a series of methods to be used with Object Notation. Over 40 methods are now available, which allow, for example, the ability to add or remove elements in a collection, sort it, search the elements in it and much more! There are so many new possibilities that it is impossible to present them in a single post. This post is the first of a series you don’t want to miss…
Convert a 4D View document to 4D View Pro
We know how important your customer’s existing 4D View documents are, and being able to move them to 4D View Pro has been a priority for us. This is now possible with 4D v16 R6 (as a preview). Converting your 4D View documents to 4D View Pro is just a single line of code, thanks to the new command, VP Convert from 4D View.
Higher security ranking for 4D web sites
HTTPS is a well-known HTTP protocol, covered with a layer of SSL/TLS encryption goodness. This protocol is intended to provide confidentiality and integrity by encrypting communications between your server and your end users, rendering your data secure from prying eyes.
4D v16 R6 takes it a step further: 4D Web server now supports Perfect Forward Secrecy (PFS). This provides you with the highest security level for your communications – by default! Beyond the protection it provides, the support of PFS also increases the SSL audit test results of an out-of-the-box 4D server, which is great for our customers. Especially those working with sensitive information.
4D Write-like toolbar example for 4D Write Pro
Moving to 4D Write Pro is a great evolution to make your applications ready for the latest (and future) operating systems. However, new tools can sometimes be intimidating. Do you miss the vintage 4D Write plugin’s toolbar? No problem, here’s a 4D Write Pro toolbar example that looks just like it!
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