Jump to content
Server Maintenance This Week. ×

Is there an elegant way to keep a popover from closing?


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

Recommended Posts

I am looking for a way to avoid the user to close a popup without clicking a button in the popover (thereby running a script) so I can use the popover for data entry. My searching capabilities seem a bit lacking today, as I couldn't find any previous discussions on this topic.

 

I've come up with a solution, but I thought I'd check here and see if anyone had any input or a better way to do this.

 

My solution:

 

I created a script "Abort Click-out"

 

The script is simply:

If [ Get ( ScriptParameter ) = ""]
   Exit Script [Result: False]
End If

Then, in the popover, I do a script trigger of:

OnObjectExit: Abort Click-out; Parameter: Get(ScriptName)

In this way, if a script is running, then Filemaker passes the script name to the Abort Click-out script and allows the script to exit normally, closing the popover. However, if the user just tries to click out of the popover, no script parameter is sent, so the script exits with a result of false so the popover doesn't close.

 

Are there situations I'm not thinking of that will cause problems or break something when handling it this way? Any suggestions for a better way to do this?

 

Any advice would be appreciated.

 

Thanks!

 

 

Link to comment
Share on other sites

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