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

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

Recommended Posts

Posted

I have a script activated by a button on FM that simply uses a web viewer to open an ASP script. When you double click this button instead of single click it the script actually runs twice and causes duplicates in our data.

Is there a way to prevent a double click on a button within filemaker? any information would be greatly appreciated. thanks!

Posted

I went a slightly different route (still the same idea) and created a field called Auction_Post_Check and simply populate it with a 1 upon clicking the button. Then I added an If/Then around everything so that if it already has a 1 it won't activate the ASP script.

Ran a test and it seems to have worked great. Thanks a lot!!!

Posted

Wouldn't defining the button as 'Current Script: Halt' do the job?

Or, if it's essential not to abort the script already running, you could set the button to 'Current Script: Resume' and add a script parameter = Get (ScriptName). Then start the script with:

If [isEmpty ( Get ( ScriptParameter ) ) ]

...

This topic is 6617 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.