preEdit and multiple editing

preEdit and multiple editing

tangerinetangerine Posts: 3,348Questions: 36Answers: 394

Hi Allan.
I suspect that this post
https://datatables.net/forums/discussion/39926
may be related to a recent problem of mine, whereby preEdit passes values to a function which creates a new field and gives it a composite value. Multiple editing always only uses the result of the first composite created.
Was there any further action in that thread?

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 3,348Questions: 36Answers: 394

    Bump.

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    Answer ✓

    Hi,

    I clean missed this thread - sorry! I know we resolved it by e-mail, but for anyone else who reads this, we ended up using a PHP pass by reference for the values object passed into the events so they could be modified in the event handler.

    Allan

  • Loren MaxwellLoren Maxwell Posts: 387Questions: 94Answers: 10

    Hi @allan, @tangerine,

    I'm having the preEdit/multiple editing issue with logging data changes as well.

    I'm using the code from this post:
    https://datatables.net/forums/discussion/46968/robust-audit-logging

    But the $prevValues are always from the same record.

    I thought using $prevValues as a global variable would be essentially the same as passing it by reference, but maybe not.

    Any thoughts on how I could improve this to update the $prevValues?

This discussion has been closed.