|
|
ChatGPT 2/2/2026 |
|
In PHPRunner, when you're dealing with multiple updates and want to ensure that all validation checks are passed before closing the dialog, you can implement a mechanism to aggregate the validation results. Instead of returning immediately on the first failure, you can collect error messages and return them all at once if there are any issues. Here's a modified approach to your
|
|
|
|
Sergey Kornilov admin 2/2/2026 |
|
It looks like you are not providing the whole picture. On Add and Edit pages there is only one record and it is not clear what "It works perfectly as long I am only updating one row." means in this context. |
|
|
C
|
Chris Whitehead 2/3/2026 |
|
Would I be correct in thinking that you're using the list page, selecting the records using the checkbox and using a dialog or popup to update all the records? |
|
|
A
|
Andreas author 2/3/2026 |
|
@Chris Whitehead yes, thats correct. Setting the $message variable to something and returning false shows an error message. Sorry if I couldn't tell it more clearly. If you want, then I can record my screen and upload it to youtube :) |
|
|
C
|
Chris Whitehead 2/3/2026 |
|
@Andreas, I think you need to add the code into the server section of the button and loop through the selected records as this code snippet // this would go into the server section of the button, this is just pseudo code so update.// then this into the client after to display the errors or sucesses |
|