Stickybeak Posted September 4, 2012 Posted September 4, 2012 I am sure there is some simple thing I have overlooked. I have a scripted find which works as I want up to the final step at which point the following screen appears: So I have to manually click "perform find". I want/need this script to run to conclusion without my input - what am I missing?
comment Posted September 4, 2012 Posted September 4, 2012 A printout of the script would be so helpful... If I had to guess, I'd say you have an unnecessary pause in one of the steps.
Stickybeak Posted September 4, 2012 Author Posted September 4, 2012 A printout of the script would be so helpful... If I had to guess, I'd say you have an unnecessary pause in one of the steps. The pause in line 3 is so i can input data - it runs fine after that. New Letter Script.pdf
comment Posted September 4, 2012 Posted September 4, 2012 At the end of your script: ... Pause/Resume Script [ Indefinitely ] Perform Find/Replace [ ] 1. This is the second pause in the script. 2. You should be using Perform Find[] instead of Perform Find/Replace[]. Two completely different things. BTW, in Set Field[] you can specify the field to set, so it's not necessary to go to the field first. I am also puzzled why you show a custom dialog, but ignore the user's choice.
Stickybeak Posted September 4, 2012 Author Posted September 4, 2012 Thats weird - the printed version of the scrip is different to the one on my computer......but the perform find step did the trick: thanks very much for point out a pretty fundamental oversight on my part - could be time for a break!
adyf Posted September 4, 2012 Posted September 4, 2012 Is there a reason why the screen grab in the first post doesn't show the 'continue' button which would give an indication that the script is paused? I have a similar problem although my script doesn't have any pauses: Enter Find Mode [] Insert text (Hazard No); (gHazard No) New Record/Request The script isn't finished but I think it should be working so far. gHazard No is selected from a drop down list with a script trigger (on object modify) that runs the above script. The field and the script trigger are enabled in find mode, but the script allows me to choose the first value from the drop down list, goes into find mode and inserts gHazard No, creates the new find request which is correct. I then want to select the next value from the drop down list but it's inactive and I'm not sure why. Any ideas please?
comment Posted September 4, 2012 Posted September 4, 2012 why the screen grab in the first post doesn't show the 'continue' button I am guessing it's because the script has run out. It's hard to be sure, since apparently we haven't seen the real script. I then want to select the next value from the drop down list but it's inactive and I'm not sure why. I think you are talking about a global field? Globals are not enterable in Find mode. Try using a checkbox field to select all your choices in advance, then have the script create a request for each selected item and populate it accordingly.
adyf Posted September 4, 2012 Posted September 4, 2012 I think you are talking about a global field? Globals are not enterable in Find mode. Try using a checkbox field to select all your choices in advance, then have the script create a request for each selected item and populate it accordingly. gHazard No is indeed a global field. The script I was building was to create find requests and enter values from the global field dropdown and then constrain the found set. Can a checkbox field as you suggest be based on a global field or would it be the same issue?
comment Posted September 4, 2012 Posted September 4, 2012 Can a checkbox field as you suggest be based on a global field Yes, if you make your choices while still in Browse mode - otherwise it will be the same issue.
adyf Posted September 4, 2012 Posted September 4, 2012 Yes, if you make your choices while still in Browse mode - otherwise it will be the same issue. Lastly, would I be able to use a script trigger to run the script from the checkbox field? I'm thinking not because how would it know when all the checkbox choices have been made and when to run the script. BTW, thanks for your help with this.
comment Posted September 4, 2012 Posted September 4, 2012 how would it know when all the checkbox choices have been made That's true - you would probably want to put a button next to the field. You face the same problem with the approach you have started, though. Eventually, the user needs to say 'when' after creating the last request.
adyf Posted September 4, 2012 Posted September 4, 2012 That's true - you would probably want to put a button next to the field. You face the same problem with the approach you have started, though. Eventually, the user needs to say 'when' after creating the last request. You're quite right.......ha ha. As I'm learning I'm trying to combine aesthetics with functionality and managing without buttons where possible.
comment Posted September 4, 2012 Posted September 4, 2012 Well, you could perform the find after each modification of the global checkbox. Somewhat wasteful of CPU time, but no buttons.
Recommended Posts
This topic is 4467 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