For Adobe ColdFusion application servers Integer

Integer accepts any whole numeric value, and will reject any value with a decimal portion. The default format for the Integer datatype is a numeric field, but many other options are available.

Examples

A plain integer field:

<cf_terrafield
  name="MyInteger"
  datatype="integer"
/>

An integer with a range of values:

<cf_terrafield
  name="Age1"
  datatype="integer"
  caption="your age"
  min="18"
  max="30"
  size="2"
  default="18"
/>

The same field with a spinedit format:

<cf_terrafield
  name="Age2"
  datatype="integer"
  format="spinedit"
  caption="your age [2]"
  min="18"
  max="30"
  size="3"
  default="18"
/>

Once again with a select box:

<cf_terrafield
  name="Age3"
  datatype="integer"
  format="select"
  caption="your age [3]"
  valuelist="18,19,20,21,22,23,24,25,26,27,28,29,30"
  default="18"
/>

Integers associated with a list:

<cf_terrafield
  name="CloudType"
  datatype="integer"
  format="select"
  caption="cloud type"
  valuelist="1,2,3,4"
  displaylist="cumulus,stratus,cirrus,nimbus"
  prompt="> cloud <"
  promptvalue="0"
  default="3"
/>

Integers associated with a query:

<cf_terrafield
  name="PartID"
  datatype="integer"
  format="select"
  caption="Part"
  query="Parts"
  valuecolumn="PartID"
  displaycolumn="PartName"
  prompt="> Part <"
  promptvalue="0"
/>

No comments yet