Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    allowMultiUpdate and grid.refreshData()

    Hello, I'm trying to use an operationBinding like this:

    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>
    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:
    Code:
    _recordInvalidationTime_myGrid: ....
    and nothing else.

    Is it a bug or am I doing something not supported?


    #2
    Hello, may I ask if you see the problem or if I'm missing something?

    Comment

    Working...
    X