This topic is locked
[SOLVED]

 AfterEdit() Values Aren't Correct, Can't Run Logic

7/11/2018 10:26:03 PM
PHPRunner General questions
R
RockyMtnHi author

When I run code in the AfterEdit() function of the After Record updated event I echo the following values:

TaskId: v

NewDate: v

OrigDate: o
TaskId is an integer and the other two are dates, but obviously that isn't whats coming out. Here is the code:
echo "TaskId: ". values["TaskId"] ."<br />";

echo "NewDate: ". values["DateCompleted"] ."<br />";

echo "OrigDate: ". oldvalues["DateCompleted"] ."<br />";
When I use these values in the logic of the event I'm writing it obviously doesn't work.
Any ideas? I don't know what to try here. I thought of formatting the value in some way, but I felt it was grasping for straws or arm waving.
Thanks for the help.

lefty 7/11/2018



When I run code in the AfterEdit() function of the After Record updated event I echo the following values:

TaskId: v

NewDate: v

OrigDate: o
TaskId is an integer and the other two are dates, but obviously that isn't whats coming out. Here is the code:
echo "TaskId: ". values["TaskId"] ."<br />";

echo "NewDate: ". values["DateCompleted"] ."<br />";

echo "OrigDate: ". oldvalues["DateCompleted"] ."<br />";
When I use these values in the logic of the event I'm writing it obviously doesn't work.
Any ideas? I don't know what to try here. I thought of formatting the value in some way, but I felt it was grasping for straws or arm waving.
Thanks for the help.


Don't forget the $ before values.
echo "TaskId: ". $values["TaskId"] ."<br />";

echo "NewDate: ". $values["DateCompleted"] ."<br />";

echo "OrigDate: ". $oldvalues["DateCompleted"] ."<br />";

R
RockyMtnHi author 7/12/2018

Don't forget the $ before values.
echo "TaskId: ". $values["TaskId"] ."<br />";

echo "NewDate: ". $values["DateCompleted"] ."<br />";

echo "OrigDate: ". $oldvalues["DateCompleted"] ."<br />";
-------
Ha ha ha. Sometimes you just look at it too long. Thanks John.