Forum Discussion
FICO
13 years agoCommunity Manager
String Validations using Custom provider
String Validations using Custom provider
Hello,
I need to validate String valuholders like
1) Restrict Size to 5
2) Check for numeric, letters etc.
I have tried extending the NdStringProvider and then overriding the checkInstantiationValue method which throws an exception.
While using this, the exception is thrown only on compiling/refreshing the code.
Is there any way it can work as soon as I enter the incorrect value, like it works for the Integer provider when a non numeric is entered, which is internally handled by Blaze..?
Or is there any other method of doing this..?
Any help will be appreciated!
Thanks
1 Reply
- FICOCommunity Manager
Try implementing method convertFromDisplayValue() and do your validation/throw exceptions from there as well.
Related Content
Related Content
How to make cuts added in a preIntsol callback globally valid (root node) instead of local to the current subtree?
I'm using the Xpress Optimizer Java API (com.dashoptimization, Xpress 9.4) to solve a MIP with lazy constraints that are generated dynamically. My constraints are all globally valid — they are not lo...2 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread5Views0likes2Comments