How to put/insert/update/modify bonus to all employees in the table based on input amount

How to put/insert/update/modify bonus to all employees in the table based on input amount

stancaballerostancaballero Posts: 29Questions: 9Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Can you provide more information, please? Such as is this just a display issue, where you want a DataTables column that's not in the database to show a value, or are you looking to do the calculation and send that data to the server when the field is updated?

    Colin

  • stancaballerostancaballero Posts: 29Questions: 9Answers: 0

    I want to share the total incentives based on their percentage per employee amount

  • stancaballerostancaballero Posts: 29Questions: 9Answers: 0

    I want to do a calculation based on percentage and total amount and send back to the server and also update the display table.

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin

    I'm not fully getting it either I'm afraid. Do you have an input element somewhere (not shown in your screenshot) where you enter a value and then you perform some calculations when you then want to edit all rows with and submit that to the server?

    If so, you want to use the Editor multi-row API. Trigger an edit on all rows (edit() with a suitable selector for the rows you want) and then iterate over the rows using the Editor multi-row API to edit the values. Finally submit() to send to the server.

    Allan

Sign In or Register to comment.