SmartClient_v100p_2015-07-24_LGPL
Since 2015-07-24 ListGrid, _filter : function (...) patch
replace isc.DS.flattenCriteria(...) with isc.DS.compressNestedCriteria(...)
1. FilterEditor entry and end with [Enter]
* ListGrid do filterData(...) Ok, but
* FilterEditor will not refresh correct values
2. Same ListGrid more FilterEditor entry cause error.
* before 2015-07-24 server got:
* since 2015-07-24 server got:
attach.
$ diff ListGrid0721.js ListGrid0724.js
< * Version v10.0p_2015-07-21 (2015-07-21)
---
> * Version v10.0p_2015-07-24 (2015-07-24)
< if (isc.DS.canFlattenCriteria(criteriaValues)) {
< criteriaValues = isc.DS.flattenCriteria(criteriaValues);
< }
---
> criteriaValues = isc.DS.compressNestedCriteria(criteriaValues);
Regards,
Since 2015-07-24 ListGrid, _filter : function (...) patch
replace isc.DS.flattenCriteria(...) with isc.DS.compressNestedCriteria(...)
1. FilterEditor entry and end with [Enter]
* ListGrid do filterData(...) Ok, but
* FilterEditor will not refresh correct values
2. Same ListGrid more FilterEditor entry cause error.
* before 2015-07-24 server got:
Code:
_criteria_1 = {"operator": "and", "_constructor": "AdvancedCriteria", "criteria": [ {"fieldName": "dic_typ", "operator": "iContainsPattern", "value": "ca", "_constructor": "AdvancedCriteria"} ]}
Code:
_criteria_2 = { "operator": "and", "_constructor": "AdvancedCriteria", "criteria": [ {"fieldName": "dic_typ", "operator": "iContainsPattern", "value": "ca"}, {"operator": "equals", "fieldName": "fieldName", "value": "dic_typ"}, {"operator": "equals", "fieldName": "operator", "value": "iContainsPattern"}, {"operator": "equals", "fieldName": "value", "value": "ab"} ]}
attach.
$ diff ListGrid0721.js ListGrid0724.js
< * Version v10.0p_2015-07-21 (2015-07-21)
---
> * Version v10.0p_2015-07-24 (2015-07-24)
< if (isc.DS.canFlattenCriteria(criteriaValues)) {
< criteriaValues = isc.DS.flattenCriteria(criteriaValues);
< }
---
> criteriaValues = isc.DS.compressNestedCriteria(criteriaValues);
Regards,
Comment