Step 4. Add buttons to the WebRoutine
WAM010 - Using WEB_MAPs
In this step, you will learn how to add a row to the generated table and then create the buttons that will invoke this WebRoutine. A reentrant WebRoutine is designed so that from the web page that is presented to the user, after the WebRoutine ends, navigation elements are provided that will allow the WebRoutine to be initiated once again. Data on the page will be used in the WebRoutine to control the logic performed by the routine. This technique is used to reduce the number of WebRoutines required for a particular application.
1. Add a new row to the table:
a. Right click in the table that contains the data entry fields. For example click to the right of the Employee Number field input box and then right click.
b. Select the
menu item and choose the option from the pop-up menu. Click OK. A row will be added to the end of the table.
2. This step adds the
button:a. From the Favorites /
, drag and drop a eblet into the leftmost cell of the newly added row.b. Click on the empty space of the cell containing the button.
c. Select the
.d. Set the left.
property to3. Set the
button properties:a. Select the new button in the
.b. Set the Read.
toc. Set the WMdemo.
tod. Click in the STDRENTRY from the dropdown list. In the column enter R and leave the checkbox as Literal. Click to close the dialog and save your changes. The button click will return the field STDRENTRY with a value of R.
column for the property and use the button to open the dialog. In the column select
4. Add the button to reload the WebRoutine:
a. From the
, drag and drop a weblet into the rightmost cell of the newly added row.b. Click on the empty space of the cell containing the button.
c. Select the
.d. Set the right.
property to5. Set the button's properties:
a. Select the new button in
.b. Set the WMDemo.
toc. Set the WMdemo.
tod. Click in the STDRENTRY from the dropdown list. In the column enter ' ' and leave the checkbox as Literal. Click to close the dialog and save your changes. The button click will return the field STDRENTRY with a blank value.
column for the property and use the button to open the dialog. In the column select
6. Save the changes to WMdemo.