How to set a minimum or maximum value of 0 (zero) on number attributes

Version 2

    Verified Product Versions

    LANDESK Service Desk 7.8.xLANDESK Service Desk 2016.xLANDESK Asset Central 2016.x

    Problem

     

    For Int16, Int32 and Decimal attributes you can set a minimum and maximum value.  however there is a known issue where by setting either value to 0 will be ignored.  This has been raised as Problem 4120 to be fixed in a future version and any experiences of this should be logged with Support.

     

    Workaround

     

    The minimum and maximum values are stored as Decimals (with up to 10 decimal places).  You can therefore set a minimum value just below 0 (or maximum value just above 0) but between what would be a valid value for your attribute and this will be enforced.  See the following specific examples:

     

    Setting a minimum value

    Int16 and Int32 attributes - Set the Minimum Value property to -0.1.

    Decimal attributes - Set the Minimum Value property with 1 more decimal place as you've specified for the attribute.  If you have specified 2 decimal places set the Minimum Value to -0.001, if you've set 5 decimal places set the Minimum Value to -0.000001.

     

    Setting a maximum value

    Int16 and Int32 attributes - Set the Minimum Value property to 0.1.

    Decimal attributes - Set the Minimum Value property with 1 more decimal place as you've specified for the attribute.  If you have specified 2 decimal places set the Minimum Value to 0.001, if you've set 5 decimal places set the Minimum Value to 0.000001.