AMT Help Files
Home AMT Developer Studio AMT Enterprise Repository Application Options Options

Options

To open application options, right-click an application in the AMT Enterprise Repository and select Options from the context menu. The Options dialog opens:

Application Options screen showing global application settings and configuration options

After you change application options, you must check in the application options and perform a Whole System generation before the changes become active.

You can configure the following global options:

Option Description

Name

The name of the application.

Description

Description of the application.

Initial form

The first form that opens when users start the application

Decimal sign

The separator used for decimal characters.

The decimal character is always leading, and where relevant (i.e. shown), the thousand separator will be the "opposite" of the decimal character.

Force decimal key

Sets the default behavior when you enter values in decimal layout controls.
See the layout property ForceDecimalKey to set the behaviour for individual layout controls. 

If set to Yes, the system rejects values in layout controls with a default Force decimal key setting that don't contain the decimal character.
You can still enter 0 (zero) even when Force decimal key is set to Yes.

If set to No, you can omit the decimal character.

If set to Show no decimal key, the system rejects values that contain a decimal character. The system uses the last digits you entered as decimals.
E.g. on an numeric field with two decimals and this Force decimal key option, entering 299 will be interpreted as 2.99

Show leading zeros

Specifies the number of leading zeros to show.
If set to none, the system displays no zero for the numeric value.
If set to one, the system shows a zero only if the value is zero.
If set to all, and the value contains fewer characters than the value length supports, the system completes the value with leading zeros until it displays the full value length.
If set to all except 0, the system shows all leading zeros, except when the value is 0.

Numeric Sign Encoding

The overpunch encoding used for signed numerics when overpunch is used.
See Overpunch Encoding.

New applications and upgraded applications created before AMT 38 will by default be set to 'Not set' and must be changed to one of the other options.

warning Every Application must have a Numeric Sign Encoding set in the Application Options. If no Numeric Sign Encoding is set, the Generator will not generate the application or any of its objects.

   
   

Automatically LOCK record

This switch determines the default setting for the option "Automatically LOCK record if there is an update" that applies to Form and Report objects. In the local objects, it is possible to overrule this setting.

Tabform

This switch determines if multiple application screens may be opened in separate tabsheets and if session data (retained variables) must be shared. When using the 2nd or 3rd option, multiple tabforms (screens) can be opened running as separate subsessions.

If the switch is set to Single Tabform with Shared Session Data, it will not be possible to open more than one single tabform at runtime. This corresponds with the behavior of LION versions 5.2 and older.

If set to Multiple Tabforms with Shared Session Data, multiple tabforms may be opened at the same time. These subsessions then share their session data, which makes it possible to exchange data between the screens.

If set to Multiple Tabforms with Private Session Data, multiple tabforms may be opened at the same time. Each screen will then use a separate piece of memory for its session data.

Notes:
The Tabforms setting does not affect the behavior for webservices or web - and com module sessions. In those cases, the behavior will always be the same as for the first option (Single Tabform with Shared Session Data).

The maximum amount of tabforms that can be opened depends on the maximum number of subsessions that is set through the Control Center. At runtime, the number of opened sub sessions (which also includes the popup screens) can be read out dynamically through the system item SI-SUBSESSCOUNT. The serial number for the current sub session is stored in the system item SI-SUBSESSNO.

SI-PARAM size  The size of System item SI-PARAM to use for this Application. Maximum size is 64K (Unicode)characters.
Application Origin  The type of Mainframe OS this application is converted from. When set to Unix, numerics containing only spaces will get converted to 0 on assignments. 
File record ending 

Defines how records will be delimited in a text based data file. This setting is used as default and can be changed when adding a file-id.

Possible values are:

  • CR/LF normal default.
  • CR Carriage return only.
  • LF Line feed only.
  • None, no delimiting. Records are separated based on record length only.
Initial value of variables 

The initial value of variables when no specific initial value has been set.

The options are:

  • Spaces for Alpha, Zeros for numeric: This is the default AMT/Lion behavior. Alpha fields are spaces, Numerics are '0'.
  • All Spaces: All variables will be spaces, except if you have items with an initial value.
  • All Hex Nulls: Default for A-series & OS2200 COBOL migrations. Initializes all 01 level variables with hex null, as well as Special level variables (eg. 77).
Letter spacing (px)

The spacing between characters in pixels for the web client only. Can be set from -2.0 to 2.0 or on 'Default'.

When both the form layout option and this application option are set to default, the 'letter-spacing' value stored in the Amt.css file of the application web theme will be used. By default this setting is omitted for most layout components in the Amt.css file which has the same effect as setting letter-spacing to normal.

The priority for letter spacing is:
1. Form layout option.
2. Application option.
3. Amt.css file 'letter-spacing' property in the used application web theme

When label values are truncated in the web client, you can change either the Amt.css for all forms per application web theme, this application option for all forms in all web themes or overwrite the value per form by using the letter spacing layout option. Sometimes you need a value of -0.2 or -0.4 to get the same alignment between the web client in a browser and AMT Developer Studio/AMT Screens. 

Write <LF> before new print layout

If the option "Write <lf> before new print layout" is checked, for each print layout in the application:

  • every line includes a carriage return (cr). This means that the printer position moves to the beginning of the line.
  • every new line starts with a line feed (lf). This means that the printer position moves to the next line.

This option makes it possible to print a new line over another line.

If the first line on a print layout shouldn't be preceded with a line feed, you can use the suboption NOSKIP in the PRINT instruction. The line number value will then be decremented with one.

warning Attention!
This option can have unexpected consequences for the form feed. Before you use this option, test it thoroughly to understand the exact impact on your environment.

Define Unicode for all extracted files  If enabled, this sets Unicode as the default option for all extracted files. This can be overwritten in the options of individual file IDs. 
Define Unicode for all print files If enabled, this sets Unicode characters as the default option for all print files. This can be overwritten in the options of individual printer assignments.
Execute instruction
'Readfile' in Shared Mode
 
If enabled, the system executes Readfiles in Shared Mode instead of the default Locked Mode 
Create listbox file only in Station folder with Fillbox Normal: When creating listbox files with the Fillbox command, the system creates the file in the general Listboxes folder as set in the Control Center and in a folder with the Station name of the creating station. The listbox file in the general directory allows all Users to read it.
If enabled: The system creates the listbox file only in the folder with the name of the creating station. Only the User on this specific station can read this file.
Initialise inspect counting
When not checked, the system uses the original COBOL Tallying behavior of INSPECT COUNTING. The system does NOT initialize the count variable to zero before the count and adds the count result to the current value of the count variable.

When checked, the system uses the AMT behavior of INSPECT COUNTING. The system initializes the count variable to zero before the count and the count result therefore overwrites any value that was in the count variable before.
Default Embedded fonts in graphical (PDF) reports

The system always enables this option. Therefore, AMT always embeds fonts in PDF files it creates. Disabling this option has no effect, even when you override it using the prout.embeddedfonts := false command.

 

You can find database application options in the Database application options node.

Contents

 Go to top