OnObjectSave & Portal
So it has been boggling my mind most of the day on how OnObjectSave works. If you read below you can see how FileMaker explains it.
Triggers a script to run after object data has been validated and saved, but before the field is exited.
But then in the back of my mind I remember someone telling me how OnObjectSave works, but I don't think what I remember was right either. (It had to do with two events Exit and Commit.)
In any case, what is happening is that I am changing a value in a field a portal. The script that runs deals with the field I just changed values in. The value that is chosen is the old value and not the new value. It messes up things because it doesn't look at the new value. I even put the script in the OnObjectExit and OnObjectSave.
I would rather not have to do onObjectModify (or OnObjectExit), because I really just want it to calculate when it is saved.
I would like something simple to fix this. I have done Commit, Go to Field, Go to Object, but since that requires so many variables or whatever it makes things a lot more complicated than it should be.
Am I missing something?