Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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

Carl Pates


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.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/a92c7ff1006f7d409943bec8ca0bd49e.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1