Step 2 Create Form Update from List

Visual LANSA

Step 2. Create Form – Update from List

FRM085 - Update from a Grid

1.  Create a New Form / Basic Form iiiUpdFromGrid – Update from List. The form should be RDMLX enabled.

2.  Enlarge the form. Drop a Group box to the top of the form. Resize it and change its Caption to Search. Your form should look like the following:

3.  Drop another Group Box into the left side of the Search Group Box and resize it. Change its Caption to Start Month. Your form should look like the following:

4.  From your Last Opened tab, drop field iiiMONTH into the Start Month Group Box.

5.  From the Controls tab, drop a Push Button into the Start Month Group Box. Resize the Group Box as needed and position the Push Button as shown.

6.  Change the Push Button Name to SEARCH_MONTH and change its Caption to Search.

7.  Save your form.

8.  From the Controls tab, drop a Group Box into the Search Group Box, on the right hand side. Change its Caption property to Surname:

  

9.  From the Repository tab, Fields, drop field iiiSRCNME into the Surname Group Box. Change its MarginLeft property to 0, and resize and position it as required.

     Hint: Temporarily extend both the Search and Surname Group Boxes to the right, in order to reduce the width of the field iiiSRCNME. Alternatively, select the field iiiSRCNME and reduce its Width property.

10. From the Controls tab, drop a Push Button into the Surname Group Box. Change its Name property to SEARCH_NAME and change its Caption to Search. Resize and position it.

     Hint: from the Design ribbon, the / Align dialog has been used to align the Start Month and First Name group boxes at their top edge.

11. Save your form.

12. Drop a Status Bar onto the bottom of the form.

13. Drop a List View component onto the left side of the form. Resize it. Change its Name property to EMPLOYS.

14. Drop fields EMPNO and FULLNAME into the list view.

15. Select the EMPNO column. Change its Caption to ID. Change its CaptionType to Caption. Make the column wide enough to display the field EMPNO.

16. Select the Full Name column.

     Change its Caption to Full Name and its CaptionType to Caption.

     Change its WidthType to Remainder.

     Your form should look like the following:

17. Save your form.