IBM Support

Change the Default Behavior of the New Row Button

Question & Answer


Question

Is it possible to prevent a new row from being created if the user presses the enter key during data entry?

Answer

If the user presses the Enter key instead of the Tab key during data entry a new row gets created. The user desires that either the Enter key or the Tab key be designated for use during data entry to move to the next field.

The default behavior of the New Row button within each application can be changed to prevent a new row from being created when the Enter key is pressed on a data entry field.

Procedure: The following example is for the Labor Reporting application. The steps are the same for other modules.

  1. Go to System Configuration | Platform Configuration | Application Designer
  2. Enter "labrep" in the Application field and press Enter
  3. Open the record for the Labor Reporting application
  4. Scroll to the bottom of the form and highlight the New Row button
  5. Click on the Control Properties icon
  6. Uncheck the checkbox for "Default Button?"
  7. Save the record
  8. Close the Pushbutton Properties dialog

Go to the Labor Reporting application to verify the results

If you wish to prevent the Enter key from creating a new row inadvertently during data entry, use the following procedure to configure it on an application-by-application basis. (you will have to use the Application Designer module to configure each application desired)

The default behavior of the New Row button can be changed to prevent a new row from being created when the Enter key is pressed on a data entry field

The following example is for the Labor Reporting application. The steps are the same for other modules.
  1. Go to System Configuration | Platform Configuration | Application Designer Enter "labrep" in the Application field and press Enter
  2. Open the record for the Labor Reporting application
  3. Scroll to the bottom of the form and highlight the New Row button
  4. Click on the Control Properties icon
  5. Uncheck the checkbox for "Default Button?"
  6. Save the record
  7. Close the Pushbutton Properties dialog

Go to the Labor Reporting application to verify the results

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Component":"System: User Interface","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"Version Independent","Edition":"Enterprise","Line of Business":{"code":"LOB02","label":"AI Applications"}}]

Document Information

Modified date:
13 April 2021

UID

swg21431695