Previous Topic: Execute Entity Actions in One or Two StagesNext Topic: Use the Enter Command to Display


Use the Enter Command to Update

You can have Procedure Synthesis generate Action Diagram logic that executes commands based on the contents of screen fields. You can determine that when the user presses Enter after changing the data in any field except the screen identifier fields, the screen updates the data. This assumes that the Enter key is assigned a command of ENTER.

The following example shows the logic if you choose to have the user press Enter to update the data:

NOTE The ENTER command is used to request an UPDATE.
Convert ENTER to UPDATE if the key has not changed.
IF COMMAND IS EQUAL TO enter
AND import customer number IS NOT EQUAL TO
import_hidden_id customer number
COMMAND IS display