September 8, 200916 yr I currently have 3 tabs: Contacts, Quotes, Tasks and when I put a script trigger on Quotes and I put it on OnObjectModify, everything I hit another tab, it will start spinning and crash, as if it's in an internal look. If I just run the script, everything is fine, the script looks like this: Go to Field [invoice Total] Go to Portal Row [select;Find] Loop Set Field [sales Orders;...] Go to Portal Row [Next; Exit after last] End Loop Go to Field [select/perform;Address_Street] I don't see anything wrong here, any reason why this would get into a continuing loop?
September 8, 200916 yr Author Hm that's weird, I did update my version on the forum to FM 10, but I'll try to do that again then.
September 8, 200916 yr It's hard to tell what exactly your script does. However, you should be aware that a script trigger is attached to the entire tab control object - and if the script goes to another tab, it triggers itself again. It would probably be better to have the script operate directly on the data in its own table/s, and leave the portals and tab controls for the users. Edited September 8, 200916 yr by Guest
September 8, 200916 yr Author Exactly, that's the problem. I didn't know that. Because I'm going to a certain field in the previous tab, it will try to stay there. Is there a way to check which tab is being clicked in the script?
Create an account or sign in to comment