0

When running a local version of the CodeEffects rule editor I get an error message when I try to enter a decimal in the condition. In the angular example project I have updated the type of the pulse property to decimal? and why I try to enter a decimal I get the following error message:

enter image description here

When I enter a dot instead of a comma it gets autocorrected to a dot. The current culture of my local machine is nl-nl as is my browser. When I run your live demo it works without any issues.

enter image description here

What is the issue when running this locally?

LAN
  • 55
  • 1
  • 9
  • This sounds like you should be reporting the issue to Code Effects, not asking a question on StackOverflow. – juharr Jul 20 '21 at 21:55
  • Code Effects requests on their website to post technical questions on StackOverflow. The accepted answer is given by the Code Effects customer support. – LAN Jul 22 '21 at 08:49

1 Answers1

1

Set the current culture to en-US before invoking your rule evaluation code on the server. Dealing with cultures in terms of numeric input is not an easy task. Instead of fighting with all possible use cases, devices, clients, and scenarios, we decided to simply convert all numeric delimiters into American dot. That way multicultured products can be run without unnecessary complexity. This change was introduced in version 4.x

Alex
  • 566
  • 1
  • 6
  • 14