KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Identify active method properties in .4dm files
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: March 4, 2025

When opening method (.4dm) files in an external code editor, there is usually an additional comment line that appears at the top of the method that begins with “%attributes”. For example:

//%attributes = {"executedOnServer":true,"preemptive":"capable"}
$nums:=[1; 2; 3; 4; 5; 6; 7; 8; 9; 10]
For each ($item; $nums; 10)
   ALERT:C41(String:C10($item))
End for each

This line lists the active method properties in JSON format. In the example above, it is shown that the method has the properties “Execute on Server” and “Can be run in preemptive processes” enabled.