Open ramsaptami opened 2 years ago
@dilippitchika I don't think this should be fixed,
The Structure of the marker is this Array<{ "lat": "number Min: -90 Max: 90 Required", "long": "number Min: -180 Max: 180 Required", "title": "string", "color": "string" }>
A number is required, best that can happen would be to throw the validation error
@Tooluloope @dilippitchika I think we should assist the user by trying to typecast these strings into integers where ever possible. Small features like these should be helpful to our users. Do you see any issues with implementing this?
We do that to some extent in a few widgets, for example chart widget, but don't do it everywhere across widgets. We can add it here, but we also need to think about other widgets.
@riodeuno @dilippitchika This can be really tricky. One of the reasons we have issues with the defaultValue for select widget was that we were trying to help the users in typecasting.
I feel it's better to be predictable, So the users know that this expects a Number and not a Stringified Number
.
I think it's best to show adequate messages in the evaluation popup so the user is clear of what needs to be done.
@Tooluloope @dilippitchika I agree with both your points.
Is there an existing issue for this?
Current Behavior
When Maps widget is bound to a selected row of a table widget that contains latitude and longitude values in string format, then Maps widget fails to derive a location pin.
Workaround is to typecast as number as follows
Steps To Reproduce
Environment
Production
Version
Cloud