This topic is locked

After A Record Has Been Added..

6/1/2007 11:20:24 PM
PHPRunner General questions
M
michaelmac author

Hi Everyone
I want to UPDATE a record after I have added it to the table. I need to know how to CORRECTLY update two fields in the record after it was written. I know I use the After Record Event, but everything I try seems to give me an error. Any ideas?
Thanks from a newbie
Mike

M
michaelmac author 6/2/2007

Hi Everyone

I want to UPDATE a record after I have added it to the table. I need to know how to CORRECTLY update two fields in the record after it was written. I know I use the After Record Event, but everything I try seems to give me an error. Any ideas?
Thanks from a newbie
Mike


Hi.. I got it working. Thanks to hints from the techies here. I was able to make it work and learned about debugging in the process. Thanks Jane and Sergey
Mike

jxd 6/2/2007



Hi.. I got it working. Thanks to hints from the techies here. I was able to make it work and learned about debugging in the process. Thanks Jane and Sergey
Mike


It is nice to tell it is working now, but please give the solution or how you manage to let it working.
Remember to share the solutions or ideas with the community.
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=18491&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> jxd

M
michaelmac author 6/3/2007



It is nice to tell it is working now, but please give the solution or how you manage to let it working.
Remember to share the solutions or ideas with the community.
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=18503&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> jxd


Hey Guys..
Sorry, I wass not thinking. I used an BeforeEdit event, and the $value array is passed to the function. I just added the line $value=MYVALUE to the function and returned true. Though my column was not in my original edit, whan I added the new value to the array, the edit program was able to UPDATE my record correctly. I am experimenting with look-up and such as I learn more about a better way to use the built-in functions in this "tool"...
Mike