preEdit and multiple editing
preEdit and multiple editing
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
This discussion has been closed.
Answers
Bump.
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
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
?