Hi,
I have a dataframe in which there are mixed data type columns. When number/ text columns/booleans columns are changed , I get newValue in the event data which i use to write to DB. however when the columns is date format which uses ‘‘agDateCellEditor’ as date editor and on date selection i get the event but there is no ‘newValue’ in it and i get error
KeyError: ‘newValue’
Here is my event data:
{‘type’: ‘cellValueChanged’, ‘rowIndex’: 0, ‘column’: {‘destroyed’: False, ‘__v_skip’: True, ‘propertyListenerId’: 0, ‘colId’: ‘3ad7b6d5bb964eeb82cf445626449917’, ‘primary’: True, ‘isColumn’: True, ‘instanceId’: 2, ‘autoHeaderHeight’: 24, ‘moving’: False, ‘resizing’: False, ‘menuVisible’: False, ‘lastLeftPinned’: False, ‘firstRightPinned’: False, ‘filterActive’: False, ‘tooltipEnabled’: False, ‘rowGroupActive’: False, ‘pivotActive’: False, ‘aggregationActive’: False, ‘colIdSanitised’: ‘3ad7b6d5bb964eeb82cf445626449917’, ‘visible’: True, ‘minWidth’: 29, ‘maxWidth’: 9007199254740991, ‘actualWidth’: 100, ‘fieldContainsDots’: False, ‘tooltipFieldContainsDots’: False, ‘oldLeft’: 100, ‘left’: 100}, ‘colDef’: {‘min_column_width’: 100, ‘filterable’: True, ‘sortable’: True, ‘resizable’: True, ‘suppressMovable’: True, ‘filter’: ‘agDateColumnFilter’, ‘enableCellChangeFlash’: True, ‘cellRenderer’: ‘agAnimateSlideCellRenderer’, ‘flashDuration’: 2000, ‘wrapHeaderText’: True, ‘autoHeaderHeight’: True, ‘width’: 100, ‘lockPinned’: True, ‘cellDataType’: ‘date’, ‘cellEditor’: ‘agDateCellEditor’, ‘headerName’: ‘date’, ‘field’: ‘3ad7b6d5bb964eeb82cf445626449917’}, ‘data’: {‘979e193cef07405dbedec281e65c3c54’: ‘A1001’, ‘7d62c89542e24ff6ba09896c4c5d4459’: True, ‘is_total_rows’: 0, ‘::auto_unique_id::’: ‘0’}, ‘node’: {‘master’: False, ‘rowIndex’: 0, ‘sourceRowIndex’: 0, ‘treeNodeFlags’: 0, ‘displayed’: True, ‘rowTop’: 0, ‘oldRowTop’: 0, ‘selectable’: True, ‘__objectId’: 1, ‘alreadyRendered’: True, ‘hovered’: False, ‘__selected’: False, ‘level’: 0, ‘group’: False, ‘expanded’: False, ‘id’: ‘0’, ‘__hasChildren’: False, ‘firstChild’: True, ‘lastChild’: False, ‘childIndex’: 0, ‘uiLevel’: 0, ‘rowHeight’: 20, ‘rowHeightEstimated’: False}, ‘oldValue’: ‘NaT’, ‘source’: ‘edit’, ‘context’: {‘id’: ‘a053bc3ebaa444d2b36ad29e3b4402e1’, ‘view_id’: ‘view_a14c48d7710740a89118ba64223c098d’}, ‘streamlitRerunEventTriggerName’: ‘cellValueChanged’}
this seems like a bug to me. can anyone confirm.