KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Utility method to create info report for 4D Remote on set interval
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: February 1, 2021

The information report component is a common way for collecting data pertaining to system info, memory usage, number of users/processes, and more. Typically when using the component, there is the method aa4D_NP_Util_CreateReport used to automatically create a report on the server every 5 minutes. However, a new method has to be created to do the equivalent on the 4D Remote side.

Assuming that the database has the info component placed in the components folder, use the utility method below can be used to automatically create an info report log on 4D Remote every 5 minutes:

Repeat
   aa4D_NP_Util_CreateReport (1) // Create report for 4D Remote in faceless mode

   If (Process aborted=False)
       DELAY PROCESS(Current process;18000) // Wait 5 minutes, then repeat
   End if

Until (Process aborted)


It is recommended that the method be placed in the database On Startup method or executed from the Runtime Explorer to start the logging.