oi10 multivalidation question (OpenInsight 64-bit)
At 24 JAN 2020 08:08:46AM Brad Haughn wrote:
In the past when we needed a field to validate against more than one validation pattern, we would use a "+" between the validations. Such as:
[COST.OUTPUT2]+(0,99999999999999)
so our custom number formatting and a positive number between 0 and 99999999999999.
In OI 10, that validation always throws an error regardless of data entered into the field. I had initially thought changes were made and I could just remove the + and replace it with an enter, but that works the way the old way worked in that it validates against one pattern or the next, but not both.
Is there a new way to format validation patterns when using more than pattern in OI 10? I'm afraid I've had no luck thus far in the documentation.
At 24 JAN 2020 08:38AM Carl Pates wrote:
Hi Brad,
What's the error?
There were no changes to the way validation patterns are stored and processed in v10.
The AND operators can be "_", "+", or an @svm according to the parser, which hasn't been changed since Arev.
Can you try another pair of formats such as [EMAIL_FORMAT]+10Z for example to see what happens. Right now I can't reproduce the problem.
Thanks
At 24 JAN 2020 08:51AM Brad Haughn wrote:
The error was that it was not following the validation pattern of the whole thing. As if the "+" was used literally instead of as an "and". But if I remove the entire validation and re-add it manually it works fine. I'm going to guess this was from the system upgrade from oi9 when we migrated things over.