@FILL_ACTION

Type/Length:    CHAR, 10
Modifiable:        Yes

The Screen Management Facility (SMF) uses this system field to return values that indicate the status of operations.  Values can be assigned to this system field to control the form operation.

Table 4 summarizes the values that are returned by @FILL_ACTION and Table 5 shows the values that can be assigned to @FILL_ACTIONTable 6 shows specific functions that associated with @FILL_ACTION assignments in data field triggers.  Table 7 is similar, showing functions for @FILL_ACTION assignments in final triggers.

RETURNS

After FILL Execution:  When the FILL statement/command terminates execution or the final trigger is executed, @FILL_ACTION has one of the following values:

After Perform Always After:  @FILL_ACTION returns "DATA" or "NODATA" when a PERFORM ALWAYS AFTER trigger is executed.  The @FILL_ACTION value can be checked for within the performed trigger.

"DATA" if any of the  following occurred:

ASSIGNMENTS: DATA FIELD TRIGGERS

In a trigger that is associated with a data field, a value may be assigned to @FILL_ACTION to direct the form operation.

Any PERFORM BEFORE trigger associated with the field will be executed.

ASSIGNMENTS: FINAL ROUTINE

While in the final trigger, one of the following values may be assigned to @FILL_ACTION to direct the form operation:

NOTE:  The user can be prevented from terminating a form with the keys in @END_CODE and @CANCEL_CODE.  In any trigger called by a PERFORM AFTER for a field, assign "REDO" or "INVALID" to @FILL_ACTION.

SEE ALSO:  FILL statement/command (earlier in this section).

Returns

Perform W/O Options

Perform Before

Perform After

Final Trigger

OK

NO

YES

NO

YES

CANCEL

NO

NO

NO

YES

DATA

YES

NO

YES

NO

NODATA

NO

NO

YES

NO

Table 4 @FILL_ACTION Returns

Assignments

Perform W/O Options

Perform Before

Perform After

Final Trigger

INVALID¹

YES

NO

YES

YES

END

YES

NO

YES

NO

REDO

YES

NO

YES

NO

RESTART

NO

NO

NO

YES

Table 5 @FILL_ACTION Assignments

¹     INVALID can be assigned in a data field trigger or in a final trigger, but operates a little differently.

Assignments

Exit Form Operation

Restart Form Operation

Ring Bell

Clear Data Entry Areas

Update Data Entry Areas

Cursor Position

INVALID

NO

NO

YES

NO

Current field only

Current field²

END

YES¹

NO

NO

NO

NO

NO

REDISPLAY

NO

NO

NO

NO

YES

Next modifiable field²

REDO

NO

NO

NO

NO

NO

Current field²

Table 6 @FILL_ACTION Assignment Functions - Data Field Trigger

¹     Will execute final trigger before exiting

²     Unless @NEXT_ITEM was set differently

Assignments

Exit Form Operation

Restart Form Operation

Ring Bell

Clear Data Entry Areas

Update Data Entry Areas

Cursor Position

INVALID

NO

NO

NO

NO

NO

First modifiable field only

RESTART

NO

YES

NO

YES

YES

First modifiable field only

Table 7 @FILL_ACTION Assignment Functions - Final Trigger

Back to @FIELD_ID    Next page @NEXT_ITEM