<!-- CallSelectItems.cfm -->
<!-- This template both calls CF_SELECTITEMS and processes the results -->
<HTML>
<HEAD>
   <TITLE>CallSelectItems.CFM</TITLE>
</HEAD>
<BODY BGCOLOR="white">

<CFIF ParameterExists( RightItems ) is "Yes">
   <H3>Last Selected</H3>
   <CFOUTPUT>#RightItems#</CFOUTPUT>
   <H3>Last Unselected</H3>
   <CFOUTPUT>#LeftItems#</CFOUTPUT>
<CFELSEIF ParameterExists( UserCancel ) is "Yes">
   <H3>No Items Selected </H3>
<CFELSE>
   <CF_SELECTITEMS
      DATASOURCE="Picnic"
      LISTTABLE="PicnicItems"
      VALUEFIELD="ItemCode"
      DISPLAYFIELD="Description"
      SELECTEDITEMS="SELECT DISTINCT ItemCode FROM 
OurPicnicItems WHERE Year=1996"
      ONOK="/testarea/p/callSelectItems.cfm"
      TITLE="Items in the 1996 picnic"
   >
</CFIF>
</BODY>
</HTML>