A
|
acpan 1/30/2020 |
>> Is there a way for Before Update Record Event to be called by the Update Selected method.?
|
S
|
Steve Seymour author 1/31/2020 |
>> Is there a way for Before Update Record Event to be called by the Update Selected method.? Yes. Before Record Updated event will run for all records selected with checkbox, verified on my PHPR 10.03(34262) latest build. Maybe check how your code performs what you said: "I need the user to select a value so that my date calculation can update another field" The above is what PHPR can do by default. The part fails you may be the condition check before you do the calculation and assign the values (i assume you have condition check as i always do). Depending on how you test the user selected value, your code that calculate and assign values may not get run in the event code.
|
A
|
acpan 1/31/2020 |
Okay, just to let you know that on the PHPR version i stated above, i was able to update the selected records and run the events successfully on each records. |
S
|
Steve Seymour author 1/31/2020 |
Okay, just to let you know that on the PHPR version i stated above, i was able to update the selected records and run the events successfully on each records. screencast ACP
|
![]() |
Sergey Kornilov admin 2/1/2020 |
In case of Update Selected BeforeEdit event will be executed and $values array will contain the list of values, the user selected to update. This means a different set of fields will be available via $values array. |
S
|
Steve Seymour author 2/3/2020 |
In case of Update Selected BeforeEdit event will be executed and $values array will contain the list of values, the user selected to update. This means a different set of fields will be available via $values array. You also need to understand how to troubleshoot pages executed via AJAX. This article explains how you can see the output from pages executed via AJAX: https://xlinesoft.com/phprunner/docs/troubleshooting_custom_buttons.htm
|