I'm using SmartClient Version: v12.0p_2018-07-28
I found a problem (or bug), which is a little bit difficult to explain.
Problem: It is not possible to set an new value with listgrid.setEditValue( recidx, field, newValue),
if :
I debugged the code and could find two problems:
First in ISC_grids.js, line 49255:
this should be:
I changes this and my code worked as expected.
But there is a second problem with “isc.DynamicForm.compareValues” in ISC_forms.js (line 16943ff) called later.
Because this function compares two values of type “date” as “objects” by comparing all properties, but it does not compare the date-value itself.
So two different dates are always “equal”.
I hope my explanation is understandable.
Thanks and best regards
Burkhard
I found a problem (or bug), which is a little bit difficult to explain.
Problem: It is not possible to set an new value with listgrid.setEditValue( recidx, field, newValue),
if :
- the "listgrid" has a datasource
- “field” is of type “date”
- “field” is in the datasource, but not in the field list of the listgrid (so "field" is not visible)
- actual value of “field” is not null
- "newValue" is not null
I debugged the code and could find two problems:
First in ISC_grids.js, line 49255:
Code:
var field = this.getField(fieldName);
Code:
var field = this.getUnderlyingField(fieldName);
But there is a second problem with “isc.DynamicForm.compareValues” in ISC_forms.js (line 16943ff) called later.
Because this function compares two values of type “date” as “objects” by comparing all properties, but it does not compare the date-value itself.
So two different dates are always “equal”.
I hope my explanation is understandable.
Thanks and best regards
Burkhard
Comment