KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to generate 4D Info Report every 5 minutes
PRODUCT: 4D Remote | VERSION: 20 | PLATFORM: Mac & Win
Published On: July 2, 2025

After setting up the 4D Info Report with dependencies. json, it is possible to start generating reports.

The most common frequency used is every 5 minutes. Here are two ways to do so:

  1. By running a shared method.

    • In the 4D menu in Run, choose Method, or Ctrl + R.

    • In the list of methods, choose aa4D_NP_Report_Manage_Display in the 4D Remote.

    • A component dialog will allow you to start the stored procedure to create a report every N minutes on the 4D server.

  2. By modifying the host code:

    • In the Explorer, in Database methods, open On Server Startup and copy the following code:

var $NP : Integer
ARRAY TEXT($at_Components;0)
COMPONENT LIST($at_Components)
If(Find in array($at_Components;"4D_Info_Report@")>0)
// to start the stored procedure creating a report every 5 minutes
   $NP:=New process("aa4D_NP_Schedule_Reports_Server";0;"$4DIR_NP";5;0)
End if


These two methods will generate logs every 5 minutes. To stop generating the reports, simply restart the server or remove the code from the database method.