MinValue Attribute

For numeric fields, MinValue specifies the minimum value. When MinValue is not specified, -1 is assumed. Use -1 to indicate no minimum. In the example that follows, MinValue is not specified for FIELD1, so -1 is assumed. For FIELD2, MinValue is specified as -1, indicating no minimum as with FIELD1. For FIELD3, a MinValue of 4 is specified.

MinValue does not prevent entry of a value into the field. Rather, a save is not allowed when the value entered is less than MinValue.

Table Spec Fields:

  <Fields>
    <NumberField Type="int" Name="FIELD1"/>
    <NumberField Type="int" Name="FIELD2"/>
    <NumberField Type="int" Name="FIELD3"/>
  </Fields>

Stored procedure parameters for save implementation:

  @ID uniqueidentifier = null output,
  @CHANGEAGENTID uniqueidentifier = null,
  @FIELD1 int,
  @FIELD2 int,
  @FIELD3 int

FormFields element:

    <common:FormFields>
      <common:FormField FieldID="FIELD1"
                        Caption="Field 1"
                        Required="true"
                        DataType="Integer" />
      <common:FormField FieldID="FIELD2"
                        Caption="Field 2"
                        Required="true"
                        DataType="Integer"
                        MinValue="-1"/>
      <common:FormField FieldID="FIELD3"
                        Caption="Field 3"
                        Required="true"
                        DataType="Integer"
                        MinValue="4"/>
    </common:FormFields>