AI Brings Magical Search to 4D Write Pro Documents
In many 4D business applications, documents are everything — technical notes, reports, manuals, internal guides. But when users can’t remember the exact wording, finding the right one becomes slow, frustrating, or worse — impossible.
With 4D 20 R10, semantic search powered by AI vectors changes that. Instead of matching keywords, you match meaning. Users get the right document, even if they search in different words or a different language. It’s a smarter way to surface the knowledge hidden in your documents — fast, accurate, and built for how people actually search.
Let’s consider a concrete example: a user wants to locate a technical note that explains how to insert an image into a 4D Write Pro document. However, they may not recall the precise phrase used in the document.
SHOWCASE: SMART EXPENSE REPORTING WITH AI
You know the pain of expense reporting — not for you, for your users. The receipts piling up, the manual entry, the typos that slip through. With 4D AIKit, that grind is gone. A simple upload turns a paper receipt or invoice into clean, structured JSON, ready for your database.
No more wasted time on totals, dates, or vendor names. Vision AI reads it, language models structure it, and 4D ties it straight into your app. From paper to database in seconds — and your users never feel the friction.
4D AI: Discover the power of 4D Vectors
When working with modern applications, especially those involving Artificial Intelligence, natural language processing, or spatial data, vector math is key. That’s why 4D 20 R10 introduces a new object: 4D.Vector, designed to help developers store and compare data vectors with just a few lines of code.
For example, if you’re building a feature to rank images based on how well they match a text prompt, just generate vectors, compare them using cosine similarity, and sort your results from most to least relevant, all directly in 4D.
Why Your Search Stack Feels Broken — and How Vector Search Fixes It
You ask a question. Your system gives you keyword matches — close, but not the answer. The real insight? It’s buried in a doc, phrased differently, or hiding in a format your search can’t understand.
Now imagine search that gets what you mean — even if you don’t say it perfectly. That surfaces meaning, not just matching words.
That’s the shift we’re exploring in this blog post: what’s failing today, what’s replacing it, and why vector search is becoming the new default for teams that need clarity at scale.
Embed deployment license automatically into your applications
You’ve built the app. Now you need to ship it — fast, clean, and licensed. With 4D 20 R10, you can automatically embed your deployment license into your application builds — no manual setup, no machine-specific paths. Built for OEM and 4D Desktop – Business Edition licenses, this feature relies on just one setting to make your build file portable, version-controlled, and shareable across machines. License checks now run before the build starts, the logs show which licenses were used, and your settings stay intact if anything goes wrong.
One simple tweak, and deployment becomes one less thing to worry about.
New Class to Perform UDP Communications
4D 20 R8 introduced the TCPConnection class, bringing an object-oriented, asynchronous way to handle TCP client connections. Then came 4D 20 R9 with the TCPListener class to build TCP servers. And now, with 4D 20 R10, we’re completing the picture with the new UDPSocket class, allowing you to manage UDP communications between 4D and any remote machine, both as a client and a server. This is especially useful for IoT, real-time monitoring, or broadcasting exchanges. And the icing on the cake? This class supports preemptive and asynchronous UDP communication
Finally, this new feature is marking the final step in replacing the legacy Internet Commands plugin.
Let’s dive into the details.
Managing Calendar Events with Microsoft 365 or Google in 4D: Create, Update, Delete
Working with calendar events is a core part of many business applications. Whether you’re organizing a team meeting or managing an event’s life cycle, being able to create, update, and delete events programmatically is essential.
In this blog post, we’ll walk through how to perform these operations using the Office365.calendar or Google.calendar classes provided in 4D 20 R10, powered by the Microsoft Graph and Google Calendar APIs.
Recursive Dependency Management: Smarter, Deeper, Safer
Following the launch of the Follow 4D version rule, we’re excited to introduce a new level of automation and reliability in 4D 20 R10: fully recursive dependency resolution.
Whether you’re adding, updating, or removing a component, the Dependency Manager now acts recursively, ensuring every action you take is reflected accurately throughout your entire dependency tree.
Stricter class-based typing for objects
With 4D 20 R10, object typing takes a major step forward, giving you more confidence and control in your code. Instead of simply checking if a value is an object, 4D now verifies that it’s an instance of a specific class. This unlocks smarter auto-completion, inline validation, and stricter compilation checks, helping you catch mistakes early and write clearer, more maintainable code.
The benefits don’t stop at variables and function results. This enhancement also applies to your data model: you can now assign a user-defined or native class (like the new 4D.Vector for your AI implementation) directly to an object field in the structure editor. 4D then understands the full shape of the object, from design time to runtime, enabling a type-safe and more reliable development experience.
ORDA – Get started with the touched event
ORDA is a core long-term feature that opens up a world of new possibilities in 4D.
We keep enhancing ORDA to help you write powerful code. As a result, your apps become easier to develop and maintain — and most importantly, they are optimized for great performance for your end users.
That’s why we’re excited to introduce a new feature in 4D 20 R10: in-memory data events.
In a typical user journey, the required data by the user is loaded into memory, modified according to user actions, and finally saved when the user clicks a Save button.
What if you could automatically trigger business logic when in-memory data changes? It’s now possible to format or prepare data as early as possible, so it’s ready to save when needed.
This is made possible by the new ORDA touched event on data — and the benefits are considerable.
Want to learn more? Keep reading!
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
