SystemActionDefaults.fm2 is a global configuration file containing default attributes (texts, images, accelerators, etc.) for actions that can be performed in 4gl applications created in Lycia.
SystemActionDefaults.fm2 is overwritten by master and user action defaults files as well as by events and actions specified in your graphical forms and/or 4gl code.
SystemActionDefaults.fm2 is created during Lycia installation.
By default, SystemActionDefaults.fm2 is located in
C:\Program Files\Querix\Lycia 3 Development Suite 7.1\Lycia\etc
/opt/Querix/Lycia/etс/
You can change the default location of SystemActionDefaults.fm2 by setting the corresponding environment variable:
LYCIA_SYSTEM_ACTION_DEFAULTS=C:\Users\my_user\my_lycia\my_system_files\my_system_action_defaults.fm2
By default, SystemActionDefaults.fm2 has the following content (press » to see the default content):
SystemActionDefaults.fm2 specifies the default parameters for these actions:
expand collapse append insert update delete accept cancel help close |
next previous first last find find next edit copy edit copy title edit cut |
edit paste edit select all next field previous field first row last row previous row next row upfield downfield |
next page previous page next tab previous tab dialog touched select next row select previous row highlight next row highlight previous row select menu |
next menu previous menu copy cell copy visible column copy row copy visible table start_menu_id on:sort show poptree menu |
As SystemActionDefaults.fm2 is one of the basic configuration files for Lycia, we do not recommend you to change this file unless you have a considerable experience of such modifications.
Otherwise, we cannot ensure proper runtime behavior of your applications.
If you need or wish to change the system theme file, you can follow this algorithm:
1 |
Copy the SystemActionDefaults.fm2 files with a new name, e.g., my_system_action_defaults.fm2 |
2 |
Change and save this new system action defaults file - my_system_action_defaults.fm2 |
3 |
Specify the new system action defaults file and its location as the value for LYCIA_SYSTEM_ACTION_DEFAULTS in inet.env and env.properties:
LYCIA_SYSTEM_ACTION_DEFAULTS=C:\Users\my_user\my_lycia\my_system_files\my_system_action_defaults.fm2
|
In this case, you will be able to use the new system action defaults according to your development and production needs AND will still keep the original SystemActionDefaults.fm2 file as a backup (and will be able to easily return to it if necessary).
If you have several projects and want them to behave in a certain manner or if you want your applications feel different when run with different AppServer instances, you can follow this algorithm:
1 |
Create a new application server instance, e.g., eu_secure |
2 |
Create a new inet.env file and specify this new inet.env file in the new application instance in listener.xml:
<name>eu_secure</name> ... <envfile>C:\ProgramData\Querix\Lycia\eu\etc\eu_inet.env</envfile>
|
3 |
Copy the SystemActionDefaults.fm2 file with a new name, e.g., eu_system_action_defaults.fm2 |
4 |
Change and save this new system action defaults file - eu_system_action_defaults.fm2 |
5 |
Specify the new system action defaults file and its location as the value for LYCIA_SYSTEM_ACTION_DEFAULTS in the new inet.env file:
LYCIA_SYSTEM_ACTION_DEFAULTS=C:\Users\my_user\lycia\eu\system_files\eu_system_action_defaults.fm2
|
You can open and modify SystemActionDefaults.fm2 with your favorite text editor:
Step 1 |
Go to C:\Program Files\Querix\Lycia 3 Development Suite 7.1\Lycia\etc.
|
Step 2 |
Copy SystemActionDefaults.fm2 with a new name.
|
Step 3 |
Introduce the necessary changes to the copy and save it.
|
The syntax of SystemActionDefaults.fm2 is the same as of any other action defaults file in Lycia.
Related articles:
Master and user action defaults