Step 3. Add Department Dropdown to Employee Details command handler
VFW072 – Create a Department Dropdown Reusable Part
In this step you will change your Employee Details command handler to use your new reusable part.
1. Open the
command handler iiiVFW06 in the editor.2. Delete the department combo box which you added in VFW050.
a. Switch to the source and locate the errors which this action has created.
b. Delete the
for the combo box (for example, CBCL_1) and the (for example, FWLI_4).c. Delete all the code associated with the combo box from the uExecute and uInitialize method routines
d. Compile your component to check that you have no errors.
3. Drop the Department Dropdown RP (iiiVFW13) onto the command handler left hand panel (BODY_HEAD). Because this panel has a flow down manager, your component will be positioned below the existing fields.
4. Position the department dropdown:
a. Select the existing department field and check its DisplayPosition which should be 10.
b. Give your department dropdown component a DisplayPosition property of 10.
5. Delete the existing department code field from the panel.