Before you begin, you must complete Exercise 7.6: Creating new screens.
Now you add some columns to the subfile using the Design page. The subfile should be positioned on row eight. You use the cursor to specify the location of the part you want to put on the screen, in this case your subfile.
To add fields on the subfile:
Six fields appear in a vertical column. This is because the subfile you created, currently specified a SFLPAGE (visible list size) of six.
Note the current row and column appear just above the field as you move
it.
The toolbar at the top of the Design page is a very convenient place to monitor and manipulate the currently selected parts.
Now you will create an additional column in the subfile.
Creating an additional column
To create an additional column:
If you can't see the field with the cursor position on your screen, click the Maximize button in the top right corner of the screen. You can use the cursor keys or the mouse to move the cursor.
+O(30)
and then press the back arrow (not Backspace!) to select the text you created.
Notice from the Selected DDS page that you have created a text constant containing +O(30).
$666,666.66
and then press the back arrow.
Now wouldn't it be better if we could just tell the Designer what we wanted the number to look like and then have Designer generate all the cryptic EDTCDEs to make it happen?
Just below the palette on the left there are three spin buttons. The top one, Subfile size, specifies the total number of entries in the list that will be filled in by the application. The second one, Subfile page size, is how many entries appear on the screen.
The Design page is updated accordingly.
You have added some columns to the new subfile record screen and now you are ready to begin Exercise 7.8: Switching between multiple records.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.