Hello,
I want to parse a map of criteria with DataSource.parseAdvancedCriteria.
The criteria data in the map looks like this
In the created AdvancedCriteria is an element null, but not the inSet criterion:
I'm using SmartGWTPro 2.4.
Best regards
Peter
I want to parse a map of criteria with DataSource.parseAdvancedCriteria.
The criteria data in the map looks like this
Code:
{operator=and, criteria=[{operator=or, criteria=[{operator=and, criteria=[{operator=greaterOrEqual, fieldName=startDate, value=Wed Nov 30 00:00:00 CET 2011}, {fieldName=startDate, operator=lessOrEqual, value=Fri Dec 30 00:00:00 CET 2011}] }, {operator=and, criteria=[{operator=greaterOrEqual, fieldName=endDate, value=Wed Nov 30 00:00:00 CET 2011}, {fieldName=endDate, operator=lessOrEqual, value=Fri Dec 30 00:00:00 CET 2011}] }] }, {operator=or, criteria=[{fieldName=userId, operator=equals, value=2}, {fieldName=groupId, operator=inSet, value=[2, 4, 3]}]}], _constructor=AdvancedCriteria}
Code:
AdvancedCriteria:[and:[or:[and:[{startDate greaterOrEqual Wed Nov 30 00:00:00 CET 2011}, {startDate lessOrEqual Fri Dec 30 00:00:00 CET 2011}], and:[{endDate greaterOrEqual Wed Nov 30 00:00:00 CET 2011}, {endDate lessOrEqual Fri Dec 30 00:00:00 CET 2011}]], or:[{userId equals 2}, null]]]
Best regards
Peter
Comment