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:

Product blank

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.

Product blank

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.

Product blank

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.

Product blank

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.

Product blank

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!

Product blank

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!