How to browse GitHub to find all 4D projects
With the introduction of projects in 4D, the source code of components, demo applications, and other tools in 4D are hosted on GitHub.
4D has three GitHub organizations.
- On 4D, you can find the source code of the internal 4D components. So you can adapt them to your needs.
- 4D Depot contains all the help tools: HDIs, demonstrations, application examples, etc.
- 4D Go Mobile hosts all custom list forms, detail forms, login forms, formatters, and input controls.
You can find these links to the various GitHub repositories from the 4D websites; for example, from the 4D blog to illustrate new features, from the Resources page of the 4D website for demo examples, or from the gallery for Mobile.
But, you can also from GitHub, search, bookmark, and so on… This blog post will introduce some basic features to improve your usage and navigation on GitHub.
System Worker— File Transfer Class to use Dropbox or GDrive
The first part of the System Worker series showed you the power of system workers, and the second one focused on the actual usage by going through the File Transfer class to use cURL for FTP, FTPS, SFTP, and HTTP.
In the final part of this sequel, we’ll see how the ready-to-use component —download it from here, allows direct access to Dropbox or GDrive, using the same commands as FTP operations:
System Worker— File Transfer Class to use cURL for FTP, FTPS, SFTP, HTTP
The first video showed you the power of system workers and the flexibility they bring along.
This sequel will focus on the actual usage by going through a ready-to-use component that simplifies cURL (included in Mac and Windows OS) and enables file transfers with a wide range of protocols or servers. Download or upload files and receive directory listings; everything you need to perform a file transfer.
The component provides a progress bar (for one or more parallel operations), including an optional cancel button, allowing the end-user to abort long-running operations.
The 15-minutes video explains how to use the class:
System Worker Vs. LAUNCH EXTERNAL PROCESS
System Workers might look like LAUNCH EXTERNAL PROCESS — but they’re way more powerful.
This 15-minute video explains how to use System Workers with more than just the LAUNCH EXTERNAL PROCESS command. Besides simple usage, it also shows how to use callbacks to receive information from a running external application, such as a progress bar:
New Tips & Tricks for your 4D Applications
by Add Komoncharoensiri, Director of Technical Services at 4D Inc
As you know, 4D Knowledge Base is a library of information about the 4D technology where weekly tech tips and monthly technotes 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 12 tips:
ORDA – REST request optimization step by step (+ A demo)
ORDA/REST performance is a strategic matter; that’s why we shipped many features related to this topic, such as the ORDA/REST request optimization in Client/Server and when working with a remote datastore. Lately, we also gave you complete control over the ORDA/REST request optimization.
This blog post gives you the plan to follow in order to ace your ORDA/REST performance game. It includes other blog posts to read, videos to watch, and a demo to play with to increase performance in your applications quickly and easily.
Tech Tips — The 4 Tips of April are Here!
by Add Komoncharoensiri, Director of Technical Services at 4D Inc
As a 4D developer, you have to keep up with the new advances 4D is continuously shipping. Besides tips and tricks provided by the product team, Tech Tips are another reference for learning some of the 4D concepts.
This article covers 4 tips:
- How to treat SQL wildcard characters as a literal string
- Programmatically get the project name
- Preemptive methods under the same call chain should also be preemptive
- Creating a new View Pro document based on a Sheet
How to notarize your merged 4D application (macOS 12 & Xcode 13)
Note: Update for macOS 12/Monterey and Xcode 13. For Xcode 12 and older, see this blog post.
With Monterey (macOS 12), it’s highly recommended that you notarize applications distributed over a public network. A significant number of developers transfer their applications using a connected storage device or via file-sharing; notarization isn’t required in these cases where the user already trusts the developer. Notarization aims to assure users that the application isn’t malicious and is only required for applications downloaded from a website.
Using our built-in signature feature when building your applications with 4D v18, your application is ready to be notarized. This process is conducted outside of 4D. It involves adding an electronic signature to your application and submitting your signed application to an automated inspection service. Here’s everything you need to know:
How to define sleeping timeout for remote 4D applications
To prevent session loss, 4D monitors the sleeping state of remote 4D applications.
When a user is connected from a remote 4D application to a 4D Server and their computer goes into sleep mode, the information is sent to 4D Server. At the moment the user’s computer wakes up, the remote 4D application then recovers its execution context.
How to take advantage of GitHub actions with 4D
Your project is now on a source control system. This means that managing several versions of your software, monitoring changes, and integrating corrections or new features is much simpler now.
Why not also take advantage of continuous integration?
Starting with 4D v19, you can launch the compilation of your project with a command. As a result, you now have all the building blocks needed to automate your integration chain.
This blog post will give you an example of automation with the GitHub manager and GitHub Actions.
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