Edits save, but not shown?

I’ll make an edit on a row, then hit the up or down arrow to move out of the row. The next row becomes editable and the previous one is not longer editable (still showing the newly edited values). However, in a split second… the row I just edited will revert back to the old values, and the current row I’m on will no longer be editable. I check the database and the data saves at least.

Is there some sort of cache / refresh option I’m missing here?

My grid is as follows:

                       isc.ListGrid.create({
                            ID: "evGrid",
                            position: "relative",
                            alternateRecordStyles: true,
                            width: 600, 
                            height: 175,  
                            canSort: false,
                            canEdit: true,
                            modalEditing: true,
                            editEvent: "click",
                            dataSource: evData,
                            fields: [
                                {name: "reportingPeriod"},
                                {name: "bcwp", title: "BCWP" },
                                {name: "bcws", title: "BCWS" },
                                {name: "acwp", title: "ACWP" },
                                {name: "bac", title: "BAC" },
                                {name: "cpi", title: "CPI", canEdit: false },
                                {name: "spi", title: "SPI", canEdit: false },
                                {name: "eac", title: "EAC", canEdit: false }
                            ]
                        });

and the debug log is as such:

02:31:45.601:INFO:RPCManager:transaction 11 arrived after 1442ms
02:31:45.691:DEBUG:RPCManager:Result string for transaction 11: "//isc_RPCResponseStart-->[
    {
        data:{
            acwp:100.0,
            bac:400.0,
            bcwp:600.0,
            bcws:30.0,
            compId:null,
            cpi:6.0,
            createdBy:null,
            dateCreated:new Date(1184310000000),
            dateModified:new Date(1184491905501),
            eac:null,
            editable:false,
            iptCpiSpiId:558,
            iptWbsMetricId:62,
            modifiedBy:null,
            monthly:false,
            reportingPeriod:new Date(1175241600000),
            spi:20.0
        },
        status:0
    }
]//isc_RPCResponseEnd"
02:31:45.741:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
02:31:45.851:INFO:RPCManager:transaction 12 arrived after 1322ms
02:31:45.991:DEBUG:RPCManager:Result string for transaction 12: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:{
            acwp:100.0,
            bac:400.0,
            bcwp:600.0,
            bcws:30.0,
            cpi:6.0,
            eac:null,
            editable:false,
            iptCpiSpiId:558,
            iptWbsMetricId:62,
            spi:20.0,
            reportingPeriod:Date.parseServerDate(2007,2,30)
        },
        endRow:0,
        status:0,
        isDSResponse:true,
        totalRows:0,
        startRow:0
    }
]//isc_RPCResponseEnd"
02:31:46.062:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
02:31:46.172:INFO:ResultSet:isc_ResultSet_43:Updating cache: operationType 'update', undefined rows update data:
{acwp: 100,
bac: 400,
bcwp: 600,
bcws: 30,
cpi: 6,
eac: null,
editable: false,
iptCpiSpiId: 558,
iptWbsMetricId: 62,
spi: 20,
reportingPeriod: Date(3/30/2007)}
02:31:46.262:WARN:ResultSet:isc_ResultSet_43:updated row returned by server doesn't match any cached row,  adding as new row.  Primary key values: {iptCpiSpiId: 558}, complete row: {acwp: 100,
bac: 400,
bcwp: 600,
bcws: 30,
cpi: 6,
eac: null,
editable: false,
iptCpiSpiId: 558,
iptWbsMetricId: 62,
spi: 20,
reportingPeriod: Date(3/30/2007)}
02:31:46.342:DEBUG:ResultSet:isc_ResultSet_43:updated cache, 1 out of 1 rows remain in cache, 1 row(s) added.
02:31:46.422:DEBUG:ResultSet:isc_ResultSet_43:full length set to: 6
02:31:46.572:DEBUG:ResultSet:isc_ResultSet_43:getRange(0, 5) satisfied from cache
02:31:46.702:DEBUG:ResultSet:isc_ResultSet_1:getRange(0, 4) satisfied from cache

I’m just trying to get the simple portions working before I continue to add the more customized options I’ve been talking about. But I’m having problems, even with this. Any help would be greatly appreciated. Thanks.

Hi dleung,

That warning seems to be telling you exactly what’s going wrong - an update was submitted to the server against a record with a certain primary key and your returned data specifies a different primary key. Can you verify this?

Also, there seems to be a separate, manually initiated RPC in the logs - evidently that is not the complete code for the grid?

One way to approach this is to look at the Edit New Rows example which does exactly what you’re attempting. If you view it in the SDK, you can watch the client and server side logs and see what’s different in your implementation.

When I compare the values coming into the update function, and the object going out, the IDs are still the same.

My update function is like this:

    public DSResponse update(MyTO criteria) {
        
        DSResponse dsResponse = new DSResponse();
        MyTO metric = null;
        
        try {
            // retrieve data from dB
            metric = cbo.getMetric(criteria.getId());

            Map newValues = DataTools.getProperties(criteria);
            Map oldValues = DataTools.getProperties(metric);
            
            // a class key shows up for some reason and needs to be removed
            newValues.remove("class");
            oldValues.remove("class");

            Map result = DataTools.mapMergeNonNull(newValues, oldValues);
            DataTools.setProperties(result, metric);

            .... calculate some values and set to metric obj
            
            dsResponse.setData(metric);
            
            cbo.saveEvMetric(metric); // persist to database
            
        } catch (Exception e) {
            e.printStackTrace();
        }
        
        return dsResponse;
    }

Could it be that I have multiple grids on the same page using the same DS? The way we generally have it is like this: We have one outer JSP, and we iterate through a number of components in that JSP. Each component is to have a grid of data. So we have one JSP with the grid and embed that JSP with every iteration through the loop, passing the component ID as a parameter. The ID of each grid is denoted as “Grid_<%=id%>” to distinguish each grid. So each grid will be displaying similar data using the same SQL / DS, just different results based on the ID.

On another note, if you notice in the update function, I have two lines to remove a key named “class” from the maps. Not sure where they came from. If I don’t remove them, an error will be thrown stating that my object does not have getter / setter functions for the variable “class”.

I set the “autoSaveEdits: false” option and things appear to be working ok so far although I’m weary since I don’t know exactly why it was causing problems before (or…really.. why it’s working). I also added back my custom DMI function to execute on the editorExit function. The data is saved at that point.

Perhaps if there was some documentation as to the structure of these actions? i.e., I wouldn’t have known “canEditCell” is called after a click event, etc. Or if it is documented somewhere, if I could be pointed in the right direction. I’m just feeling that I’m doing a LOT of trial and error here. All part of the learning process of course.. but less of it would be nice.

Thanks for the guidance thus far. Hopefully it still stays working.

Hi dleung,

autoSaveEdits:false deactivates all automatic saving (as the documentation tells you; in fact the documentation explicitly refers to the saveByCell property) so what you’ve done is simply disabled the codepath where you were receiving the warning about mismatched primary keys.

ListGrid editing is very dynamic (cells can change editability on cell transitions) so canEditCell() is called in a variety of circumstances. It’s an intentional choice not to document every way it can be called, as custom logic and or subclasses may call it under new circumstances, and you are not intended to put situation-dependent code into canEditCell - that’s what editorEnter, editorExit, recordClick, etc handlers are for. What were you trying to do from canEditCell? Perhaps we can suggest a more appropriate place to put the code.

As indicated by the logs you previously showed, you seem to be simultaneously trying to tackle the same problem via saveByCell and via a DMI triggered from editorExit. If you try just one approach at a time we think you’ll find that SmartClient’s APIs and behaviors are consistent and well-documented. In particular you really shouldn’t get that error about mismatched primary keys unless they truly are mismatched, and the most likely explanation for the confusion is that you are looking at a mix of logs for your manually triggered DMI operation and for the automatically initiated “update” operation triggered by “saveByCell” with autoSaveEdits:true.

I’ve rearranged a few things to follow more standard procedures. I’m only using the DMI function to do the calculation, and return the newly calculated values back to the grid.

Now I have a save button for the grid to save all open edits with the button basically as

                    click: function() {
                        isc.RPCManager.startQueue();
                        evDataGrid.endEditing();
                        evDataGrid.saveAllEdits();
                        isc.RPCManager.sendQueue();
                    }

Still getting that issue where it says I’m not return the same updated row, so it just refreshes with the old values.

My update function is still as I have it in the above message. Not sure why it would be giving me that error because the primary key looks correct.

02:31:46.262:WARN:ResultSet:isc_ResultSet_43:updated row returned by server doesn't match any cached row,  adding as new row.  Primary key values: {iptCpiSpiId: 558}, complete row: {acwp: 100,
bac: 400,
bcwp: 600,
bcws: 30,
cpi: 6,
eac: null,
editable: false,
iptCpiSpiId: 558,
iptWbsMetricId: 62,
spi: 20,
reportingPeriod: Date(3/30/2007)}

Is the “primary key” and “complete row” values listed referring to the same record? Or is it saying that the primary key received, is so and so.. but the return complete row has this data? Because if it is the latter, the primary keys are the same so I don’t understand why it would say the rows don’t match.

What’s being logged is the row you returned as dsResponse.data. This log indicates that the update data returned does not match any row that was ever loaded from the server.

There is probably some simple explanation here, something that your code does that it hasn’t occurred to you to mention… we need to be able to see the whole picture to help.

Can you show your complete client-code code, as well as the client-side logs with the RPCManager category set to DEBUG for the entire interaction, from initial data load through saving?

I have two jsp pages. 1 outer jsp page, and 1 jsp page with the grid. For each component we have, outer.jsp loops JSP includes of the grid.jsp. I have the grid data tags in outer.jsp ( <isomorphic:loadDS: ID=evData).

I only recently moved the loadDS tags to the outer.jsp page since my last post. So, now.. the row disappears from the grid I’m editing, but shows up on all the other grids using the same data source.

The grid.jsp page, we name each grid by “evDataGrid_<%=id%>”.

the grid template:

                        isc.ListGrid.create({
                            ID: "evDataGrid_<%=compId%>",
                            position: "relative",
                            alternateRecordStyles: true,
                            width: 600, 
                            height: 130,  
                            canSort: false,
                            canEdit: true,
                            modalEditing: true,
                            autoFetchData: true,
                            autoSaveEdits: false,
                            initialCriteria: {reportingPeriod: "<%=period%>",
                                              compId: "<%=compId%>",
                                              monthly: "<%=freqFlag%>"},
                            editEvent: "click",
                            dataSource: evData,
                            recordEditProperty: "editable",
                            fields: [
                                {name: "reportingPeriod"},
                                <% if (!classified) { %>{name: "bcwp", title: "BCWP" }, <% } %>
                                <% if (!classified) { %>{name: "bcws", title: "BCWS" }, <% } %>
                                <% if (!classified) { %>{name: "acwp", title: "ACWP" }, <% } %>
                                <% if (!classified) { %>{name: "bac", title: "BAC" },   <% } %>
                                {name: "cpi", title: "CPI", canEdit: <%=classified%> },
                                {name: "spi", title: "SPI", canEdit: <%=classified%> },
                                {name: "eac", title: "EAC", canEdit: false }
                            ],
                            editorExit: function (e, record, newValue, row, col) {
                                evDMI.calculate(this.getEditValues(row), "evDataGrid_<%=compId%>.setEditValues("+row+", data)");
                            }
                        });

I can’t fit the logs into one message so I’ll split them up. Sorry about that.

initial page load:

15:09:55.934:INFO:Log:initialized
15:09:56.585:INFO:RPCManager:builtinApplication:Creating new isc.ResultSet for operation 'evData_fetch' with filterValues: {reportingPeriod:"04/06/2007",compId:"381",monthly:"true"}
15:09:56.595:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:09:56.595:DEBUG:RPCManager:Grabbed prompt from first request that defined one: Finding records that match your criteria...
15:09:56.765:INFO:RPCManager:builtinApplication:Creating new isc.ResultSet for operation 'milestoneData_fetch' with filterValues: {reporting_period:"04/06/2007",comp_id:"381"}
15:09:56.805:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:09:56.805:DEBUG:RPCManager:Grabbed prompt from first request that defined one: Finding records that match your criteria...
15:09:56.985:INFO:RPCManager:builtinApplication:Creating new isc.ResultSet for operation 'evData_fetch' with filterValues: {reportingPeriod:"04/06/2007",compId:"383",monthly:"true"}
15:09:57.005:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:09:57.005:DEBUG:RPCManager:Grabbed prompt from first request that defined one: Finding records that match your criteria...
15:09:57.125:INFO:RPCManager:builtinApplication:Creating new isc.ResultSet for operation 'milestoneData_fetch' with filterValues: {reporting_period:"04/06/2007",comp_id:"383"}
15:09:57.135:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:09:57.135:DEBUG:RPCManager:Grabbed prompt from first request that defined one: Finding records that match your criteria...
15:09:57.226:INFO:Log:isc.Page is loaded
15:09:57.236:INFO:RPCManager:Resubmitting transaction number: 0
15:09:57.286:INFO:RPCManager:sendQueue[0]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=0
15:09:57.316:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:09:57.316:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=0 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">0</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><reportingPeriod>04/06/2007</reportingPeriod><compId>381</compId><monthly>true</monthly></where><operationConfig xsi:type="xsd:Object"><dataSource>evData</dataSource><operationType>fetch</operationType></operationConfig><startRow xsi:type="xsd:long">0</startRow><endRow xsi:type="xsd:long">75</endRow><appID>builtinApplication</appID><operation>evData_fetch</operation><oldValues xsi:type="xsd:Object"><reportingPeriod>04/06/2007</reportingPeriod><compId>381</compId><monthly>true</monthly></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
15:09:57.316:INFO:RPCManager:Resubmitting transaction number: 1
15:09:57.316:INFO:RPCManager:sendQueue[1]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=1
15:09:57.346:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:09:57.346:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=1 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">1</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><reporting_period>04/06/2007</reporting_period><comp_id>381</comp_id></where><operationConfig xsi:type="xsd:Object"><dataSource>milestoneData</dataSource><operationType>fetch</operationType></operationConfig><startRow xsi:type="xsd:long">0</startRow><endRow xsi:type="xsd:long">75</endRow><appID>builtinApplication</appID><operation>milestoneData_fetch</operation><oldValues xsi:type="xsd:Object"><reporting_period>04/06/2007</reporting_period><comp_id>381</comp_id></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
15:09:57.346:INFO:RPCManager:Resubmitting transaction number: 2
15:09:57.346:INFO:RPCManager:sendQueue[2]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=2
15:09:57.376:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:09:57.376:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=2 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">2</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><reportingPeriod>04/06/2007</reportingPeriod><compId>383</compId><monthly>true</monthly></where><operationConfig xsi:type="xsd:Object"><dataSource>evData</dataSource><operationType>fetch</operationType></operationConfig><startRow xsi:type="xsd:long">0</startRow><endRow xsi:type="xsd:long">75</endRow><appID>builtinApplication</appID><operation>evData_fetch</operation><oldValues xsi:type="xsd:Object"><reportingPeriod>04/06/2007</reportingPeriod><compId>383</compId><monthly>true</monthly></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
15:09:57.376:INFO:RPCManager:Resubmitting transaction number: 3
15:09:57.386:INFO:RPCManager:sendQueue[3]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=3
15:09:57.396:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:09:57.406:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=3 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">3</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><reporting_period>04/06/2007</reporting_period><comp_id>383</comp_id></where><operationConfig xsi:type="xsd:Object"><dataSource>milestoneData</dataSource><operationType>fetch</operationType></operationConfig><startRow xsi:type="xsd:long">0</startRow><endRow xsi:type="xsd:long">75</endRow><appID>builtinApplication</appID><operation>milestoneData_fetch</operation><oldValues xsi:type="xsd:Object"><reporting_period>04/06/2007</reporting_period><comp_id>383</comp_id></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
15:09:57.907:INFO:RPCManager:transaction 1 arrived after 591ms

initial data:

15:09:57.947:DEBUG:RPCManager:Result string for transaction 1: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:[
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:112,
                ipt_wbs_metric_id:141,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,2)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:101,
                ipt_wbs_metric_id:141,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,9)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:96,
                ipt_wbs_metric_id:141,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,16)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:30,
                ipt_wbs_metric_id:141,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,23)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:95,
                ipt_wbs_metric_id:141,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,30)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:75,
                ipt_wbs_metric_id:141,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,3,6)
            }
        ],
        endRow:75,
        status:0,
        isDSResponse:true,
        totalRows:6,
        startRow:0
    }
]//isc_RPCResponseEnd"
15:09:57.977:INFO:RPCManager:rpcResponse(milestoneData_fetch)[fetch]: [status=0], result: 6 records
15:09:58.557:INFO:RPCManager:transaction 0 arrived after 1271ms
15:09:58.768:DEBUG:RPCManager:Result string for transaction 0: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:[
            {
                acwp:null,
                bac:null,
                bcwp:null,
                bcws:null,
                cpi:null,
                eac:null,
                editable:false,
                iptCpiSpiId:425,
                iptWbsMetricId:46,
                spi:null,
                reportingPeriod:Date.parseServerDate(2007,2,23)
            },
            {
                acwp:null,
                bac:null,
                bcwp:180.0,
                bcws:50.0,
                cpi:0.0,
                eac:null,
                editable:true,
                iptCpiSpiId:389,
                iptWbsMetricId:46,
                spi:3.6,
                reportingPeriod:Date.parseServerDate(2007,3,20)
            },
            {
                acwp:14938.0,
                bac:null,
                bcwp:13948.0,
                bcws:13948.0,
                cpi:null,
                eac:null,
                editable:true,
                iptCpiSpiId:442,
                iptWbsMetricId:46,
                spi:null,
                reportingPeriod:Date.parseServerDate(2007,4,18)
            }
        ],
        endRow:75,
        status:0,
        isDSResponse:true,
        totalRows:3,
        startRow:0
    }
]//isc_RPCResponseEnd"
15:09:58.788:INFO:RPCManager:rpcResponse(evData_fetch)[fetch]: [status=0], result: 3 records
15:09:58.848:INFO:RPCManager:transaction 3 arrived after 1462ms
15:09:58.888:DEBUG:RPCManager:Result string for transaction 3: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:[
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:282,
                ipt_wbs_metric_id:143,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,2)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:274,
                ipt_wbs_metric_id:143,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,9)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:269,
                ipt_wbs_metric_id:143,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,16)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:234,
                ipt_wbs_metric_id:143,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,23)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:294,
                ipt_wbs_metric_id:143,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,2,30)
            },
            {
                actual_completion:null,
                actual_starts:null,
                ipt_milestone_id:286,
                ipt_wbs_metric_id:143,
                planned_completion:null,
                planned_starts:null,
                reporting_period:Date.parseServerDate(2007,3,6)
            }
        ],
        endRow:75,
        status:0,
        isDSResponse:true,
        totalRows:6,
        startRow:0
    }
]//isc_RPCResponseEnd"
15:09:58.918:INFO:RPCManager:rpcResponse(milestoneData_fetch)[fetch]: [status=0], result: 6 records
15:09:58.928:INFO:RPCManager:transaction 2 arrived after 1582ms
15:09:59.088:DEBUG:RPCManager:Result string for transaction 2: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:[
            {
                acwp:null,
                bac:null,
                bcwp:null,
                bcws:null,
                cpi:null,
                eac:null,
                editable:false,
                iptCpiSpiId:714,
                iptWbsMetricId:81,
                spi:null,
                reportingPeriod:Date.parseServerDate(2007,2,23)
            },
            {
                acwp:null,
                bac:null,
                bcwp:null,
                bcws:null,
                cpi:null,
                eac:null,
                editable:true,
                iptCpiSpiId:692,
                iptWbsMetricId:81,
                spi:null,
                reportingPeriod:Date.parseServerDate(2007,3,20)
            },
            {
                acwp:null,
                bac:null,
                bcwp:null,
                bcws:null,
                cpi:null,
                eac:null,
                editable:true,
                iptCpiSpiId:666,
                iptWbsMetricId:81,
                spi:null,
                reportingPeriod:Date.parseServerDate(2007,4,18)
            }
        ],
        endRow:75,
        status:0,
        isDSResponse:true,
        totalRows:3,
        startRow:0
    }
]//isc_RPCResponseEnd"
15:09:59.258:INFO:RPCManager:rpcResponse(evData_fetch)[fetch]: [status=0], result: 3 records

changed values part 1:

15:12:32.439:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:32.519:INFO:RPCManager:sendQueue[4]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=4
15:12:32.639:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:32.649:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=4 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">4</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><appID>ev</appID><className>evDMI</className><methodName>calculate</methodName><arguments xsi:type="xsd:List"><elem xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcwp>777</bcwp></elem></arguments><is_ISC_RPC_DMI xsi:type="xsd:boolean">true</is_ISC_RPC_DMI></elem></operations></transaction>&protocolVersion=1.0<--
15:12:33.120:INFO:RPCManager:transaction 4 arrived after 511ms
15:12:33.160:DEBUG:RPCManager:Result string for transaction 4: "//isc_RPCResponseStart-->[
    {
        data:{
            acwp:null,
            bac:null,
            bcwp:777.0,
            bcws:50.0,
            compId:null,
            cpi:0.0,
            createdBy:null,
            dateCreated:new Date(1184881631000),
            dateModified:new Date(1184882339000),
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            modifiedBy:null,
            monthly:false,
            reportingPeriod:new Date(1177052400000),
            spi:15.54
        },
        status:0
    }
]//isc_RPCResponseEnd"
15:12:33.170:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
15:12:34.602:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:34.642:INFO:RPCManager:sendQueue[5]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=5
15:12:34.762:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:34.842:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=5 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">5</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><appID>ev</appID><className>evDMI</className><methodName>calculate</methodName><arguments xsi:type="xsd:List"><elem xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcwp xsi:type="xsd:long">777</bcwp><acwp></acwp><bac></bac><bcws>666</bcws><compId></compId><cpi xsi:type="xsd:long">0</cpi><createdBy></createdBy><dateCreated xsi:type="xsd:datetime">2007-07-19T21:47:11</dateCreated><dateModified xsi:type="xsd:datetime">2007-07-19T21:58:59</dateModified><eac></eac><editable xsi:type="xsd:boolean">false</editable><iptWbsMetricId xsi:type="xsd:long">46</iptWbsMetricId><modifiedBy></modifiedBy><monthly xsi:type="xsd:boolean">false</monthly><reportingPeriod xsi:type="xsd:datetime">2007-04-20T07:00:00</reportingPeriod><spi xsi:type="xsd:double">15.54</spi></elem></arguments><is_ISC_RPC_DMI xsi:type="xsd:boolean">true</is_ISC_RPC_DMI></elem></operations></transaction>&protocolVersion=1.0<--
15:12:35.273:INFO:RPCManager:transaction 5 arrived after 561ms
15:12:35.323:DEBUG:RPCManager:Result string for transaction 5: "//isc_RPCResponseStart-->[
    {
        data:{
            acwp:null,
            bac:null,
            bcwp:777.0,
            bcws:666.0,
            compId:null,
            cpi:0.0,
            createdBy:null,
            dateCreated:new Date(1184881631000),
            dateModified:new Date(1184882339000),
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            modifiedBy:null,
            monthly:false,
            reportingPeriod:new Date(1177052400000),
            spi:1.17
        },
        status:0
    }
]//isc_RPCResponseEnd"
15:12:35.353:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
15:12:35.874:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:35.944:INFO:RPCManager:sendQueue[6]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=6
15:12:36.044:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:36.144:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=6 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">6</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><appID>ev</appID><className>evDMI</className><methodName>calculate</methodName><arguments xsi:type="xsd:List"><elem xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcwp xsi:type="xsd:long">777</bcwp><acwp></acwp><bac></bac><bcws xsi:type="xsd:long">666</bcws><compId></compId><cpi xsi:type="xsd:long">0</cpi><createdBy></createdBy><dateCreated xsi:type="xsd:datetime">2007-07-19T21:47:11</dateCreated><dateModified xsi:type="xsd:datetime">2007-07-19T21:58:59</dateModified><eac></eac><editable xsi:type="xsd:boolean">false</editable><iptWbsMetricId xsi:type="xsd:long">46</iptWbsMetricId><modifiedBy></modifiedBy><monthly xsi:type="xsd:boolean">false</monthly><reportingPeriod xsi:type="xsd:datetime">2007-04-20T07:00:00</reportingPeriod><spi xsi:type="xsd:double">1.17</spi></elem></arguments><is_ISC_RPC_DMI xsi:type="xsd:boolean">true</is_ISC_RPC_DMI></elem></operations></transaction>&protocolVersion=1.0<--
15:12:36.645:INFO:RPCManager:transaction 6 arrived after 661ms
15:12:36.675:DEBUG:RPCManager:Result string for transaction 6: "//isc_RPCResponseStart-->[
    {
        data:{
            acwp:null,
            bac:null,
            bcwp:777.0,
            bcws:666.0,
            compId:null,
            cpi:0.0,
            createdBy:null,
            dateCreated:new Date(1184881631000),
            dateModified:new Date(1184882339000),
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            modifiedBy:null,
            monthly:false,
            reportingPeriod:new Date(1177052400000),
            spi:1.17
        },
        status:0
    }
]//isc_RPCResponseEnd"

changes values part 2:

15:12:36.695:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
15:12:39.749:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:39.799:INFO:RPCManager:sendQueue[7]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=7
15:12:39.950:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:40.060:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=7 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">7</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><appID>ev</appID><className>evDMI</className><methodName>calculate</methodName><arguments xsi:type="xsd:List"><elem xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcwp xsi:type="xsd:long">777</bcwp><acwp></acwp><bac></bac><bcws>555</bcws><compId></compId><cpi xsi:type="xsd:long">0</cpi><createdBy></createdBy><dateCreated xsi:type="xsd:datetime">2007-07-19T21:47:11</dateCreated><dateModified xsi:type="xsd:datetime">2007-07-19T21:58:59</dateModified><eac></eac><editable xsi:type="xsd:boolean">false</editable><iptWbsMetricId xsi:type="xsd:long">46</iptWbsMetricId><modifiedBy></modifiedBy><monthly xsi:type="xsd:boolean">false</monthly><reportingPeriod xsi:type="xsd:datetime">2007-04-20T07:00:00</reportingPeriod><spi xsi:type="xsd:double">1.17</spi></elem></arguments><is_ISC_RPC_DMI xsi:type="xsd:boolean">true</is_ISC_RPC_DMI></elem></operations></transaction>&protocolVersion=1.0<--
15:12:40.520:INFO:RPCManager:transaction 7 arrived after 641ms
15:12:40.550:DEBUG:RPCManager:Result string for transaction 7: "//isc_RPCResponseStart-->[
    {
        data:{
            acwp:null,
            bac:null,
            bcwp:777.0,
            bcws:555.0,
            compId:null,
            cpi:0.0,
            createdBy:null,
            dateCreated:new Date(1184881631000),
            dateModified:new Date(1184882339000),
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            modifiedBy:null,
            monthly:false,
            reportingPeriod:new Date(1177052400000),
            spi:1.4
        },
        status:0
    }
]//isc_RPCResponseEnd"
15:12:40.580:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
15:12:42.293:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:42.353:INFO:RPCManager:sendQueue[8]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=8
15:12:42.493:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:12:42.523:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=8 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">8</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><appID>ev</appID><className>evDMI</className><methodName>calculate</methodName><arguments xsi:type="xsd:List"><elem xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcwp xsi:type="xsd:long">777</bcwp><acwp>333</acwp><bac></bac><bcws xsi:type="xsd:long">555</bcws><compId></compId><cpi xsi:type="xsd:long">0</cpi><createdBy></createdBy><dateCreated xsi:type="xsd:datetime">2007-07-19T21:47:11</dateCreated><dateModified xsi:type="xsd:datetime">2007-07-19T21:58:59</dateModified><eac></eac><editable xsi:type="xsd:boolean">false</editable><iptWbsMetricId xsi:type="xsd:long">46</iptWbsMetricId><modifiedBy></modifiedBy><monthly xsi:type="xsd:boolean">false</monthly><reportingPeriod xsi:type="xsd:datetime">2007-04-20T07:00:00</reportingPeriod><spi xsi:type="xsd:double">1.4</spi></elem></arguments><is_ISC_RPC_DMI xsi:type="xsd:boolean">true</is_ISC_RPC_DMI></elem></operations></transaction>&protocolVersion=1.0<--
15:12:42.944:WARN:Log:Error:
	'Invalid source HTML for this operation.'
	in http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/iptDataEntry.jsp?ipt_id=289&ipt_reporting_period_week=04/06/2007
	at line 1443
    Canvas.insertAdjacentHTML(_1=>[DIVElement]{ID:isc_1U}, _2=>"afterBegin", _3=>"<FORM ID=isc_1V METHOD=POST ACTION='#' E..."[847], _4=>undef)
    Canvas.$p9()
    Canvas.draw(_1=>undef, undef, undef, undef, undef, undef, undef, undef)
    Class.invokeSuper(_1=>[Class DynamicForm], _2=>"draw", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
    DynamicForm.draw(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
    Canvas.addChild(_1=>[DynamicForm ID:$322], _2=>undef, _3=>undef)
    ListGrid.$32h(_1=>[TextItem ID:isc_TextItem_36 name:acwp], _2=>3)
    ListGrid.hideInlineEditor(_1=>true, _2=>undef)
    ListGrid.$33x(_1=>"click_outside")
    ListGrid.cellEditEnd(_1=>"click_outside", _2=>undef)
    ListGrid.$32x()
    callback()
    Class.fireCallback(_1=>callback(), _2=>undef, _3=>undef, _4=>undef, _5=>undef) on [Class EventHandler]
    EventHandler.$lj(_1=>Obj{ID:isc_DynamicForm_32})
    EventHandler.clickMaskClick(_1=>[ScreenSpan ID:isc_EH_screenSpan])
    EventHandler._$_doHandleMouseDown(_1=>Obj{type:error}, _2=>undef)
    doHandleMouseDownObservation(_1=>Obj{type:error}, _2=>undef)
    EventHandler.handleMouseDown(_1=>Obj{type:error}, _2=>undef)
    EventHandler.dispatch(_1=>EventHandler.handleMouseDown(), _2=>Obj{type:error})
    anonymous(event=>undef)
        "var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

15:12:43.304:INFO:RPCManager:transaction 8 arrived after 871ms
15:12:43.354:DEBUG:RPCManager:Result string for transaction 8: "//isc_RPCResponseStart-->[
    {
        data:{
            acwp:333.0,
            bac:null,
            bcwp:777.0,
            bcws:555.0,
            compId:null,
            cpi:2.33,
            createdBy:null,
            dateCreated:new Date(1184881631000),
            dateModified:new Date(1184882339000),
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            modifiedBy:null,
            monthly:false,
            reportingPeriod:new Date(1177052400000),
            spi:1.4
        },
        status:0
    }
]//isc_RPCResponseEnd"
15:12:43.374:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object

hit save button:

15:16:50.620:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:16:50.660:INFO:RPCManager:sendQueue[9]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=9
15:16:50.760:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
15:16:50.800:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=9 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">9</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId></where><values xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcwp xsi:type="xsd:long">777</bcwp><acwp xsi:type="xsd:long">333</acwp><bac></bac><bcws xsi:type="xsd:long">555</bcws><compId></compId><cpi xsi:type="xsd:double">2.33</cpi><createdBy></createdBy><dateCreated xsi:type="xsd:datetime">2007-07-19T21:47:11</dateCreated><dateModified xsi:type="xsd:datetime">2007-07-19T21:58:59</dateModified><eac></eac><editable xsi:type="xsd:boolean">false</editable><iptWbsMetricId xsi:type="xsd:long">46</iptWbsMetricId><modifiedBy></modifiedBy><monthly xsi:type="xsd:boolean">false</monthly><reportingPeriod xsi:type="xsd:date">2007-04-20</reportingPeriod><spi xsi:type="xsd:double">1.4</spi></values><operationConfig xsi:type="xsd:Object"><dataSource>evData</dataSource><operationType>update</operationType></operationConfig><appID>builtinApplication</appID><operation>evData_update</operation><oldValues xsi:type="xsd:Object"><acwp></acwp><bac></bac><bcwp xsi:type="xsd:long">180</bcwp><bcws xsi:type="xsd:long">50</bcws><cpi xsi:type="xsd:long">0</cpi><eac></eac><editable xsi:type="xsd:boolean">true</editable><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><iptWbsMetricId xsi:type="xsd:long">46</iptWbsMetricId><spi xsi:type="xsd:double">3.6</spi><reportingPeriod xsi:type="xsd:date">2007-04-20</reportingPeriod></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
15:16:50.960:WARN:Log:Error:
	''evDataGrid_382' is undefined'
	in http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/iptDataEntry.jsp?ipt_id=289&ipt_reporting_period_week=04/06/2007
	at line 393
    [o]IButton.click(Obj, undef)
    StatefulCanvas.handleActivate(_1=>Obj, _2=>undef)
    StatefulCanvas.handleClick(_1=>Obj, _2=>undef)
    EventHandler.bubbleEvent(_1=>[IButton ID:saveEvData], _2=>"click", _3=>undef, _4=>undef)
    EventHandler.handleClick(_1=>[IButton ID:saveEvData], _2=>undef)
    EventHandler.$k5(_1=>Obj{type:error}, _2=>undef)
    EventHandler.handleMouseUp(_1=>Obj{type:error}, _2=>undef)
    EventHandler.dispatch(_1=>EventHandler.handleMouseUp(), _2=>Obj{type:error})
    anonymous(event=>undef)
        "var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

15:16:51.551:INFO:RPCManager:transaction 9 arrived after 851ms
15:16:51.611:DEBUG:RPCManager:Result string for transaction 9: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:{
            acwp:333.0,
            bac:null,
            bcwp:777.0,
            bcws:555.0,
            cpi:2.33,
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            spi:1.4,
            reportingPeriod:Date.parseServerDate(2007,3,20)
        },
        endRow:0,
        status:0,
        isDSResponse:true,
        totalRows:0,
        startRow:0
    }
]//isc_RPCResponseEnd"
15:16:51.651:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
15:16:51.782:WARN:ResultSet:isc_ResultSet_16:updated row returned by server doesn't match any cached row,  adding as new row.  Primary key values: {iptCpiSpiId: 389}, complete row: {acwp: 333,
bac: null,
bcwp: 777,
bcws: 555,
cpi: 2.33,
eac: null,
editable: false,
iptCpiSpiId: 389,
iptWbsMetricId: 46,
spi: 1.4,
reportingPeriod: Date(4/20/2007)}

Hi dleung,

Thanks for your legwork getting all the logs onto the forum. We should have mentioned that if you have files of this size you should feel free to send them via email to support@isomorphic.com instead if you find that easier than breaking it up for forum posts.

As you guessed, it looks like the ResultSet’s warning is actually indicating that the other grid, which you are not editing, is noticing the change and rejecting it (there is one ResultSet per grid and all ResultSets for a DataSource notice changes). This shouldn’t be a warning (we’ve corrected this) and should be harmless. If you set the ResultSet log category to DEBUG and resend just the last segment of the logs, we’d be able to confirm that in fact it’s the other ResultSet issuing the warning, and that the ResultSet for the grid you are editing successfully updates its cache.

There are no hints here as to why you would have seen a lack of refreshing when, in a previous incarnation of your code, you had autoSaveEdits:true and were doing a parallel DMI to retrieve calculations. If you want to revisit that at any time we’d be happy to help (we’d like to ensure there are no SmartClient bugs involved) - the same set of logs (RPCManager and ResultSet set to DEBUG) would help troubleshoot.

I think we’re actually settling on the “button save all” option so I probably won’t be going back to the previous code attempts. Here’s the log after the save event with the ResultSet also on:

21:01:18.879:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
21:01:18.950:INFO:RPCManager:sendQueue[4]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=4
21:01:19.050:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
21:01:19.140:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=4 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">4</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><appID>ev</appID><className>evDMI</className><methodName>calculate</methodName><arguments xsi:type="xsd:List"><elem xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcws>900</bcws></elem></arguments><is_ISC_RPC_DMI xsi:type="xsd:boolean">true</is_ISC_RPC_DMI></elem></operations></transaction>&protocolVersion=1.0<--
21:01:19.500:WARN:Log:Error:
	'Invalid source HTML for this operation.'
	in http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/iptDataEntry.jsp?ipt_id=289&ipt_reporting_period_week=04/06/2007
	at line 1443
    Canvas.insertAdjacentHTML(_1=>[DIVElement]{ID:isc_1U}, _2=>"afterBegin", _3=>"<FORM ID=isc_1V METHOD=POST ACTION='#' E..."[847], _4=>undef)
    Canvas.$p9()
    Canvas.draw(_1=>undef, undef, undef, undef, undef, undef, undef, undef)
    Class.invokeSuper(_1=>[Class DynamicForm], _2=>"draw", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
    DynamicForm.draw(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
    Canvas.addChild(_1=>[DynamicForm ID:$322], _2=>undef, _3=>undef)
    ListGrid.$32h(_1=>[TextItem ID:isc_TextItem_35 name:bcws], _2=>2)
    ListGrid.hideInlineEditor(_1=>true, _2=>undef)
    ListGrid.$33x(_1=>"click_outside")
    ListGrid.cellEditEnd(_1=>"click_outside", _2=>undef)
    ListGrid.$32x()
    callback()
    Class.fireCallback(_1=>callback(), _2=>undef, _3=>undef, _4=>undef, _5=>undef) on [Class EventHandler]
    EventHandler.$lj(_1=>Obj{ID:isc_DynamicForm_32})
    EventHandler.clickMaskClick(_1=>[IButton ID:saveEvData])
    EventHandler._$_doHandleMouseDown(_1=>Obj{type:error}, _2=>undef)
    doHandleMouseDownObservation(_1=>Obj{type:error}, _2=>undef)
    EventHandler.handleMouseDown(_1=>Obj{type:error}, _2=>undef)
    EventHandler.dispatch(_1=>EventHandler.handleMouseDown(), _2=>Obj{type:error})
    anonymous(event=>undef)
        "var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

21:01:19.901:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
21:01:19.931:INFO:RPCManager:sendQueue[5]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=5
21:01:20.001:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
21:01:20.031:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=5 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">5</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId></where><values xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcws xsi:type="xsd:long">900</bcws></values><operationConfig xsi:type="xsd:Object"><dataSource>evData</dataSource><operationType>update</operationType></operationConfig><appID>builtinApplication</appID><operation>evData_update</operation><oldValues xsi:type="xsd:Object"><acwp xsi:type="xsd:long">500</acwp><bac xsi:type="xsd:long">555</bac><bcwp xsi:type="xsd:long">80</bcwp><bcws xsi:type="xsd:long">700</bcws><cpi xsi:type="xsd:double">0.16</cpi><eac></eac><editable xsi:type="xsd:boolean">true</editable><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><iptWbsMetricId xsi:type="xsd:long">46</iptWbsMetricId><spi xsi:type="xsd:double">0.4</spi><reportingPeriod xsi:type="xsd:date">2007-04-20</reportingPeriod></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
21:01:20.141:WARN:Log:Error:
	''evDataGrid_382' is undefined'
	in http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/iptDataEntry.jsp?ipt_id=289&ipt_reporting_period_week=04/06/2007
	at line 393
    [o]IButton.click(Obj, undef)
    StatefulCanvas.handleActivate(_1=>Obj, _2=>undef)
    StatefulCanvas.handleClick(_1=>Obj, _2=>undef)
    EventHandler.bubbleEvent(_1=>[IButton ID:saveEvData], _2=>"click", _3=>undef, _4=>undef)
    EventHandler.handleClick(_1=>[IButton ID:saveEvData], _2=>undef)
    EventHandler.$k5(_1=>Obj{type:error}, _2=>undef)
    EventHandler.handleMouseUp(_1=>Obj{type:error}, _2=>undef)
    EventHandler.dispatch(_1=>EventHandler.handleMouseUp(), _2=>Obj{type:error})
    anonymous(event=>undef)
        "var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

21:01:20.241:INFO:RPCManager:transaction 4 arrived after 1221ms
21:01:20.282:DEBUG:RPCManager:Result string for transaction 4: "//isc_RPCResponseStart-->[
    {
        data:{
            acwp:500.0,
            bac:555.0,
            bcwp:80.0,
            bcws:900.0,
            compId:null,
            cpi:0.16,
            createdBy:null,
            dateCreated:new Date(1184881631000),
            dateModified:new Date(1184904020000),
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            modifiedBy:null,
            monthly:false,
            reportingPeriod:new Date(1177052400000),
            spi:0.09
        },
        status:0
    }
]//isc_RPCResponseEnd"
21:01:20.302:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
21:01:20.702:INFO:RPCManager:transaction 5 arrived after 731ms
21:01:20.722:DEBUG:RPCManager:Result string for transaction 5: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:{
            acwp:500.0,
            bac:555.0,
            bcwp:80.0,
            bcws:900.0,
            cpi:0.16,
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            spi:0.4,
            reportingPeriod:Date.parseServerDate(2007,3,20)
        },
        endRow:0,
        status:0,
        isDSResponse:true,
        totalRows:0,
        startRow:0
    }
]//isc_RPCResponseEnd"
21:01:20.772:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
21:01:20.822:INFO:ResultSet:isc_ResultSet_1:Updating cache: operationType 'update', undefined rows update data:
{acwp: 500,
bac: 555,
bcwp: 80,
bcws: 900,
cpi: 0.16,
eac: null,
editable: false,
iptCpiSpiId: 389,
iptWbsMetricId: 46,
spi: 0.4,
reportingPeriod: Date(4/20/2007)}
21:01:20.852:INFO:ResultSet:isc_ResultSet_1:row dropped:
{acwp: 500,
bac: 555,
bcwp: 80,
bcws: 900,
cpi: 0.16,
eac: null,
editable: false,
iptCpiSpiId: 389,
iptWbsMetricId: 46,
spi: 0.4,
reportingPeriod: Date(4/20/2007)}
didn't match filter: {reportingPeriod: "04/06/2007",
compId: "381",
monthly: "true"}
21:01:20.882:DEBUG:ResultSet:isc_ResultSet_1:updated cache, 0 out of 1 rows remain in cache, 0 row(s) added.
21:01:20.922:DEBUG:ResultSet:isc_ResultSet_1:full length set to: 2
21:01:20.973:INFO:ResultSet:isc_ResultSet_16:Updating cache: operationType 'update', undefined rows update data:
{acwp: 500,
bac: 555,
bcwp: 80,
bcws: 900,
cpi: 0.16,
eac: null,
editable: false,
iptCpiSpiId: 389,
iptWbsMetricId: 46,
spi: 0.4,
reportingPeriod: Date(4/20/2007)}
21:01:21.033:WARN:ResultSet:isc_ResultSet_16:updated row returned by server doesn't match any cached row,  adding as new row.  Primary key values: {iptCpiSpiId: 389}, complete row: {acwp: 500,
bac: 555,
bcwp: 80,
bcws: 900,
cpi: 0.16,
eac: null,
editable: false,
iptCpiSpiId: 389,
iptWbsMetricId: 46,
spi: 0.4,
reportingPeriod: Date(4/20/2007)}
21:01:21.083:DEBUG:ResultSet:isc_ResultSet_16:updated cache, 1 out of 1 rows remain in cache, 1 row(s) added.
21:01:21.143:DEBUG:ResultSet:isc_ResultSet_16:full length set to: 4
21:01:21.203:DEBUG:ResultSet:isc_ResultSet_1:getRange(0, 1) satisfied from cache
21:01:21.263:WARN:ListGrid:evDataGrid_381:Record:{iptCpiSpiId: 389}, lost from local cache in paged result set. Pending edits for this record will be maintained.
21:01:21.313:DEBUG:ResultSet:isc_ResultSet_1:getRange(0, 1) satisfied from cache
21:01:21.373:DEBUG:ResultSet:isc_ResultSet_16:getRange(0, 3) satisfied from cache

Just to eliminate variables, I made a test page with just one grid and a save button with all the necessary variables hardcoded. Also took out the custom call to my DMI for the calculation. So only thing left should be the DMI update. Same problem appears to be present.

Here is the log:

21:08:55.596:INFO:Log:initialized
21:08:56.067:INFO:RPCManager:builtinApplication:Creating new isc.ResultSet for operation 'evData_fetch' with filterValues: {reportingPeriod:"04/06/2007",compId:"381",monthly:"true"}
21:08:56.067:INFO:ResultSet:isc_ResultSet_1:Comparing criteria, oldCriteria:
{reportingPeriod: "04/06/2007",
compId: "381",
monthly: "true"}
newCriteria:
{reportingPeriod: "04/06/2007",
compId: "381",
monthly: "true"}
21:08:56.067:INFO:ResultSet:isc_ResultSet_1:setCriteria: filter criteria not changed
21:08:56.067:DEBUG:ResultSet:isc_ResultSet_1:getRange(0,7), cache check: 0,40 firstMissingRow: 0 lastMissingRow: 40
21:08:56.067:DEBUG:ResultSet:isc_ResultSet_1:getRange: guessing forward scrolling
21:08:56.067:INFO:ResultSet:isc_ResultSet_1:getRange(0, 7) will fetch from 0 to 75
21:08:56.067:INFO:ResultSet:isc_ResultSet_1:fetching rows 0,75 from server
21:08:56.077:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
21:08:56.077:DEBUG:RPCManager:Grabbed prompt from first request that defined one: Finding records that match your criteria...
21:08:56.167:DEBUG:ResultSet:isc_ResultSet_1:getRange(0, 8) satisfied from cache
21:08:56.187:INFO:Log:isc.Page is loaded
21:08:56.197:INFO:RPCManager:Resubmitting transaction number: 0
21:08:56.237:INFO:RPCManager:sendQueue[0]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=0
21:08:56.257:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
21:08:56.257:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=0 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">0</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><reportingPeriod>04/06/2007</reportingPeriod><compId>381</compId><monthly>true</monthly></where><operationConfig xsi:type="xsd:Object"><dataSource>evData</dataSource><operationType>fetch</operationType></operationConfig><startRow xsi:type="xsd:long">0</startRow><endRow xsi:type="xsd:long">75</endRow><appID>builtinApplication</appID><operation>evData_fetch</operation><oldValues xsi:type="xsd:Object"><reportingPeriod>04/06/2007</reportingPeriod><compId>381</compId><monthly>true</monthly></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
21:08:56.838:INFO:RPCManager:transaction 0 arrived after 601ms
21:08:56.848:DEBUG:RPCManager:Result string for transaction 0: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:[
            {
                acwp:null,
                bac:null,
                bcwp:null,
                bcws:null,
                cpi:null,
                eac:null,
                editable:false,
                iptCpiSpiId:425,
                iptWbsMetricId:46,
                spi:null,
                reportingPeriod:Date.parseServerDate(2007,2,23)
            },
            {
                acwp:500.0,
                bac:555.0,
                bcwp:80.0,
                bcws:900.0,
                cpi:0.16,
                eac:null,
                editable:true,
                iptCpiSpiId:389,
                iptWbsMetricId:46,
                spi:0.4,
                reportingPeriod:Date.parseServerDate(2007,3,20)
            },
            {
                acwp:14938.0,
                bac:null,
                bcwp:13948.0,
                bcws:13948.0,
                cpi:null,
                eac:null,
                editable:true,
                iptCpiSpiId:442,
                iptWbsMetricId:46,
                spi:null,
                reportingPeriod:Date.parseServerDate(2007,4,18)
            }
        ],
        endRow:75,
        status:0,
        isDSResponse:true,
        totalRows:3,
        startRow:0
    }
]//isc_RPCResponseEnd"
21:08:56.848:INFO:RPCManager:rpcResponse(evData_fetch)[fetch]: [status=0], result: 3 records
21:08:56.848:INFO:ResultSet:isc_ResultSet_1:Received 3 records from server
21:08:56.848:DEBUG:ResultSet:isc_ResultSet_1:full length set to: 3
21:08:56.848:DEBUG:ResultSet:isc_ResultSet_1:integrating 3 rows into cache at position 0
21:08:56.848:INFO:ResultSet:isc_ResultSet_1:cached 3 rows, from 0 to 75 (3 total rows, 3 cached)
21:08:56.848:INFO:ResultSet:isc_ResultSet_1:Cache for current criteria complete
21:08:56.858:DEBUG:ResultSet:isc_ResultSet_1:getRange(0, 2) satisfied from cache
21:09:14.563:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
21:09:14.574:INFO:RPCManager:sendQueue[1]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=1
21:09:14.614:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
21:09:14.624:DEBUG:RPCManager:XMLHttpRequest POST to http://147.16.219.62:8989/prg_ipt_metrics_jdev-prg_ipt_metrics-context-root/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=1 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">1</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId></where><values xsi:type="xsd:Object"><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><bcws xsi:type="xsd:long">1600</bcws></values><operationConfig xsi:type="xsd:Object"><dataSource>evData</dataSource><operationType>update</operationType></operationConfig><appID>builtinApplication</appID><operation>evData_update</operation><oldValues xsi:type="xsd:Object"><acwp xsi:type="xsd:long">500</acwp><bac xsi:type="xsd:long">555</bac><bcwp xsi:type="xsd:long">80</bcwp><bcws xsi:type="xsd:long">900</bcws><cpi xsi:type="xsd:double">0.16</cpi><eac></eac><editable xsi:type="xsd:boolean">true</editable><iptCpiSpiId xsi:type="xsd:long">389</iptCpiSpiId><iptWbsMetricId xsi:type="xsd:long">46</iptWbsMetricId><spi xsi:type="xsd:double">0.4</spi><reportingPeriod xsi:type="xsd:date">2007-04-20</reportingPeriod></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
21:09:14.634:WARN:RPCManager:sendQueue called with no current queue, ignoring
21:09:15.214:INFO:RPCManager:transaction 1 arrived after 630ms
21:09:15.224:DEBUG:RPCManager:Result string for transaction 1: "//isc_RPCResponseStart-->[
    {
        invalidateCache:false,
        data:{
            acwp:500.0,
            bac:555.0,
            bcwp:80.0,
            bcws:1600.0,
            cpi:0.16,
            eac:null,
            editable:false,
            iptCpiSpiId:389,
            iptWbsMetricId:46,
            spi:0.4,
            reportingPeriod:Date.parseServerDate(2007,3,20)
        },
        endRow:0,
        status:0,
        isDSResponse:true,
        totalRows:0,
        startRow:0
    }
]//isc_RPCResponseEnd"
21:09:15.244:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=0], result: object
21:09:15.254:INFO:ResultSet:isc_ResultSet_1:Updating cache: operationType 'update', undefined rows update data:
{acwp: 500,
bac: 555,
bcwp: 80,
bcws: 1600,
cpi: 0.16,
eac: null,
editable: false,
iptCpiSpiId: 389,
iptWbsMetricId: 46,
spi: 0.4,
reportingPeriod: Date(4/20/2007)}
21:09:15.275:INFO:ResultSet:isc_ResultSet_1:row dropped:
{acwp: 500,
bac: 555,
bcwp: 80,
bcws: 1600,
cpi: 0.16,
eac: null,
editable: false,
iptCpiSpiId: 389,
iptWbsMetricId: 46,
spi: 0.4,
reportingPeriod: Date(4/20/2007)}
didn't match filter: {reportingPeriod: "04/06/2007",
compId: "381",
monthly: "true"}
21:09:15.285:DEBUG:ResultSet:isc_ResultSet_1:updated cache, 0 out of 1 rows remain in cache, 0 row(s) added.
21:09:15.295:DEBUG:ResultSet:isc_ResultSet_1:full length set to: 2
21:09:15.315:DEBUG:ResultSet:isc_ResultSet_1:getRange(0, 1) satisfied from cache
21:09:15.355:DEBUG:ResultSet:isc_ResultSet_1:getRange(0, 1) satisfied from cache

Hi dleung,

Note this part of the log:

The row-as-updated no longer matches the search criteria for the grid (specifically it does not have monthly:“true” and the reporting period differs) so it gets removed from the cache.

This is generally what you want, eg, if you make a row so it no longer matches the current search criteria it should disappear, just as it would disappear if you cleared the cache and refetched. Is that not what you want here?

Note there is a flag you could set, dropCacheOnUpdate, which would mean that there is no attempt to figure out whether an updated row belongs still belongs in the cache, instead the cache is refetched every time an update succeeds. But again, it looks like this row no longer matches the search criteria, and the server presumably would not return it either, so it would disappear regardless.

The dropCacheOnUpdate seems to be a solution for this. Thanks!

The filter is a bit odd to me. Those 3 parameters are actually not all attributes of the records (as you can see, compid and monthly are not fields). The reporting period, however, is used to produce a range of reporting periods. The other two parameters simply tell the DMI fetch function what resultset to query. I’m guessing then, that the “initialCriteria” is essentially a set of filter criteria for the dataset? and is somehow used to determine a “correctly filtered” resultset for the grid?

Either way, thank you for the much needed help and eyes on the log (I must have ignored that line).

Hi dleung,

The current criteria for the ResultSet, whether specified by listGrid.initialCritera, the criteria parameter of listGrid.fetchData, or resultSet.setCriteria, will be used to filter records under two circumstances:

  1. an update is submitted against the DataSource and this ResultSet needs to figure out if it should incorporate the updated data in its cache.
  2. a complete set of records has been loaded and the ResultSet takes the opportunity to start using client-side filtering to improve responsiveness.

In both cases the default interpretation of the criteria is as a set of field values to match, the same as what SmartClient’s SQL binding will do with criteria by default.

The first behavior can be disabled with dropCacheOnUpdate, the second with useClientFiltering:false.

Make sense?

Note that additional documentation has been added in this area in 5.7.

Yes, makes sense and good to know. Thanks for the explanation and help!