Variable Descriptions

Calculation Function

These calculations are possible:

Function Description
SUM The sum of all the lines in the list box.
MIN The minimum value of all the lines in the list box.
MAX The maximum value of all the lines in the list box.
AVG The average value of all the lines in the list box.
CNT The number of lines in the list box. To do this set the <Field ID> to 0 (zero) in the @@35.
   
SUMS The sum of all the selected lines in the list box.
MINS The minimum value of all the selected lines in the list box.
MAXS The maximum value of all the selected lines in the list box.
AVGS The average of all the selected lines in the list box.
CNTS The number of selected lines in the list box. To do this set the <Field ID> to 0 (zero) in the @@35.

Check box

The check box syntax is not the same as the others, due to the Check/Unchecked State button. Special actions in the checked state are defined first. Next a vertical bar [|] (ASCII code 179) is set and finally the special actions in the unchecked state are defined.

Example

@@24;PEG_ID_suffix;5;7;?0;;;C;*184;1;|;*184;0;

                              ------   ------

                                |        |

                                |        +- Unchecked special actions

                                |

                                +- Checked special actions

Columns C1, C2, ..., Cn

C1 defines how much the first column is to be moved.

C2 defines how much the second column is to be moved (in delta character positions).

Cn defines how much the nth column is to be moved (in delta character positions).

Note:  Every character is divided into 10 delta character positions. For example, to increase a column by two characters you must specify 20 delta character positions.

Control Attributes @@31

Control character Description
A Automatic scroll
C Center text
L Left-aligned text
M Margin
O Read only
R Right-aligned text
S Automatic size
T Automatic tabulator
U Unreadable

Control Attributes @@32

Control character Description
D Default (not F, N, P or R)
F Fast spin
N No border
P Pad with zeros
R Read only

Control Attributes @@38

The control attributes that specify color and bar are not the same.

Color (Type=1)

You can specify both the color and the geometry of your figures by choosing among these attributes:

Attribute Description Example
1 Rectangle @@38;*58;1;1;
2 Circle @@38;*58;1;2;
3 3D rectangle @@38;*58;1;3;

Bar (Type=2)

To define whether a percent bar should contain text or color, choose between these attributes:

Attribute Description Example
1 Bar without the percent value @@38;`45;2;4;
2 Bar with the percent value @@38;`45;2;4;
3 Bar with the percent value of 0% shown as 100%. @@38;`45;2;4;
4 Bar with the percent value of 0% shown as 100%.  Interval color @@38;`45;2;4;
Note: Concerning Attribute 3 and 4: In Infor M3 PWB an efficiency of 0% is the same as 100%. That is, if the efficiency is 0 (by default), the percent bar shows 100%.

In the INIT files one can define up to 16 intervals. Like attribute #4, you can use a different color to portray each interval. In the Machine panel, for example, you may want to be warned should one of the machines be measured at an efficiency of less than 50%. You can define the efficiency interval of 0 to 50% as a different color and compare it with your opening panel where the efficiency interval from 0 to 100% is green, for example, and the results over 100% are pink.

Control Attributes @@39

In the @@39 function you can choose between these attributes:

Attribute Description
L Left justified image
C Center justified image
R Right justified image
T Top justified image
M (default) Middle justified image
B Bottom justified image
1 (default) Left, center justified image
2 Right, center justified image

Attributes can be illustrated in this manner:

  L   1   C   2   R

T +-------+-------+

  |       |       |

M |       |       |

  |       |       |

B +-------+-------+

Note:  you can only choose one attribute per group

Control Attributes @@40

You can choose between these control types:

Attribute Description Example
S Standard @@40;`1;0;7;?0;10;;ST;;;
T Toolbar-control @@40;`1;0;7;?0;10;;ST;;;

Control Attributes @@41

You can choose between these control attributes:

Attribute Description Example
S * Standard @@41;TABC;0;7;?0;;;SHF;157;
B * Buttons @@41;TABC;0;7;?0;;;BHF;188;
M * Multi line @@41;TABC;0;7;?0;;;MH;215;
H Horizontal direction @@41;TABC;0;7;?0;;;SHF;157;
V Vertical direction @@41;TABC;0;7;?0;;;MV;215;
F Defined width @@41;TABC;0;7;?0;;;SHF;157;
L Left-justified @@41;TABC;0;7;?0;;;SHFL;188;
Note:  the control attributes marked with (*) must be defined first because you can only use one at a time.

Data Reference (Type=0, Substitution)

If the data reference is the same as the value of the data, then the text, icon or bitmap being used is placed in the relevant field.

Delta X Position

This field defines the horizontal position (in 1/10-delta positions) of actual placement within the panel. If nothing is written in this field, then the present position is used as the default.

Delta Y Position

This field defines the vertical position (in 1/10-delta positions) of actual placement in the panel file. If nothing is written in this field, then the present placement is used as the default.

Field ID, Body Panel

The field ID is a unique number within the body panel. It must be a whole number between the values of numbers 0 and 64, and given as a reference number in the @@36 (List box Value Field Calculation).

Zero (0) is used for calculation functions CNT and CNTS only.

Field Length

The number of characters between the start and end control characters (not including them) the usually defines the length of each field. Nevertheless, to include the starting character in the field length, use the @@6 function.

If the field length is not long enough to contain a field reference number, specify the field length in underscores [_]. Then you can specify the field reference number.

Examples

Overlap_Key______$_129&

Network_priority_*__134&

Decimal Fields

In decimal fields you can predefine the position of the decimal point (.) by specifying it into the desired position. The fixed position for decimal point is used only when data is displayed. If no decimal point is defined in the field, the system optimizes the position so that the most important digits are shown first.

Note:  Fields that display date and time are described in the how to change date and time format section.

Field Number

The field number is the standard offset value for the field in the actual register.

Help File Name

The help file name is written without extension HLP.

Hot Key

In the CUA (Common User Access) button, the [\] in the field text is instead shown as an underscore to the letter that it originally preceded.  This letter is a hot key - press [Alt] + the [key] to activate the button.

Image ID

The image ID relates to the bitmap (.BMP file) that is installed in the panel.

Internal Field Number

The internal field number must be an integer > 0 and unique from other definitions within the panel.

List Box Description

A list box is a field in which you can register a series of data (such as the list of data on finished goods shown in the following section).

To define a list box you must use three different panel screen numbers (see example below).

The first panel is called the Main Panel (#20) and contains the list box definition.

The second panel is called the Header Panel (#21) and contains the list box header definition, that is, the title of each column in the list box.

The last panel is the Body Panel (#22), which contains the list box data definition. Often only one Body panel is utilized at a time, but there are some exceptions. When these occur, the Body Panel defined last is the one that controls the data definition.

Note Concerning the Body Panel: Calculations can only be conducted on these four types of data:

Mark Data type
` Real
~ Integer (4)
* Integer (2)
¨ Centi hours

It is vital that one of the four symbols above is included in the Body Panel field description for each field where calculations are to be made.

Example of a Main Panel

#20;1;-1;-2;-3;01;00;79;

.

.

.

@@27;LBOX;HTE;?0;;-1;6;1000;0;;D+2;D+3;D+4;F2;

.

.

.

$LBOX_______________________________________________________________&

.

.

.

Example of a Header Panel

#21;1;-1;-2;-3;01;00;79;

_Opr._Suf__Maskine____O__Opst.__Prod.__Start____Slut_____St____Mængde

Example of a Body Panel

#22;1;-1;-2;-3;01;00;79;

~9___$155_$269____$_129&¨65:__&¨22_:__^56___"56__^57___"57__*70`29__&

Lower Value

The lower value can be defined as a signed integer.

Reference Number Definition

A field reference number, assigned to each field, defines the address of the data and the starting control characters.
Note:  The field reference is usually system dependent and should not be changed.

The field reference number is an integer between 1 and 9999.

The field reference is written between the starting and ending control character. Normally, the field length is large enough to contain the field reference. The field reference should be written immediately after the Start control character. The remainder of the field is filled with underscores [_].

If the field length is not long enough to contain the field references, specify the field length in underscores and write the field reference number afterwards.

You can define fields without any field reference. These fields are used as menu fields or as fields that contain results from internal calculation functions.

Note:  If the reference number in the @@ function and the related field do not correspond, the field is an entry field.

Text (Type=0, Substitution)

If the data reference is equal to the data value, then specify the text, icon or bitmap in the relevant field.

The input can be written as text (without quotation marks), as an icon (. ICO = #) or as a bitmap (. BMP = #), where # specifies the file number of the icon or bitmap. If .ICO or .BMP are used it is shown as an icon or a bitmap instead of as text.

Example

Two icons, red for limited capacity and green for unlimited capacity illustrate the capacity definitions in the opening panel.

@@38;*21;;*21;0;.ICO=3007;                        Finite capacity

@@38;*21;;*21;1;.ICO=3008;                        Infinite capacity

Text, '|' (Type=0, Substitution)

The symbol | is used to mean or. That is, if the data reference is equal to the data value the text can be specified into the first text field or into the second.

Example

In the opening panel capacity definition is illustrated with two icons, red for limited capacity and green for unlimited capacity. The code for this can be divided into two @@38 functions (limited or unlimited)

@@38;*21;;*21;0;.ICO=3007;    Finite capacity

@@38;*21;;*21;1;.ICO=3008;    Infinite capacity

Or it can be written in one function utilizing the | symbol.

@@38;*21;;*21;0;.ICO=3007;|;.ICO=3008;    Definition of capacity finite or infinite

Timeout Value

Value used to define the number of seconds to wait.  These values are available:

Value Description
< 0 The number of seconds to wait is taken from the system parameter.
= 0 There is no waiting (used in-progress windows).
> 0 The number of seconds to wait.

Type

Type specifies whether there has to be a substitute (type=0, default value), whether a color should be specified (type=1) or whether there should be a percent bar (type=2).

Example with type=0&

If the data reference is equal to the data value specify the text, icon or bitmap in the relevant field.

This type can also be used to specify default values such as those in the following panel. In Infor M3 PWB an efficiency of 0 is the same as 100%. With respect to the following @@38 functions you can write in 100% of the panel even though its value is in fact 0.

@@38;`7;0;`7;0;100.0;

@@38;`8;0;`8;0;100.0;

@@38;`9;0;`9;0;100.0;

Example with type=1

Type 1 inserts a color (as shown in the machine summary on the previous page). This function was used:

@@38;*58;1;1;                 Color

Example with type=2

Type 2 inserts a percent bar along with percentages (as shown in the machine summary on the previous page). The following functions were used.

@@38;`7;2;4;                  Efficiency   1.shift

@@38;`8;2;4;                  Efficiency   2.shift

@@38;`9;2;4;                  Efficiency   3.shift

Upper Value

The upper value can be defined as a signed integer.

Validation Actions

Function Description
W Wait for corrective input from the user. The user can alter the incorrect field on the panel.
ADD The record is added to the file database through the index. If it already exists the record will be ignored.
Index The index number as defined in the PMSTYF99.DAT file.
S The input file format is based on semi-colon separated fields.
X Exclude the record if an error occurred. The entire record is skipped.
INS The record is inserted in the file database without using index. The indexes are generated later. This input method is faster than adding but requires unique records.
F The input file format is based on fixed positioned fields.
N No display. When reading the data file nothing is displayed on the screen - faster read. 
REP The record is replaced in the file database if it exists.
DEL The record is deleted in the file database if it exists.