2.4 Creating Named Groups
A group is simply a collection of one or more DDS records. The records in a group
generally combine to form either a screen (DSPF) or a report (PRTF). For each group, there
is one Design page.
Follow these steps:
- From the left-hand side of the
CODE Designer window, expand the list to see a list of records in the DDS Tree.
- Then on the right-hand side of the
window, select the Details tab.
- From the Details page, select the
subfile record CUSTLIST.
- Right-click on the record and
select Design from the pop-up menu.
- The Design page appears displaying
the subfile and the subfile control record. This group of records is called UNTITLED
and the name of the currently active record appears in the drop-down list located on the
top row.
- From the drop-down list, switch to
the subfile control record by selecting LISTCTL.
- To change the name of the group,
right click on the right-hand pane and select Properties > Group to
bring up the Group properties notebook.
- Enter the name SELCUST
in the Group field.
- To add a record to the group,
select CUSTFOOT in the Available list, then click >>.
Close the Properties notebook. Close the CODE Designer (Select File > Exit).
Click YES to save the DDS changes.
- Click on
to indicate that you've done all the steps.
This completes Exercise 2. You have been introduced to
the CODE Designer and are familiar with some of its features such as constants, fields and
groups. You should now have some screens for the Customer Inquiry application.
Now you are ready to launch the CODE Editor from CPO to learn about some editor
features such as prompts and format lines to create the ILE RPG/400 source for the
Customer Inquiry application.
But before you do, we recommend you do the Quiz.