alexed1 / LightningFlowComponents

A collection of unofficial Flow extensions that can be used to enhance Salesforce Flow and Orchestrator.
http://unofficialsf.com
Other
590 stars 579 forks source link

*DataTable* - mis edited row and not edited one in a new output #1506

Open dufoli opened 10 months ago

dufoli commented 10 months ago

Is your feature request related to a problem? Please describe. context: user have a list of line of order and he can edit line quantity but I want to get the full list of line (edited or not) to create invoice line. So by default order line is fully invoiced but user can reduce quantity to partially invoice. before saving invoice line, I need to check few things (consistency) that s why I do not save invoice line at the beginning then edit it.

Describe the solution you'd like

Describe alternatives you've considered

Additional context Add any other context or screenshots about the feature request here.

dufoli commented 10 months ago

@ericrsmith35

ericrsmith35 commented 10 months ago

Here's a write-up on how to combine selected and edited records. https://ericsplayground.wordpress.com/2021/06/11/2144/

You can use similar logic to create a collection of all the original records with the edits included. Let me know if you need more details.

dufoli commented 10 months ago

ok I will use this trick. thanks

dufoli commented 10 months ago

@ericrsmith35 I try to use the trick. It work perfecty if I use multi screen but if I use "calculate field summary" LWC to sum the I need to sum the whole list and not edited only So I used the "Find unique and common" LWC I need to add unique and common like the assigment action : joins collection will do the trick I guess.

then for each line to do quantity x unit price then sum totalpriceline then display totalPrice and difference with expectedValue

So I think I will do My own lwc to do it because I have not the quantity x unit price CP collection lwc

ericrsmith35 commented 10 months ago

Add a new formula field to the record that is quantity x unit price and sum that value

On Wed, Jan 10, 2024 at 9:03 AM olivier dufour @.***> wrote:

@ericrsmith35 https://github.com/ericrsmith35 I try to use the trick. It work perfecty if I use multi screen but if I use "calculate field summary" LWC to sum the I need to sum the whole list and not edited only So I used the "Find unique and common". But I need for each line to do quantity x unit price then sum totalpriceline then display totalPrice and difference with expectedValue

— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/issues/1506#issuecomment-1884909334, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX7DRWS2HLCBIEFDZVTYN2NU3AVCNFSM6AAAAABBMT22JWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUHEYDSMZTGQ . You are receiving this because you were mentioned.Message ID: @.***>

ericrsmith35 commented 3 months ago

This issue has been addressed in the latest (v4.3.0) release. https://unofficialsf.com/datatable-lightning-web-component-for-flow-screens-2/

dufoli commented 3 months ago

@ericrsmith35 thank you so much !