function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi Kumar 6740Ravi Kumar 6740 

How to apply different discounts to different fields of the record while inline edit in lightning datatable?

PriyaPriya (Salesforce Developers) 

Hi Ravi,

You can try this approach :- 

1. Create the fields to add discount percent for different fields.
2. in lightning datatable allow the users to inline edit these fields
3. you can create a formula to calulate the discounted value and write logic to display discounted value in different fields.

If the above information helps, please mark it as best answer.


Priya Ranjan