Tips & Tricks for your 4D Apps – October 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 25 tips:

      1. Session Command Returns Null
      2. 4D Appearance Settings
      3. How to refresh record when data is updated in another process
      4. Better usage of user licenses with REST requests by enabling Force Login Mode
      5. Changing remote client user after checking off “Remember password”
      6. Checking for Cache Thrashing on a 4D Server Using the 4D Info Report Component
      7. Getting the last table number
      8. 3 different ways to create a new method or class in Design environment
      9. Security and Convenience with Auto-Generated SSL/TLS Certificates
      10. Changing the fill color of alternate listbox rows with CSS
      11. New log file Numbers Explained
      12. How to Implement an HTTP Agent as a Singleton
      13. Using Pointers to Tables in Object Literals 
      14. OrderByMethod not sorting correctly 
      15. Store singleton class instance in a variable for convenience in typing 
      16. How to Fix Orphan Licenses
      17. Compiling a 4D Database
      18. Checking if a property does not exist in an object (null vs. undefined) 
      19. “Failed to Synch Resources” when connection to 4D Server 
      20.  Inherent Truthy and Falsy Values with Short Circuit Operators 
      21. REST Error Message: “Can’t call not thread safe method from a preemptive process” 
      22. Get and SET DATABASE PARAMETER Thread-Safe Parameters 
      23. Better Readability with Collection and Object Literals 
      24. Avoid calling GOTO OBJECT directly inside On Data Change event of listbox column of checkbox display type 
      25. Changing TLS versions programmatically 
Add Komoncharoensiri
Add Komoncharoensiri has been a key member of the technical support team since 2000. He started his career at the company as a technical support engineer before becoming a 4D evangelist in 2003, then internal applications manager in 2006, and finally director of technical services in 2007. Add earned a computer science degree from San Jose State University in 2000. He is passionate about user experience (UX) and user interface programming. He has been involved in the development and management of the 4D Knowledgebase and 4D Partner Central websites.