In this step you will define a new response WebRoutine which the AJAX enabled Dynamic Select box for sections will invoke.
- Select the Source tab.
- Create a new response WebRoutine, that will be invoked by the sections dynamic select box when DEPTMENT changes. The requirements for this WebRoutine are:
- Compile your WAM.
- Open WebRoutine Details in the Design view.
- Select the Section's dynamic select box and set up additional properties as follows:
updateOnFieldChange | DEPTMENT
|
updateWrName | uSectDD
|
updateFieldsToSubmit
| Field: DEPTMENT
|
Field Value: DEPTMENT
|
- Set the updateFieldsToSubmit property by selecting the Value column and clicking on the Ellipsis
button to open the Design of… property's dialog.
- Select a field Name of DEPTMENT
- For Value, enter DEPTMENT.
- Select the Field radio button.

- Click OK to close the dialog.
- Save your WAM.
- Test your WAM by running the Begin webroutine. You should now be able to select a new department and notice that the sections dropdown list is refreshed.
In a later exercise, you will learn more about using the dynamic select box weblet.