Integer Field

From Sense/Net Wiki
Jump to: navigation, search
  • 100%
  • 6.0
  • Enterprise
  • Community
  • Planned


Integer Field is used for storing a whole number with value between -(2^31-1) and (2^31-1).


Field handler

  • handler: SenseNet.ContentRepository.Fields.IntegerField
  • short name: Integer

Usage in CTD:

   <Field name="NumberOfPages" type="Integer">

Supported Field Controls

  • Integer Field Control: a simple TextBox control where the user can edit the value (if it is not read-only)


The following properties can be set in the field's configuration:

  • MinValue: (optional) defines the allowed minimum value of the input data.
  • MaxValue: (optional) defines the allowed maximum value of the input data.
  • Step: (optional) specifies the value used to increment or decrement input data.


Fully featured example:

<Field name="MyIntegerField" type="Integer">
	<DisplayName>My integer field</DisplayName>
	<Description>Integer content</Description>

The above example configures the Integer field so that:

  • the minimum allowed value is 10
  • the maximum allowed value is 100

Related links