Hello everyone,
We have, in our software solution, two measurement systems. Imperial and metric. In the imperial form the numeric values are written down as fractions, so in nvarchar values. This is because that is the custom for the system in the countries that use the imperial system.
Because we know that can lead to some interesting things we added a regular expression to it so the user can only add a valid fraction. But when following the following steps some strange behaviour occurs:
- I fill in a new machine (on the machine screen);
- I fill in wrong values;
- I get the validations as expected;
- I try to hit cancel to get out of the screen;
- The screen does not disappear;
- The screen suddenly disappears and sometimes gives an unknown error after fixing the validations, I shall also add the Indicium log, as that may be of interest;
- The same goes for adding, after fixing the validations it immediately adds the machine, this is not very user experience friendly as it might be a slip of the pen.
- See the video under this list to see what happens (it's a GIF).
In the video I will attach you see in the right scenarios (where I immediately fill in fractions) that it is automatically recalculated via a default. The default also stops functioning after doing this.
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/91e35d5d-fff6-46be-bf10-cddad347399c.gif)
What could be wrong?