For Adobe ColdFusion application servers IntegerList

IntegerList accepts a comma-delimited list of integers. IntegerList is designed to be used with select boxes and checkboxes where a number of values may be selected. Although the examples use ValueList and DisplayList, typically, this field might be built using a query and the attributes Query, ValueColumn, and DisplayColumn. Here, the same information is presented three different ways.

Examples

IntegerList and a select box (hold down Ctrl to select multiple). Note the use of an alternative delimiter to allow for commas in the data.

<cf_terrafield
  name="Interests1"
  datatype="integerlist"
  format="select"
  multiple="yes"
  caption="Your interests [1]"
  prompt="Select your interests"
  promptvalue="0"
  valuelist="2\81\5\4\6\7\95\8\9\10\11\12\13\14\15\16\17\18\89\103\94\19\20\21\22\93\23\24\25\26\3\27\28\29" 
  displaylist="Annuals\Architecture\Bonsai & SE Asia\Books for Growers\Botanical Science\Bulbs\Cacti & Succulents\Climbers\Cut Flowers\Economic Horticulture\Ethnobotany\Forestry\Garden Literature\Ground Covers & Grasses\Herbs\Landscaping & Design\Low Water Gardening\Mosses, Ferns, and Fungi\Native Plants\Natural History\New Zealand Plants\Orchids\Perennials\Reference\Regional - Pacific NW\Regional-SE & Central\Rhododendrons & Azaleas\Rock Gardening\Roses\Small Gardens\The Art of Plants\Treasures from S. Africa\Trees and Shrubs\Tropicals & Exotics"
  delimiters="\"
  size="10"
/>

IntegerList and checkboxes

<cf_terrafield
  name="Interests2"
  datatype="integerlist"
  format="checkbox"
  cols="4"
  caption="Your interests [2]"
  valuelist="2\81\5\4\6\7\95\8\9\10\11\12\13\14\15\16\17\18\89\103\94\19\20\21\22\93\23\24\25\26\3\27\28\29" 
  displaylist="Annuals\Architecture\Bonsai & SE Asia\Books for Growers\Botanical Science\Bulbs\Cacti & Succulents\Climbers\Cut Flowers\Economic Horticulture\Ethnobotany\Forestry\Garden Literature\Ground Covers & Grasses\Herbs\Landscaping & Design\Low Water Gardening\Mosses, Ferns, and Fungi\Native Plants\Natural History\New Zealand Plants\Orchids\Perennials\Reference\Regional - Pacific NW\Regional-SE & Central\Rhododendrons & Azaleas\Rock Gardening\Roses\Small Gardens\The Art of Plants\Treasures from S. Africa\Trees and Shrubs\Tropicals & Exotics"
  delimiters="\"
/>

IntegerList and moveselect

<cf_terrafield
  name="Interests3"
  datatype="integerlist"
  format="moveselect"
  caption="Your interests [3]"
  valuelist="2\81\5\4\6\7\95\8\9\10\11\12\13\14\15\16\17\18\89\103\94\19\20\21\22\93\23\24\25\26\3\27\28\29" 
  displaylist="Annuals\Architecture\Bonsai & SE Asia\Books for Growers\Botanical Science\Bulbs\Cacti & Succulents\Climbers\Cut Flowers\Economic Horticulture\Ethnobotany\Forestry\Garden Literature\Ground Covers & Grasses\Herbs\Landscaping & Design\Low Water Gardening\Mosses, Ferns, and Fungi\Native Plants\Natural History\New Zealand Plants\Orchids\Perennials\Reference\Regional - Pacific NW\Regional-SE & Central\Rhododendrons & Azaleas\Rock Gardening\Roses\Small Gardens\The Art of Plants\Treasures from S. Africa\Trees and Shrubs\Tropicals & Exotics"
  delimiters="\"
/>

No comments yet