June 19, 200520 yr I have a script that sends the user to a pop-up value list. The next step in the script is: (Pause/Resume Script[indefinately]) After the user has made his/her selection from the value list, I would like the script to resume without the user having to engage the blue CONTINUE button on the left sidebar of the screen? How can this be done without additional button clicking? Thanks, Jarvis
June 19, 200520 yr Jarvis: You can use a plugin like EventScript to resume the script - your other choice is to have a "resume" button (or "go" or whatever) beside your value list field. The button's not a bad choice, as people are quite used to this sort of thing, from Google, etc. -Stanley
June 19, 200520 yr Author Thanks Stanley. I've seen mention of the EventScript before. I guess it's time to pay some attention to it now. Jarvis
June 19, 200520 yr Hi Jarvis, I probably shouldn't be speaking up because I don't use Mac. But I've thorougly studied several xplat solutions by CobaltSky. When using a pop-up list, you can control them by putting script within a loop. This should address your current problem. You could test the field with IsEmpty() xor compare the contents to a global (where you store the prior value) to see if it has been changed before exiting loop/pop-up. Pop-up Script Menu & Pop-up Layout Menu are worth understanding here. Event Triggers are great ... be careful though. Even with an excellent event trigger such as SecureFM w/Menu Magic, I've gotten myself in trouble. Maybe that's why FileMaker doesn't freely throw one in ... they require careful implementation not to bite you by firing at the wrong time (or on the wrong record). I use them ... but very carefully indeed. And some of the 'free' event triggers don't track the proper RecordID at all. Anyway, if you break apart Ray's pop-up examples (demos are vs. 6 format so convert them first by dragging them to your vs. 7 shortcut), you will see he stacks both pop-up styles for xplat use. But upon viewing his script, the pop-up list portion is easy to understand. Drop the 'Go To Next Field' stuff before the loop ... that's to jump up to the pop-up Menu for Windows use - it works in conjunction with the stacking order (not to be confused with the tab order). It's been 18 months or so since I've reviewed them and I can't quite remember; but you'll be able to see what is part of the xplat portion and what is specifically needed for the pop-up list portion. I believe with vs. 7 I had to add a Commit Records/Requests at the end and you may have to tweak Mac pop-up list similarly. Again, I don't use Mac so this is speculation ... but Ray wouldn't have script firing on pop-up list if it wasn't dependable on Macs. LaRetta
June 19, 200520 yr Author LaRetta, I just downloaded the popup script menu and the popup layout menu. They sound really useful.................. If I could just get a pop-up extra day to study them. Jarvis
June 21, 200520 yr LaRetta..... I try to go to the website but it's doest'n exist.... do you have other web address ? Ben
June 21, 200520 yr The link works fine for me. I just tried it again. Anyone else have trouble with it?
June 24, 200520 yr Hi Laretta I thing the problem is mine, I try with other computer work fine.... Thank for your support.. Cheers Ben
June 30, 200520 yr Author LaRetta, when using a pop-up list, you can control them by putting script within a loop. This should address your current problem. I'm still struggling with getting a CONTINUE button to activate itself after a PAUSE/RESUME script. My basic steps are as follows: Start Clock Set (STATUS) to "In Process" Stop Clock Pause/Resume Script (Indefinately) Go to (STATUS) > pop up list Select either: "Complete" or "Not Complete" At this point the user has to click the blue continue button. I would like the script to just recognize that the selection has been made (is not equal to "In Process") and continue on without further effort by the user. [color:"red"] Did I understand you to say that this can be accomplished from inside the context of a LOOP structure? Is the answer sitting in a loop somewhere? I've spent some time trying to find my answer in the Cobalt Sky downloads you recommended but haven't got there yet (but do see some nifty possibilties here). Thanks, Jarvis (This is just one of many forays.... I've got this weekend scheduled to figure out how to stick a graphic into a script parameter) (Having just mastered colored fonts on this forum )
June 30, 200520 yr Is the answer sitting in a loop somewhere? With Macs, I believe the answer is yes. We Windows users don't need it with pop-up menus but pop-up lists are peculiar (kinda like me). I can give you a script which SHOULD work for Macs although I can't guarantee anything. But I understand the loop you need (from a Windows perspective and the logic holds). It also matches the theory in demo's I've studied for Macs and pop-up lists - but that was before vs. 7. Again, the only difference in FM versions appears to be a Commit Records/Requests[] but I can't confirm that with Macs. Also, I wonder ... What is Start and Stop Clock? Are they subscripts? Shouldn't the clock stop when they click "Complete" instead of before they pop the list? Ah well, here's something to play with: Start Clock Set Field [ Status ; "In Process" ] Go To Field [ Select/perform ; Status ] Loop Pause/Resume Script [ Duration: (seconds) 1 ] Exit Loop If [ Status <> "In Process" ] End Loop Commit Records/Requests [ No Dialog, Skip Validation ] Stop Clock See how you go with that. LaRetta
July 1, 200520 yr Author LaRetta, Thanks for all the attention. I will try that and let you know how it works. You're really good at this. Have you ever considered becoming a consultant? Jarvis
July 1, 200520 yr Well, Jarvis, I AM a Consultant (but not in FM). Right now my life is learning FileMaker. Maybe in another 10 years I'll have something truly worthy to offer. But thank you for the kind words. I could use a bit of encouragement tonight ... I'm working in The Beast - my 560,000-record lineitems table (which multiplies at unGodly rates) and always makes me feel like I'm on Quayludes (spelling?). Drugs that put you into slow-motion anyway. ... or Mrs. Wiggins. Hmmmm, anyone remember her?!!? Maybe I'll rename my LineItems Mrs. Wiggins.
July 3, 200520 yr Author LaRetta, We were never very good spellers back in the day, so we just called them "ludes". I've thrashed this continue button thing to death now and I surmise the following: If the pause/resume script is set for indefinate duration you must click the continue button to move on. (There might be some life lessons here too) There does not seem to be a way to override this button with a conditional event unless the duration option is set for the clock to run out. I think this is how it is. Jarvis
July 3, 200520 yr Hmmm, I indicated duration of one second. You have a thing against limited-duration or didn't you see that part or didn't that part work for you either? No, it'd never end if you leave it unlimited without direct intervention from User.
Create an account or sign in to comment