Device Design

1108 Views


Understanding Device Designs

A device design specifies the layout of fields and constants on panels or report designs that are associated with a function.

There are two types of device designs:

· Panel designs which specify the layout of fields and constants for interactive functions

· Report designs which specify the layout of fields and constants for report functions Both types of device designs are similar in overall structure and are modified with similar editors.

However, there are some features that apply to each specific device design.

If a Synon/2E function has a device design associated with it, a default design will be created by Synon/2E when you create the function. You can then modify this design.

A device design specifies the following:

· Which fields are present on the panel or report

· The position of fields and constants on the panel or report

· The circumstances under which particular fields are to be displayed

· Whether the field is input capable or protected

· Whether the field is optional or required 

· The display attributes and editing of fields on the panel or report

Basic Properties of Device Designs

The three basic properties of device designs are: design standard, formats, and fields.

The overall layout of the design is determined by the standard header/footer selected and the function type.

The appearance of fields on the device designs is denoted by the following symbols. 

Synon provides default device designs based on the function options, standard header/footer, function type, and access path.

The first time you enter the device design, Synon/2E defaults the design for you according to the function type, access path, model values, and function options.

Synon obtains fields for a default device design from the following three sources:

  • Header/footer associated with a device function can contain a number of different fields including panel title, job, and user.
  • Access Path to Which the Function Attaches - All fields in the access path are included on the device design by default when the function is first created.
  • Function Parameters fields with a role of ’mapped’ are included on display device designs.

The panel design usually consists of multiple record function (EDTFIL, DSPFIL, or SELRCD), a single Record Function (EDTRCD 1,2,3, DSPRCD 1,2,3, or PMTRCD), or a transaction function (EDTTRN or DSPTRN).

For subfile record fields, Column Heading text is used; for other fields, the Before text is used.

A subfile selector field, *SFLSEL, is added to the beginning of the subfile record for device designs which include subfiles.

Default Layout

For single-record style panels (EDTRCD, DSPRCD, PMTRCD), Synon lays out the fields on the panel design as follows:

· Key fields from the based-on access path are placed, one field per line, on both key and detail panels.

· Non-Key fields from the based-on access path are placed, one field per line, on detail panel designs.

For Multiple-record style panels (EDTFIL, DSPFIL, SELRCD), Synon/2E lays the fields out on the device display as follows:

· Non-restrictor fields from the format of the based-on access path are placed on each subfile record, one field after another on the same line. Any fields which are defined as restrictor parameters are omitted from the subfile record and are, instead, placed on the subfile control record.

· Key fields from the access path which are also restrictors are placed on the subfile control record.

· For each key field in the based-on access path, a positioner field is placed on the subfile control record. This field can be used to position the loading of the subfile to start at a particular database record.

· In DSPFIL and SELRCD function types, for each non-key field in the based-on access path, a selector field is placed on the subfile control record. The nature of the selection can be specified using the Edit Screen Entry Details panel.

· Map function parameter fields which cannot be mapped to any existing field are placed on the panel, one field per line, before the other fields

If there are more fields than will fit on a panel, the design can extend past column 80 to 132, provided you have the appropriate terminals. If you require a 132 display, you need to set the function option for 132 on your standard header/footer.

For single- and multiple-record style panels (EDTTRN, DSPTRN) which must attach to an SPN access path possessing two formats,

· The common major keys of the two formats of the based-on access path are placed on the subfile control record.

· Fields from the first format of the access path are placed on the subfile control record one after another, on the same line

Editing the Device Design Layout

Synon lets you edit the layout of your device design to display the information that you need to see.

Only 80 characters of the panel design can be displayed at a time. This means that sometimes all fields in a record cannot be displayed.

There are function keys that will allow you to shift the panel horizontally, moving left to right, to realign or to display the selected fields of your record that exceed the 80-character design layout.

While you are in your device design, you can move or rearrange the order of the fields on your display with the following function keys.

· F1 moves the field 40 columns to the left.

· F2 animates the panel using Synon/1E.

· F3 exits the panel.

· F4 moves the field 40 columns to the right.

· F5 edits device format details of the format where the cursor is positioned.

· F6 cancels the pending operations.

· F7 displays the Edit Device Design Format Relations panel.

· F8 moves the selected field to the cursor position.

· F9 wraps text onto the next line starting from the field on which the cursor is positioned.

· F10 moves text one column to the right.

· F11 removes the line on which the cursor is positioned.

· F12 aligns text below the cursor position.

· F13 fast exits the panel.

· F15 moves panel window to the left margin.

· F16 moves window to the right margin.

· F17 displays a list of device formats.

· F18 displays the Edit Field Attributes panel.

· F19 adds new function fields to the device design.

· F20 edits the function field on the device design.

· F21 adds a line above the cursor position.

· F22 moves text one column to the left.

· F23 adds a constant field to the device design.

· F24 aligns all fields under the cursor position.

Deleting a Field from screen: You can remove a function field from the device design using the following instructions:

1. At the device design, place the cursor on the selected function field and press F20. The Edit Function Field panel displays.

2. Delete the function field. Press F11.

Adding Constants: You can add constants to the device format using the following instructions:

Add the constant. At the device design, place the cursor on the field after which the constant is to appear and press F23.

Deleting Constants: You can remove a constant using the following instructions:

Delete the constant. At the device design, place the cursor on the constant and press Enter and then press F11.

Take Z on Subfile Control

Take Z on Subfile Record

Action Diagram

From action diagram, take F17 key to get Screen Design.

Put cursor on Customer Id field and take F18 key to edit screen field attribites

Post Comments