yuuvis® RAD Q&A

0 votes
by (660 points)

Dear all,

i wonder if its possible to define value-ranges for an integer within the model/schema (not via frontend form-validation)... Do you know how i can achieve such a validation/restriction?

Many Thx in advance
Rgds
Martin

1 Answer

0 votes
by (19.6k points)

Hello Martin,

at the moment it is unfortunately not possible to define range limits on integer fields.

Although not really a clean and/or good solution but if you really need it, you could use a string field in combination with a regex expression. But you would have to convert the integers to string values.

Best regards
Nicolai

by (660 points)
Hello Nicolai,

hmm ok, as you mentioned, using regex for this purpose is not really what we would like to do...
if i understand this correctly, with this regex workourand we'll get a string in each "get" call, and leads to another validation or transformation on the consumer part...
Are there any plans to add this "range-limits" feature to a newer Version of Yuuvis?

many thx & Rgds
Martin
by (19.6k points)
Yes, you understood correctly.
We have this feature in our backlog but it is not going to come anytime soon, sorry.

Best regards
Nicolai
by (660 points)
ok, thx...

Rgds
Martin

Related questions

0 votes
1 answer
+2 votes
3 answers
0 votes
1 answer
asked Nov 29, 2020 by thorst3 (180 points)
0 votes
1 answer
0 votes
3 answers
asked Jul 27, 2018 by Peter Strasser (2.1k points)
...