Hi!
I have used the RAD-tool to build an entity that includes datatype Double. But when i click on the "View" or "Edit" button in the table i get Error 500. The view-action is saving validation error in the Audit-logs (Edit-action is not saving any error) that:
The value '2.3' is not valid for Volume. (data.Stuff.Volume)
This error occurs when swedish language is selected. When i change to English, the view is functioning.
Any ideas?
7 Answer(s)
-
0
Hi @pointlevel
Could you create a issue for this on https://github.com/aspnetzero/aspnet-zero-core/issues ?
-
0
Sure, its up now: https://github.com/aspnetzero/aspnet-zero-core/issues/2117
But do you have any clue or solution to fix my problem with my already created entities and validationerror?
-
0
@pointlevel
We will be releasing a new version of RAD Tool soon.
-
0
<input class="form-control m-input" id="MyEntity_MyDouble" value="@Model.MyEntity.MyDouble.ToString(CultureInfo.InvariantCulture)" type="number" name="myDouble" />
Hi!
Above solution worked for edit. But it didnt solved the "View"-page. In the same dropdown if i choose "View" instead, i get an error 500. With validation-error. I believe it must be some javascript-problem because it never hits the backend-code as i can see.
Any good solution to this?
-
0
Fixed in 1.7.2 release.
-
0
Yes, its fine that the problem is solved with 1.7.2, but i would prefer a presented solution for the "bug" in a paid solution for us that already used the tool, and dont want to overwrite existing customizations made. I believe that i should be able to fix this without re-generate the entity?
-
0
in index.js, Send id of entity instead of the whole entity.
in controller: Get entity from application service using id.
in applicatin service interface: add a new method.
in application service: implement the new method.