Hi Isomorphic,
I have upgraded SC "SmartClient Version: 8.1/Enterprise Development Only (built 2011-08-02)" to "SmartClient Version: v8.2p_2013-06-15/Enterprise Development Only (built 2013-06-15)" .
Whenvever there is only DateRange in the Criteria, I am getting the below exception :
Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.apache.commons.collections.map.LinkedMap.
If there will be more criteria, dsRequest.getCriteria().get("criteria") returning colleciton of LinkedMap otherwise returning collection of HashMap.
Plese let me know how to fix the issue.
FYI,
Below is the request :
*Only DateRange in Criteria*
data":{
"operator":"and",
"criteria":[
{
"operator":"and",
"criteria":[
{
"fieldName":"workOrderDate",
"operator":"greaterOrEqual",
"value":"2013-07-02T07:50:00"
},
{
"fieldName":"workOrderDate",
"operator":"lessOrEqual",
"value":"2013-07-17T18:29:00"
}
]
}
]
}
*One more field in criteria with DateRange or no Date Range*
1) With DateRange
"data":{
"operator":"and",
"criteria":[
{
"fieldName":"status",
"operator":"equals",
"value":"Unassigned"
},
{
"fieldName":"workOrderDate",
"operator":"greaterOrEqual",
"value":"2013-07-02T07:50:00"
},
{
"fieldName":"workOrderDate",
"operator":"lessOrEqual",
"value":"2013-07-17T18:29:00"
}
]
},
2) No Date Range
"data":{
"operator":"and",
"criteria":[
{
"fieldName":"status",
"operator":"equals",
"value":"Unassigned"
}
]
},
I have upgraded SC "SmartClient Version: 8.1/Enterprise Development Only (built 2011-08-02)" to "SmartClient Version: v8.2p_2013-06-15/Enterprise Development Only (built 2013-06-15)" .
Whenvever there is only DateRange in the Criteria, I am getting the below exception :
Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.apache.commons.collections.map.LinkedMap.
If there will be more criteria, dsRequest.getCriteria().get("criteria") returning colleciton of LinkedMap otherwise returning collection of HashMap.
Plese let me know how to fix the issue.
FYI,
Below is the request :
*Only DateRange in Criteria*
data":{
"operator":"and",
"criteria":[
{
"operator":"and",
"criteria":[
{
"fieldName":"workOrderDate",
"operator":"greaterOrEqual",
"value":"2013-07-02T07:50:00"
},
{
"fieldName":"workOrderDate",
"operator":"lessOrEqual",
"value":"2013-07-17T18:29:00"
}
]
}
]
}
*One more field in criteria with DateRange or no Date Range*
1) With DateRange
"data":{
"operator":"and",
"criteria":[
{
"fieldName":"status",
"operator":"equals",
"value":"Unassigned"
},
{
"fieldName":"workOrderDate",
"operator":"greaterOrEqual",
"value":"2013-07-02T07:50:00"
},
{
"fieldName":"workOrderDate",
"operator":"lessOrEqual",
"value":"2013-07-17T18:29:00"
}
]
},
2) No Date Range
"data":{
"operator":"and",
"criteria":[
{
"fieldName":"status",
"operator":"equals",
"value":"Unassigned"
}
]
},
Comment