Hello, I'm trying to use an operationBinding like this:
to update all records of a grid as read by a user. I do setInvalidateCache(false) because client side I want to "replace" it with a grid.refreshData() for a better UE.
What I wasn't expecting is seeing errors in a formatCellValue, because it is called several times and sometimes with the record parameter that contains just:
and nothing else.
Is it a bug or am I doing something not supported?
Code:
<operationBinding operationType="update" operationId="markAllRead"
allowMultiUpdate="true" cacheSyncStrategy="none">
<criteria fieldName="EMAIL" operator="equals" value="$userId"/>
<criteria fieldName="IS_READ" operator="equals" value="false"/>
<values fieldName="IS_READ" value="true"/>
<script language="groovy">
DSResponse dsResponse = dsRequest.execute();
dsResponse.setInvalidateCache(false);
return dsResponse;
</script>
</operationBinding>
What I wasn't expecting is seeing errors in a formatCellValue, because it is called several times and sometimes with the record parameter that contains just:
Code:
_recordInvalidationTime_myGrid: ....
Is it a bug or am I doing something not supported?
Comment