Opened 13 years ago

Closed 13 years ago

#1877 closed defect (fixed)

FilteringTable: onUpdateField event on a property not shown

Reported by: brianmarco@… Owned by: Tom Trenka
Priority: high Milestone: 0.9
Component: Widgets Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

  • When calling "update" on the backing store object of FilteringTable?, the subsequent "onUpdateField" handler in FilteringTable? will fail with index out of bounds if the updated field isn't visually represented (ie. no column in the table for that field).
  • This issue occurs on all browsers.
  • Encountered with 20061108 nightly build.
  • Index out of bounds occurs at:
dojo.event.connect(this.store, "onUpdateField", function(obj, fieldPath, val){
  var row = self.getRow(obj);
  var idx = self.getColumnIndex(fieldPath);
  if(row && row.cells[idx] && self.columns[idx]){
    self.fillCell(row.cells[idx], self.columns[idx], val);
  }
});

During "row.cell[idx]" since idx == -1 when there is no column for the provided fieldPath.

Change History (4)

comment:1 Changed 13 years ago by Tom Trenka

Milestone: 0.5
Owner: changed from anonymous to Tom Trenka

comment:2 Changed 13 years ago by Tom Trenka

Component: GeneralWidgets

comment:3 Changed 13 years ago by Tom Trenka

Summary: Problem with FilteringTable and onUpdateField eventFilteringTable: onUpdateField event on a property not shown

comment:4 Changed 13 years ago by Tom Trenka

Resolution: fixed
Status: newclosed

(In [6712]) Fixes #1877.

Note: See TracTickets for help on using tickets.