Defining Functions › Device Functions › Defining Device Functions
Defining Device Functions
CA 2E provides comprehensive interactive design facilities that allow you to specify a panel or report layout. CA 2E interactive device design editor allows you to define field attributes, positioning, conditioning, user function keys, and panel or report literals for interactive display or written presentation.
You access this interactive editor from the Edit Functions, Edit Function Devices, or the Display All Functions panels.
The device standard header device functions are:
- Define Screen Format (DFNSCRFMT)—This function allows you to define a standard screen header and footer for use by other functions that have screen designs attached to them
- Define Report Format (DFNRPTFMT)—This function allows you to define a standard report header and footer for your Print File report functions
The single-record device functions are:
- Prompt Record (PMTRCD)—Defines a program to prompt for a list of fields defined by a specified access path. The validated values can be passed to any other function.
- Display Record (DSPRCD)—Defines a program to display a single record from a specified database file. If no key is supplied, a key panel prompts for a key.
- Display Record 2 panels (DSPRCD2)—Defines a program that is identical to the DSPRCD function, except that it allows the database record details to extend to two separate display device pages.
- Display Record 3 panels (DSPRCD3)—Defines a program that is identical to the DSPRCD function, except that it allows the database record details to extend to three separate display device pages.
- Edit Record (EDTRCD)—Defines a program to maintain (add, change, and delete) records on a specified file, one at a time. If no key is supplied, a key panel prompts for a key.
- Edit Record 2 panels (EDTRCD2)—Is identical to the Edit Record function, except that it allows the record details to extend to two separate display pages.
- Edit Record 3 panels (EDTRCD3)—Is identical to the Edit Record function, except that it allows the record details to extend to three separate display pages.
The multiple-record device functions are:
- Display File (DSPFIL)—Defines a program to display the records from a specified file, many at a time, using a subfile. The subfile is loaded a page at a time when you press Rollup or F8.
- Select Record (SELRCD)—Defines a program that displays the records from a specified file, many at a time, using a subfile. The program allows you to select one of the records. The selected record is returned to the calling program. This function is called from a function that requested a selection list.
- Edit File (EDTFIL)—Defines a program to maintain the records on a specified file, many at a time, using a subfile. The subfile is loaded a page at a time when you press Rollup or F8.
The single- and multiple-record device functions are:
- Display Transaction (DSPTRN)—Defines a program to display the records from a specified pair of database files. The pair must be connected by an Owned by or Refers to relation.
- Edit Transaction (EDTTRN)—Defines a program to maintain the records on a specified pair of header and detail files. The pair must be connected by an Owned by or Refers to relation.
The printer device functions are:
- Print File (PRTFIL)—Defines a program to print records from a specified access path.
- Print Object (PRTOBJ)—Defines a particular report fragment which prints the records from a specified access path at any point within a Print File function. Print Object functions can be embedded within other Print Object functions.