fhumanes 1/3/2024 | |
Hello, The function to send email in phprunner is: runner_mail(): Greetings, |
D
|
Damell01 author 1/3/2024 |
So like this $from = "batwaremed2@gmail.com"; if ($values["Status"] === "Closed") { // Construct the notification message including the Workorder ID } |
D
|
Damell01 author 1/3/2024 |
This didn't work for me any insights? I am lost |
fhumanes 1/4/2024 | |
Hello, In this link I explain how you can generate traces (debug) of your PHP code. https://fhumanes.com/blog/guias-desarrollo/guia-34-metodo-basico-para-depuracion-codigo/ When you include, "echo" sentences you can modify the logic of the Phprunner program. If you have problems debuging the way I explain, tell me to help you. Greetings, |
D
|
Damell01 author 1/4/2024 |
I'm not sure what to debug this is what I got [Thu, 04 Jan 2024 09:07:39 -0500] Error 1: URL ejecutada: /login.php |
fhumanes 1/4/2024 | |
Hello, |
admin 1/5/2024 | |
I would like to provide what I may call a scientific or systematic approach to troubleshooting.
Why this event may not be executed at all? I can see that BeforeEdit event is marked as bold which means there is some code in there. If you do something wrong in BeforeEdit event then AfterEdit event would not be executed at all. So, to make sure that this code runs at all, I would add the following in the very beginning of the event: Run this page and lets us know what exactly happens after you click Save. Depending on what happens, we'll pick up the next troubleshooting step. Note: this approach applies to the regular Edit page. If you use a page in popup or inline edit or selected to redirect the user back to the LIst page after the record was edited - then this code might need to be adjusted. |
D
|
Damell01 author 1/6/2024 |
I ended up figuring it out. I took over this project for a company on the side and have been adding new features for them. Turns out the "Status" value is actually referring to a "StatusID" number and isn't technically called "closed" it's actually "2" |