This document was generated from CDN thread
Created by: null on 12-06-2003 12:46:19 AM
I am trying to set a field that allows range of numbers from 5000 to 9999. Here is my code for it:
[code:1:9262907abf]Integer min = new Integer(5000);
Integer max = new Integer(9999);
Setting("number","Enter Number","yada yada yada",true,true,true,min,max);[/code:1:9262907abf]
In the audium builder I was able to enter and save and deploy with values 1010 and 99999. Am I doing something wrong here?
Subject: RE: Setting with maxInteger,minInteger
Replied by: null on 12-06-2003 08:31:21 PM
Hi,
Currently, you can not restrict the range of integer input, but this is something we are considering in a future release. There are also a number of other features that we will be adding to the builder which will give the developer more flexibility in how elements can be configured.
Regards,
Joe
Subject: RE: Setting with maxInteger,minInteger
Replied by: null on 12-06-2003 08:36:10 PM
Thank you.
Subject: RE: Setting with maxInteger,minInteger
Replied by: null on 12-06-2003 09:37:33 PM
Hello,
One note, while you cannot have the element restrict to certain input ranges in the current version of the builder, it is possible to have the element throw specific exceptions at runtime if the setting value does not meet your validation requirements - even when the builder does support this ability in the future, you may want to include this validation code so that the setting values can be checked for dynamic configurations.
Regards,
Joe