![]() |
Tandy 8/13/2025 |
On the table you are editng in the After record updated: $data = array(); Hope that helps.. |
B
|
bioman author 8/13/2025 |
Thanks Tandy, $data = array(); It seems basically the same as Method 3 (which didn't work either), but with $data replacing $fieldValues. It seems like the code is correct for both of these but nothing happens to the details. Are there other things besides the code itself that might cause these failures? For example, my project is connected to 2 databases, but gamenames and partygames are in the same database, so it doesn't seem like this should matter. Or is something missing in the code? Any further insight would be great. Thanks, |
![]() |
Tandy 8/13/2025 |
That code worked for mine. Was hoping that it would work for you. You are using case sensitive right? It is in After Record Updated as well right? Then in mine I do not have return true. Here is mine. I have it in my fuel(After Record Updated) and need to update my Mileage in Truck Profile: //Update Mileage in truck_profile - begin |
![]() |
Tandy 8/13/2025 |
Here is another one taking my ending milage of my trip report and updating my mileage on my Truck Lube. Both tables have the same Key Values of the Truck Number. Not going for the ID. Again this is listed in my Trip Report under After Record Updated and still no return True; //Update Mileage in truck_lube - begin |
B
|
bioman author 8/14/2025 |
Thanks, // In the After record Updated event for the master table 'gamenames' // Define the new values to update in the details table 'partygames' This didn't work but I'm wondering if maybe this is on the right track... Is the syntax still wrong? |
C
|
cristi 8/14/2025 |
Instead of doing this in PHP I strongly advise to use a foreign key constraint in the database. |
B
|
bioman author 8/14/2025 |
Hi Cristi, |
C
|
cristi 8/15/2025 |
https://youtu.be/oT4YWW_sbNQ?feature=shared Be aware that foreign key constraints are supported ONLY on InnoDB for both MySQL and its most popular fork MariaDB. |