Step 6 Plug In and Test the Image Command Handler

VLF Windows Application Development

Step 6. Plug In and Test the Image Command Handler

VFW080 – Using an Explorer Component

1.  Open your Framework.

a.  Open the Employees business object properties

b.  Select the Commands Enabled tab

c.  Select the Images command handler and plug in the reusable part, iiiVFW16.

d.  Save and restart your Framework.

You could use the Find Employee Images form to find your own images of any supported type. A suitable set of images is available for these exercises on the LANSA / Support / Documentation web site (see http://www.lansa.com/support/docs/index.htm). Look under the Visual LANSA group for VFW_WAW Workshop – Extra Files.

The zip file contains a folder \PHOTOS which contains 16 small facial images (80 x 90 pixels).

2.  Select the Images tab for an employee. Use the Find Employee Image form to locate C:\LANSA\PHOTOS folder. Select an image and click OK, which should close the Find Image form.

3.  Click the Save button on the Images command handler.

4.  Save images for a number of employees and check that images can then be retrieved and displayed when an employee is selected in the Instance list.