Managing HTTP Requests with HTTP Agents
In 4D 19 R6, we introduced HTTP classes to modernize syntax and enhance functionalities for our HTTP client commands. Building on this foundation, 4D 20 R6 brings a powerful new feature: HTTP agents. These agents empower developers to customize and optimize their connections to HTTP servers by managing connection persistence and reuse for HTTP requests.
4D 20 R6 Beta Starts Today
Beta testing for 4D 20 R6 starts today, and we’re excited to unveil a release packed with powerful features designed specifically for developers!
- Programmers can now benefit from direct function calls via singletons through REST APIs and Qodly Pages events, customizable HTTP agents, improved session storage access, and more.
- Keep your entity selections neat with ORDA’s new clean function that removes empty spaces after deletions, ensuring a well-organized interface.
- Force Login becomes the default for all REST Authentication, improving resource management and providing precise control over access to your data and functions.
- The code editor comes with new features to help developers focus on critical issues by customizing which warnings are displayed globally.
- In 4D Write Pro, manage empty data sources in tables, hide, show placeholders, and more.
- And that’s not all — There are more features to explore!
4D 20 R5 is Here
Introducing 4D 20 R5 – Available Now!
Here’s a sneak peek of what awaits you with this feature release:
Download 4D 20 R5 (monthly Hot Fixes available)
- QUIC: Enhance application performance and security with the production-ready QUIC, which offers IPv6 support, broadcast capabilities, and Windows single sign-on.
- User Interface: Transform your application’s appearance with two new window types that allow complete customization of the window title bar. Add buttons, search boxes, and other elements to create your design.
- 4D Write Pro: Create professional-looking documents with enhanced layout design, easy section break management, quick formatting options, and support for larger tables.
- 4D Language: Write cleaner and more robust code with Try-Catch blocks for precise error handling, shared classes for simplified object management, and singletons for improved global accessibility.
- ORDA: Implement strong data security by restricting user access to specific data based on predefined criteria, ensuring users only see relevant information.
- Visual Studio Code extension: Boost developer productivity with GitHub Codespaces integration and workspace syntax checking.
- Qodly Studio for 4D brings Custom Components for greater flexibility, new dialog features for better user interactions, Force Login for optimized license use, and more.
Easily Using Qodly’s REST API
A few months ago, we announced that Qodly Studio is now available to all our Silver Partners (and higher).
Qodly Studio for 4D is fully integrated into 4D, allowing 4D Server to host your application with both desktop and web pages.
Qodly Studio is also accessible on Qodly, as part of 4D’s newly launched SaaS offering. This innovative hybrid low-code solution is specifically designed for web browser-based business applications.
Even if you’ve already built apps using the Qodly platform, we have more good news! You can now with 4D 20 R5 utilize the REST API of a Qodly application to seamlessly work with your data.
Keep reading to learn more.
Tips & Tricks for your 4D Apps – June 2024 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 15 tips:
When Qodly.com Meets 4D Server, What Are They Talking About?
Last September, 4D unveiled Qodly Studio for 4D, offering comprehensive benefits that enable you to seamlessly create dynamic, efficient business web applications. If you haven’t yet, check out this blog post to learn how to get started with Qodly Studio for 4D.
Qodly Studio is also accessible on qodly.com, forming a part of 4D’s new SaaS offering.
Excitingly, the synergy between Qodly.com and 4D applications reaches new heights with the introduction of the QodlyScript openDatastore command. This feature enables qodly.com web applications to seamlessly connect with 4D applications deployed on 4D Servers, facilitating the utilization of 4D projects as remote datastores. So, if you’re eager to harness the power of your 4D application data and business logic within a qodly.com environment, you’ll be delighted to learn about the possibilities offered by Qodly Studio’s latest advancements.
Now, picture this scenario: your existing 4D Server-based application serves both desktop and web clients using Qodly forms. If this setup mirrors your current approach, feel free to skip ahead.
But if you want to extend your existing 4D server-based application with a totally new one, only web-based – and this one hosted on Qodly.com then this post is for you and shows how to communicate between both.
Simplifying Component Management in 4D
In the context of 4D development, managing components typically involves a substantial amount of work. However, introducing the Component Manager feature in the 4D environment represents a significant advancement in component management.
No longer confined to placing components in a designated Components folder, this feature relies on two key elements: dependencies.json and environment4d.json. Since 4D 20 R5, these files offer developers better visibility into application dependencies and the flexibility to customize component paths.
Explore GitHub Codespaces Possibilities with 4D
GitHub offers powerful tools for developers. One of them is Codepaces, which lets you develop code stored in a GitHub repo online from anywhere using an integrated instance of Visual Studio Code.
This is also the case with 4D projects!
Let’s discover this powerful tool and see a new way of coding!
Auto Tool4D Download in 4D-Analyzer Extension for VS Code
We’re pleased to announce a useful new simplification in the 4D-Analyzer extension for Visual Studio Code!
This feature is aimed at streamlining the process of getting started and enhancing development with VS Code for 4D.
Until now, the 4D-Analyzer extension for VS Code required a 4D application (4D, 4D Server, or tool4d) running in the background. This setup enabled the extension to communicate with the 4D LSP (Language Server Protocol) server.
However, this requirement has been eliminated with the release of version 0.2.0 of the extension.
Deprecation of the Legacy Network Layer
To handle the communication between 4D Client and 4D Server, 4D proposes 3 different network layers:
- Legacy,
- ServerNet,
- and QUIC.
The Legacy network layer was introduced 30 years ago in 4D v3. It was originally developed for AppleTalk, enhanced for ISDN, and then added IPX and finally TCP/IP.
It was created for a very different Client/Server usage than 4D works today: it is single-threaded, optimized for slow networks with no encryption, and available for many different network protocols. As such, it is not optimized at all for modern network communications and supports a very limited number of features.
That’s why, with 4D 20 R5, we have decided to make the Legacy network layer obsolete and plan to remove it soon. We encourage you to move to ServerNet now if you are still using it. Let me explain what benefits you will get from the switch.
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