Skip to content

How to force an integer field in the form

Franziska Zander edited this page Oct 16, 2019 · 3 revisions

The XML Data Type integer (and all combination like nonnegativeinteger) is mapped to Decimal (see https://docs.microsoft.com/en-us/dotnet/standard/data/xml/mapping-xml-data-types-to-clr-types).

To have a field in the form which forces a Number in the BEXIS2 UI use:

  • xs:short -> Int16
  • xs:int -> Int32
  • xs:long -> Int64 (-> int32; Telerik only allows integer max / min values)

or for unsigned:

  • xs:unsignedInt -> UInt32
  • xs:unsignedLong -> UInt64 (-> int32; Telerik only allows integer max / min values)
  • xs:unsignedShort -> UInt16

Additional set max / min values are currently ignored

Clone this wiki locally