LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

*Datatable v.4.0.11 (also v.4.0.9)* - _(Saving Edits)_ - Consecutive Edits to Non-Date Fields Throw Error on Save

Open williusTech opened this issue 1 year ago • 2 comments

Steps to reproduce

From a datatable LWC surfaced through a flow:

  1. Edit any combination of rows/columns, then click [Save] (these will be referred to as “Round 1 Edits” later)
  2. Edit any combination of rows/columns, and click [Save] (these will be referred to as “Round 2+ Edits” later)

Expected behaviour

  • Round 2+ Edits are saved and combined with Round 1 Edits
  • Any further edits (Round 3, Round 4, ...) are also saveable

Actual behaviour

  • Component error screen is displayed as shown below, for every subsequent [Save] attempt.
  • BUT can save Round 2+ edits if the following criteria are met after exiting the error message:
    • Clicking [Cancel] with the same edits
    • Editing more rows to include additional changes to at least two unique date fields, then clicking [Save]

Screenshots

image

Screenshot Contents Summary From Screenshot:
  • Message: "[t[e].slice is not a function]"
  • Component Descriptor: markup://c:datatable
  • File Name: https://xxxxxxxxxx.sandbox.lightning.force.com/lightning/action/quick/modules/c/datatable.js
  • Function: eval
  • Line: 1
  • Column: 37807
  • Stack Trace: "eval()@https://xxxxxxxxxx.sandbox.lightning.force.com/lightning/action/quick/modules/c/datatable.js:1:37087 eval()@https://xxxxxxxxxx.sandbox.lightning.force.com/lightning/action/quick/modules/c/datatable.js:1:37023 $e.handleSave()@https://xxxxxxxxxx.sandbox.lightning.force.com/lightning/action/quick/modules/c/datatable.js:1:36317"

williusTech avatar Sep 14 '22 18:09 williusTech

This will be fixed in v4.0.12

ericrsmith35 avatar Oct 08 '22 14:10 ericrsmith35

Thanks Eric :)

kurtfairfield avatar Oct 11 '22 18:10 kurtfairfield

This has been resolved in version 4.0.12. https://unofficialsf.com/datatable-lightning-web-component-for-flow-screens-2/#Installation

ericrsmith35 avatar Nov 03 '22 00:11 ericrsmith35