HP Integrity NonStop J-Series User Manual
Page 142
![background image](/manuals/396723/142/background.png)
TAILORING AN APPLICATION
Providing Automatic READ Operations
S5044-044
EMPLOYEE-PROG
Page 1/1 Approx key EMPNUM
* EMPNUM 0001
* EMPNAME John James__________
* DEPT
REGNUM 01
BRANCHNUM 01
JOB President______
AGE 42
SALARY 9000.00
VACATION 12
Ready for input . . .
:PATHCOM $one;RUN employee-prog
Application
Employee
Figure 6-10. Automatic READ for First Level Box
If you supply ON as a value for both FILL and VALUES attributes
for a box, the application will display initial values from a
record description, even if no records exist in a file. In some
cases, appearance of these initial values might be confusing to
the person who uses the application. In other cases the initial
may be an enhancement. These cases are described later in this
section.
Automatic READ Operations for a Child Box
If you supply ON for the FILL attribute of a child box, an
application performs an automatic read for the child box whenever
an operation changes values in the parent box. Consider, for
example, the application ("employee-info") described earlier in
this section. You can generate this application so that it
automatically reads records for "depends-box" whenever a user
performs an operation on "employ-box." To provide this ability
for "employee-info," you must generate the application with FILL
ON for "depends-box" as in the following series of commands:
6-24