On behalf of "Nigel Stirzaker", while license seat is being assigned,
Hi we’ve upgraded to Smart GWT 13. On some, but not all of our ListGrids using the delete option via the red icon created by setCanRemoveRecords(true); causes the following error
“Received null criteria for remove operation – would remove all records – ignoring.”
This is what we send
{
dataSource:"fieldDS",
operationType:"remove",
componentId:"grid_FieldGrid",
data:{
fieldFormat:"ddMMyyyy",
fieldName:"PUBPD1",
maxRepeats:10,
dataType:"BOOLEAN",
tagPattern:"PUBLISHER_PUBLICATION_DATE1",
fieldDescription:"PUBLISHER_PUBLICATION_DATE1",
isFieldDeprecated:true,
isOrgField:true,
isXml:true,
isRepeatable:true,
lastChangedDatetime:null,
lastChangeUser:null,
fieldId:"a58001e2-e191-11ec-86b6-8038fbf30607"
},
textMatchStyle:"exact",
callback:{
target:[ListGrid ID:grid_FieldGrid],
methodName:"removeDataComplete"
},
willHandleError:true,
showPrompt:true,
oldValues:{
fieldFormat:"ddMMyyyy",
fieldName:"PUBPD1",
maxRepeats:10,
dataType:"BOOLEAN",
tagPattern:"PUBLISHER_PUBLICATION_DATE1",
fieldDescription:"PUBLISHER_PUBLICATION_DATE1",
isFieldDeprecated:true,
isOrgField:true,
isXml:true,
isRepeatable:true,
lastChangedDatetime:null,
lastChangeUser:null,
fieldId:"a58001e2-e191-11ec-86b6-8038fbf30607"
},
requestId:"fieldDS$62722",
internalClientContext:{
removeDataCallback:{
},
editInfo:{
rowNum:11,
values:Obj,
editCompletionEvent:"programmatic"
}
},
fallbackToEval:false,
lastClientEventThreadCode:"TMR1",
bypassCache:true,
dataProtocol:"getParams"
}
“
And below is what the underlying datasource sends back. I hasten to add that the message appears to come from the DataSource.class. Our code overrides the DataSource.class’s executeRemove method but any breakpoint we add to this is not reached
{
affectedRows:0,
data:"Received null criteria for remove operation - would remove all records - ignoring.",
invalidateCache:false,
isDSResponse:true,
status:-1
}
Hi we’ve upgraded to Smart GWT 13. On some, but not all of our ListGrids using the delete option via the red icon created by setCanRemoveRecords(true); causes the following error
“Received null criteria for remove operation – would remove all records – ignoring.”
This is what we send
{
dataSource:"fieldDS",
operationType:"remove",
componentId:"grid_FieldGrid",
data:{
fieldFormat:"ddMMyyyy",
fieldName:"PUBPD1",
maxRepeats:10,
dataType:"BOOLEAN",
tagPattern:"PUBLISHER_PUBLICATION_DATE1",
fieldDescription:"PUBLISHER_PUBLICATION_DATE1",
isFieldDeprecated:true,
isOrgField:true,
isXml:true,
isRepeatable:true,
lastChangedDatetime:null,
lastChangeUser:null,
fieldId:"a58001e2-e191-11ec-86b6-8038fbf30607"
},
textMatchStyle:"exact",
callback:{
target:[ListGrid ID:grid_FieldGrid],
methodName:"removeDataComplete"
},
willHandleError:true,
showPrompt:true,
oldValues:{
fieldFormat:"ddMMyyyy",
fieldName:"PUBPD1",
maxRepeats:10,
dataType:"BOOLEAN",
tagPattern:"PUBLISHER_PUBLICATION_DATE1",
fieldDescription:"PUBLISHER_PUBLICATION_DATE1",
isFieldDeprecated:true,
isOrgField:true,
isXml:true,
isRepeatable:true,
lastChangedDatetime:null,
lastChangeUser:null,
fieldId:"a58001e2-e191-11ec-86b6-8038fbf30607"
},
requestId:"fieldDS$62722",
internalClientContext:{
removeDataCallback:{
},
editInfo:{
rowNum:11,
values:Obj,
editCompletionEvent:"programmatic"
}
},
fallbackToEval:false,
lastClientEventThreadCode:"TMR1",
bypassCache:true,
dataProtocol:"getParams"
}
“
And below is what the underlying datasource sends back. I hasten to add that the message appears to come from the DataSource.class. Our code overrides the DataSource.class’s executeRemove method but any breakpoint we add to this is not reached
{
affectedRows:0,
data:"Received null criteria for remove operation - would remove all records - ignoring.",
invalidateCache:false,
isDSResponse:true,
status:-1
}
Comment