ui.Form.loadActionDefaults

Load form action defaults.

Syntax

loadActionDefaults(
   filename STRING )
  1. filename is the name of the action defaults file without extension.

Usage

Load form specific action defaults at runtime with the loadActionDefaults() method.

The loadActionDefaults() method is commonly used in the form initialization function.

Specify the filename without the "4ad" extension.

If the file does not exist in the current directory, it is searched in the directories defined in the DBPATH / FGLRESOURCEPATH environment variable.

If a form contains already action defaults, it will be replaced by the new action defaults loaded by this method.