November 24, 200916 yr I'm updating a contacts database to have portals for each contact to display his or her local weather and time. Currently, I have an update button on each record that updates correctly. I would like to use the OnRecordLoad trigger so when I move forward, backward or a find, the record will update the weather and time. The problem is that when I set up the OnRecordLoad trigger to launch the update script, when it is completed, the screen refreshes which triggers again. I end up having a hourglass sit and blink until I hit escape and get out of the layout. Is there a better way to update this? Am I using the trigger incorrectly? Please offer any suggestions; I would like to make this automated. Thank you,
November 24, 200916 yr Author I get the same results. I would have thought that this would only work once since the layout only loads once but it also continued to loop. I would suspect at this point that the script could be the problem but I'm uncertain how to copy the script into this forum for discussion. Any ideas there?
November 25, 200916 yr Maybe try an exit script step at the end of your script with a script result of "0". I have no idea if that will help but just a thought.
November 25, 200916 yr Author I had already tried that and it did not make a difference. I ended up making my own toolbar with Previous, next, new, delete, sort and find buttons. With each of these I can write a script which solved the problem. I don't like this answer but I couldn't figure out how to make the filemaker toolbar and the script play well together. Thank you for any and all information. I'll close this post.
Create an account or sign in to comment