stevie.at Posted October 2, 2006 Posted October 2, 2006 Hi all, I recently started working with EventScript and am quite happy with it! It's really a handy thing! Lately a problem occured: I have a portal that displays projects that are related to a text. So users select an ID from a Value List by being directed to the last portal row to create new related records. After exiting the field, EventScript is triggerd by Auto Enter options. for some reasons it does this 2 times... So in case of an error I get the same message 2 times and the field validation for the field itself gets confused and messes up the script...I tried to work around it but the real problem is this 2 times! Does this sound familiar to anybody??? Thanks, Stefan
Inky Phil Posted October 3, 2006 Posted October 3, 2006 It is quite possibly to do with the order that scripts or calcs are run. It may be that a script is running after the first thing that causes the error message and therefore trips the validation again. Try a halt script step somewhere appropriate to where the error message comes up HTH Phil
stevie.at Posted October 3, 2006 Author Posted October 3, 2006 Hmm...I noticed that a Halt Script works but not for me at this point. I definitely need an Exit Script step but this causes the script to be triggered a 2nd time...weird...
Genx Posted October 3, 2006 Posted October 3, 2006 If you have a commit records script step in there, it could be that. Otherwise, the script is likely in some way triggering a second validation or autoenter of your field leading FM to re-evalute the validation and run the script again.
stevie.at Posted October 3, 2006 Author Posted October 3, 2006 Thanks for all your suggestions! I managed to get rid of the 2 times pop up by placing Go To Field and Halt Script steps very strategically... The field validation itself still caused trouble so I worked around it with my own validation as the very first script step of the EventScript after exiting the field. Works for me... Stefan
Recommended Posts
This topic is 6628 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now