Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7086 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

Thanks Stanley.

I've seen mention of the EventScript before.

I guess it's time to pay some attention to it now.

Jarvis

Posted

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. wink.gif

LaRetta

Posted

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

Posted

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 grin.gif)

Posted

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). wink.gif

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. smile.gif

LaRetta

Posted

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

Posted

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. crazy.gif

... or Mrs. Wiggins. Hmmmm, anyone remember her?!!? Maybe I'll rename my LineItems Mrs. Wiggins. Yawn.gif

Posted

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

Posted

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. smile.gif

This topic is 7086 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.