1. Create a new WAM:

         Name: iiiEmpMaint
         Description: Employee Maintenance
         Layout Weblet: iiilay01

  2. Begin by defining the lists needed to support the main page WebRoutine, ShowPage.

  3. Define a ShowPage WebRoutine.

  4. Define a method routine BuildDepts to populate list DEPTS.

    The routine should:
  5. Define a method routine BuildSects to populate list SECTS.

    The routine should:
  6. Invoke these method routines at the end of the WebRoutine ShowPage

    Your code should look like the following. New code is shown in red.
    . . . . .
    #com_owner.BuildDepts I_Dept(#deptment)
    #com_owner.buildsects I_Dept(#deptment)

    Endroutine

  7. The Dynamic Select Box weblet will be set up to invoke a response WebRoutine to re-populate the list SECTS when field DEPTMENT changes.

    This will require a WebRoutine, UpdSects defined as follows:
  8. Compile your WAM.