Modify action defaults

Create an action defaults file (.4ad) to modify the default text, image, and other attributes for the actions of the generated application.

The action defaults are initially defined by a default Genero Action Defaults file (.4ad) located in the styles sub-directory of the template set directory. Two default files are provided, dbapp.4ad for desktop applications and mobile_dbapp.4ad for mobile applications.

For details regarding the syntax of a Genero Action Defaults file, see the Genero Business Development Language User Guide.

  1. Select File > New.
    The Select an item dialog opens.
  2. Select either Genero BAM Desktop or Genero BAM Mobile, depending on what type of BAM application you are working with.
  3. Under the Resources section, select Action Defaults (.4ad).
    An untitled Genero Action Defaults file with a .4ad extension displays in the central workspace. This file is based on an action defaults template file.
  4. Modify the action defaults file by adding, modifying,or deleting actions and action attributes.
  5. Save the modified file to your project.
    The default name expected for an action defaults file is either dbapp.4ad for desktop applications or mobile_dbapp.4ad for mobile applications. Saving your file using this name ensures that Genero Studio will use your file at runtime, replacing the template default. If you save your file using a different name, you must find the BLOCK in the generated code that calls the ui.Interface.loadActionDefaults() method and change the parameter name to the name of your new file.