Previous Topic: Between Existing LinesNext Topic: Deleting Lines and Fields from the Panel Layout


Adding Fields to an Existing Panel Layout

Any time you add a new field to a layout, you must specify it with the new‑field symbol. This is true both when a panel is first laid out and when you add fields during modification of a panel. When you modify a panel, you can add fields at any point in the layout. When the modifications are transmitted, the fields are renumbered to accommodate the new field or fields and the new‑field symbol is changed to a start‑field symbol.

The following example adds two new fields to the sample layout used throughout this chapter. The new‑field symbol used in this example is the plus sign (+). The panel was opened for input by entering the INPUT command, as explained in the section titled Between Existing Lines.

=> ------------------------------------------------------------------------------- IDEAL: PANEL LAYOUT NULL PNL ADRMPNL1 (001) TEST SYS: DOC FILL‑IN Start ¬ End ; New + Rep @ Del * Move > Copy ¢ Dest ! Width 80 ........1.........2.........3.........4.........5.........6.........7.........8 ¬EMPLOYEE NAME¬____________________________________; DEPT CODE______;

In this example, the SCROLL TOP command acts as if you pressed Enter before the scroll request. The added fields are incorporated into the layout and the new‑field symbol is changed to the start‑field symbol. Since null‑fill is in effect, any unused inserted lines are deleted.

=> ------------------------------------------------------------------------------- IDEAL: PANEL LAYOUT NULL PNL ADRMPNL1 (001) TEST SYS: DOC FILL‑IN Start ¬ End ; New + Rep @ Del * Move > Copy ¢ Dest ! Width 80 ........1.........2.........3.........4.........5.........6.........7.........8 ================================== T O P ==================================== ¬ORDER#¬______¬CUSTOMER #¬____¬ORDER DATE¬________; ¬EMPLOYEE NAME¬____________________________________; ¬DEPT CODE¬______; ¬ADDRESS¬__________________________________________; ¬QTY; ¬ITEM NO; ¬ITEM DESC; ¬PRICE; ¬AMOUNT; ¬___; ¬_______; ¬_____________; ¬_______; ¬_______; ¬PHONE NUMBER¬___¬_______; =============================== B O T T O M =================================