When your window comes up, it displays the first Customer and its Orders automatically. This is very nice, but of course you would like to see other Customers as well. You can extend your window so that you can walk through the Customers in sequence and see the Orders for each Customer as you go. To do this, you add some buttons to the window and then define triggers for them. Triggers are blocks of ABL code that are executed when the user clicks a button.

To make room for some buttons, grab all the fields in your window by clicking with the mouse to the upper-left of the first field, and then dragging the mouse to draw a rectangle around all the fields. Drag them down slightly so that there is room at the top of the window.

To add a button to your window:

  1. Click the Button icon on the AppBuilder Palette and then click again near the top of the design window. The AppBuilder draws a button for you, gives it a default name of Button-1, and labels it Button 1:
  2. In the AppBuilder main window, change the object name to BtnFirst and the label to First:

    You see that the AppBuilder changes the button label in the design window for you when you tab out of the Label fill-in field.