For Adobe ColdFusion application servers MoveSelect

MoveSelect is designed to facilitate selection of multiple items from a list. Two boxes are displayed alongside each other, with the left box containing a list of options. By selecting items in this list and pushing buttons, the user compiles the desired list in the right box. The advantage of this interface is that the user may compare the two lists simultaneously, one being the chosen items, and one being the items not chosen. To use this format, either supply valuelist and optional displaylist OR supply query, valuecolumn and optional displaycolumn.

The following special attributes are available for MoveSelect:

  • heading1
    Optional. Heading for the left-hand (available) column.
  • heading2
    Optional. Heading for the right-hand (selected) column.
  • buttonPassthrough
    Optional. Attributes to pass through to the button tags that provide the controls. Remember to escape any double quotes (") or hashes / pound signs (#) by doubling them. The default is style="width : 2em;" (written buttonPassthrough="style=""width : 2em;""" ).

Other non-TerraField attributes will be passed through to the underlying select box tags (<select>).

Examples

A MoveSelect box field built from a list:

<cf_terrafield
  name="buttons"
  format="moveselect"
  valuelist="Back,Copy,Cut,Disconnect,Discuss,Edit,Encoding,Favorites,
    Folders,Forward,Full Screen,History,Home,Mail,Map Drive,Media,Messenger,
    Paste,Print,Print Preview,Refresh,Related,Search,Size,Stop"
  default="Back,Forward,Stop,Refresh,Home,Search,Favorites,Media,History,
    Mail,Print,Edit,Discuss,Messenger"
  heading1="Available toolbar buttons:"
  heading2="Current toolbar buttons:"
/>

No comments yet