Device Functions - 3

550 Views


SELRCD - Device Function

The Select Record (SELRCD) function defines a program to display the records from a specified file using a subfile.

The program allows the end user to select one of the records and the key of the selected record is returned to the calling program.

For each field on the based-on access path, an associated input-capable field is present on the subfile control record.

You can use these fields to control how records from the database are displayed.

There are three types: · Restrictor parameters for the subfile (protected key fields). · Positioner parameters for the subfile (unprotected key fields). · Selectors (non-key fields).

You can specify the operation (Equal to, Contains, Greater than) by which the selection is to be made, using the Edit Screen Entry Details panel.

The SELRCD function type differs from the Display File function type.

Records are similarly displayed as a list or subfile, but the SELRCD function includes processing to return the key values to the panel of the calling function whenever you select an item with a line selection option of 1 on action bar.

You can attach a SELRCD function to a Retrieval (RTV), Resequence (RSQ), or Query (QRY) access path.

The QRY access path lets you specify virtuals as key fields.

If you define a partially restricted key to a SELRCD function, the SELRCD function displays a subset of the total number of records.

If you do not restrict the keys, you can use them to position the subfile display.

The SELRCD function executes in *SELECT mode only. There is only one display panel for this function type.

There is no default update processing for this function.

The following is an example of a SELRCD.

Post Comments