Steverino Posted February 3, 2006 Posted February 3, 2006 I'm having trouble -- the auto-enter calc with Event Trigger triggers the script too often. I want the script to trigger only when I change a field (and not when I'm running other scripts that don't touch that field). I tried the validation method, but that doesn't work -- it doesn't perform the script until I exit the record, and by then I'm in a new record, and it will perform the end of the script on the new record. What can be done? (I already have a condition in the calc that it won't be executed when a record is new and a field is blank...but this doesn't solve my main problem.)
flapjacks Posted February 3, 2006 Posted February 3, 2006 I solved a similar problem by testing for the current layout with an if statement. Could this be your answer? John
mr_vodka Posted February 3, 2006 Posted February 3, 2006 Which Event Plugin are you using? Why dont you post your calculation as well.
SteveB Posted February 4, 2006 Posted February 4, 2006 I had a similar problem...drove me crazy. It may be on the wrong tab. Move the calc and trigger to the calc on the validation tab from the auto enter tab. Steve
Steverino Posted February 8, 2006 Author Posted February 8, 2006 I can't use the validation tab for the reasons I explained above -- the validation in 8 does not take place until the record is committed. Here's my calc: If(callername ≠ ""; Status & S4HU_EventScript( Get ( FileName ) ; "Set Status" ; Callsheet); "") Where callername is a field that is filled in after record creation (and before the script should be activated) and Status is the field that when changed should activate the script "Set Status." As you can see, I'm using the S4HU Event Script plug-in.
Vaughan Posted October 17, 2006 Posted October 17, 2006 callername ≠ "" A better syntax for this is not Isempty( callername )
Peter Wagemans Posted November 22, 2006 Posted November 22, 2006 Put If ( IsEmpty ( Get ( ScriptName ) ) ; ... ) around your calculation, and it will only trigger when no script is running.
Recommended Posts
This topic is 6644 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