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.