Tips & Tricks for your 4D Apps – November 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 20 tips:
Energize your Web applications with the OutgoingMessage Class
In today’s digital world, a smooth and intuitive user experience is key to any web application’s success. A critical part of this experience is providing users with easy access to various resources—whether documents, images, or other data types. To make this possible, your server must manage and deliver different content formats efficiently.
With 4D’s new REST server feature, managing diverse content delivery is now easier than ever. Previously, the REST server could only return scalar, entity, or entity selection data. Now, it can deliver full web content directly—content ready for a browser to handle.
Downloading files or receiving binary data from the REST server is now straightforward, thanks to the new OutgoingMessage class. With it, you can easily customize responses to suit your needs.
Read on to explore how the OutgoingMessage class can enhance your application!
4D 20 R6 is Here
Introducing 4D 20 R6 – Available Now!
Here’s a quick look at what this feature release brings:
Download 4D 20 R6 (monthly Hot Fixes available)
- Code Editor: Customize which warnings are generated to stay focused on critical issues.
- Programming:
- Use new comparison operators to check if objects or collections share the same reference.
- Access classes from other components via namespaces for greater flexibility.
- Keep data consistent across sessions with Session Storage by ID.
- Automate PDF/A3 file extraction for electronic invoicing.
- Ensure security by default with Force Login for REST API,
- and boost performance with HTTP Agents through connection reuse.
-
- GitHub Components: Manage components directly in 4D, with automatic repository downloads and semantic versioning for smoother collaboration.
- 4D Write Pro: Keep documents clean with the wk empty datasource attribute, controlling how tables appear when datasources are empty.
- User Experience: Enjoy smoother subform navigation with enhanced scrolling behavior, improving user interaction.
- ORDA: Use the new clean() function to eliminate empty spaces and keep your interfaces tidy with less effort.
PDF/A3 Attachment Extraction
In previous posts, we explored embedding documents within PDF/A-3 files using 4D Write Pro, including generating electronic invoices. As e-invoicing becomes mandatory in various European countries—such as France and Germany—the ability to extract embedded XML files from these PDFs is becoming crucial. But the utility of PDF/A-3 extends beyond invoices; these files can embed various document types that may require extraction.
While tools like Adobe Acrobat Reader offer manual extraction, this post introduces an efficient, automated method using 4D 20 R6 to easily handle the process.
Tips & Tricks for your 4D Apps – July 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 24 tips:
UX: Enhanced Scrolling Behavior in Subforms
User forms are all about making things easy for users. But what happens when scrolling becomes a battle between subforms and their contents? You’ve probably experienced this before: you try to scroll through a list box in a subform, but the entire subform moves instead. Or, worse, you try to scroll the subform itself, but the list box stubbornly stays put!
This has been improved with 4D 20 R6, making the action more natural.
Easy Reference Comparison of Objects & Collections
Objects have become an essential part of the 4D language and of Qodly.
But when you declare a variable of this type, you define a reference. So, how do you know if two objects are, in fact, just one and share the same reference?
Starting with 4D 20 R6, comparing object references is simple: enter the = and # operators!
This blog post explores these operators and how they help determine if objects share the same reference. Let’s find out more!
Enhanced Session Storage Access
You can store information in the storage of various session types, such as Client/Server, Web, or Mobile, allowing for easy reuse across different processes.
Now, in 4D 20 R6, you can access the storage of a specific session. This enhancement enables users to easily maintain the continuity and consistency of information across multiple sessions of the same user. Imagine being able to pull up the same customer record across different applications such as Client/Server or Web.
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!
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:
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