|
|
Sergey Kornilov admin 5/8/2020 |
|
From the look of it - the error is happening in the Server part of the event and you need to see the exact error message. Here is the article that explains what to https://xlinesoft.com/phprunner/docs/troubleshooting_custom_buttons.htm |
|
|
W
|
wpl 5/8/2020 |
|
Louis,
|
|
|
L
|
lcslouis author 5/9/2020 |
|
I wound up moving all the code to the before record added or updated events.
|
|
|
W
|
wpl 5/10/2020 |
|
Client After
|
|
|
|
Sergey Kornilov admin 5/10/2020 |
|
There is a huge difference between event not being triggered and not doing what you want it to do and you need to find out which one. |
|
|
L
|
lcslouis author 5/10/2020 |
|
Ok After changing the code to this:
|
|
|
|
Sergey Kornilov admin 5/10/2020 |
|
You need to find out which specific line of the code produces this error: |
|
|
L
|
lcslouis author 5/10/2020 |
|
It's saying that the server tab $result['CurrentQi'] is not defined or it can't read it.
|
|
|
|
Sergey Kornilov admin 5/11/2020 |
|
Keep digging. The next step is to print the SQL query from the Server event and make sure that it is correct and returns results. |
|
|
L
|
lcslouis author 5/11/2020 |
|
Ok I have figured out the issue. |
|
|
|
Sergey Kornilov admin 5/11/2020 |
|
This makes total sense. Outputting SQL queries or other debug info will break all AJAX functionality like buttons, field events, popup windows, lookup wizards in AJAX mode etc. |
|