Tips & Tricks for your 4D Apps – October 2023 Edition
by Add Komoncharoensiri, Director of Technical Services at 4D Inc
Here we go with another set of tips and tricks.
The 4D Knowledge Base is a library of information about 4D technology where weekly tech tips and monthly tech notes are actively published. If you missed the last tips on the KB, that’s fine; here is a compilation from the past few weeks.
This blog post covers 19 tips:
Microsoft 365: Update Mail Properties
Your feedback matters, and we’ve been listening!
Many of you have been eager for a command to update the ‘isRead’ flag in emails. Starting with 4D v20 R3, 4D Netkit has incorporated this highly requested feature. Now, you can effortlessly update various properties of received or drafted emails using the new ‘Office365.mail.update()‘ function.
Keep reading for more details.
4D View Pro: Import/ Export Documents in Blob Format
For those of you working with larger and more complex 4D View Pro documents, we understand the performance concerns that arise. Starting from the 4D v20 R3, we offer a new blob format that enables you to store compressed documents in your database with the same performance as the .sjs format.
A Fresh Approach to Writing Variadic Functions
Many of you are familiar with using methods or functions that can accept an unspecified number of parameters, often referred to as variadic functions.
In our ongoing process to improve your development experience, 4D v20 R3 streamlined the declaration of these methods by introducing ellipsis, making your code more straightforward and easier to work with.
New Option for the Command Formulas from string!
As a 4D developer, you’ve probably already created and used formulas. They can be created via two commands, Formula and Formula from string. The latter has just been enhanced in 4D v20 R3 to be used without limits from components!
Enhancing The Journal Management
With 4D v20 R3, a new feature has been introduced to enable better journal management. This feature concerns the “Use log file” option, which can now be overridden like other backup parameters.
In this blog post, we’ll explain why this is useful and show you how to use it.
4D Write Pro: Assign Names to Formulas
In 4D Write Pro documents, formulas are crucial and contribute significantly to their functionality. Previously, these formulas could be represented as values, expressions, or symbols.
However, to further enhance the user experience and improve readability, an exciting new feature with 4D v20 R3 has been introduced: the ability to assign names to formulas. This latest enhancement allows users to quickly identify and comprehend the purpose of each formula within the document.
Injecting Custom Data In Websocket Client Headers
Customizing WebSocket client headers lets you inject specific information, preferences, or requirements into the WebSocket connection establishment process.
From 4D v20 R3, you can transmit security information, application-specific data, or other data relevant to the server connection through websocket client headers.
Here is everything you need to know!
Simplify Variable Declarations & Assignments in a Single Line
Starting with 4D v20 R3, you can wave goodbye to the days of writing multiple lines of code for variable declarations and assignments. Now, you can streamline your code, eliminate redundancy, and easily boost efficiency.
Here is how!
4D Netkit: Get Labels And Emails From Gmail
As we continue to integrate the Gmail API into 4D Netkit, we’re bringing you a comprehensive set of commands to seamlessly manage your emails.
With 4D v20 R3, we’re introducing new commands that empower you to effortlessly retrieve the list of labels, get emails, and efficiently remove them.
Let’s learn more!
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