In this step you will complete the WAM by adding WebRoutines to display details for sections and employees.
- Define a Group_by SECDATA for fields SECTION, SECDESC, SECADDR1, SECADDR2 SECADDR3, SECPCODE and SECPHBUS. All fields should have an output attribute.
- Create a new WebRoutine SecDet, based on the following:
- Compile the WAM.
- Define a Group_by EMPDATA for fields EMPNO, SURNAME, GIVENAME, ADDRESS1, ADDRESS2, ADDRESS3, POSTCODE, PHONEHME, PHONEBUS, DEPTMENT, SECTION, SALARY, STARTDTE, TERMDATE. All fields should have an output attribute.
- Define a working list SKILLS, for fields SKILCODE, SKILDESC, GRADE, COMMENT, DATEACQ. All fields should have an output attribute.
- Open the WebRoutine SecDet in the Design view. Drop the Simple blank layout onto the page.
- Use the Web / Manage External Resources menu option to give the web page the theme styles to match your common layout.
- Save your changes.
- Create a new WebRoutine EmpDet.
- Compile the WAM.
- Open the EmpDet WebRoutine in the Design view. Drop the Simple blank layout onto the web page.
- On the Design ribbon use the External Resources button, then Manage External Resources dialog to add the Style external resources to match those used in your common layout.
- Open the SecDet WebRoutine in the Design view. Drop the Simple blank layout onto the web page.
- On the Design ribbon use the External Resources button, then Manage External Resources dialog to add the Style external resources to match those used in your common layout.
- Save your changes.
- Test your WAM by running the DeptView WebRoutine in the browser. You should be able to expand the tree view and select a department, a section or an employee to display its details.
- You probably found that the Navigation panel needed more space to display employee details.
- Open the DeptView WebRoutine in the Design view.
- Select the table containing the tree view and Navigation panel. Do this by selecting a corner of the table. Alternatively, click anywhere inside the table and use the Outline tab to locate and select the table.
- Drag the right hand edge of the table to the right.
- Drag the bottom of edge of the table down.
- If you examine the Style properties for the table you will see its current size in pixels (for example, width: 800px and height: 560px).
- You can also hover over the center border and drag this to the left to match the size of the tree view weblet.
- If necessary adjust the size of the Navigation panel to use the space now available
- Save your changes
- Re-test your WAM.