• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Multi-User Files on a Network > Testing Scripts for Access Problems

Testing Scripts for Access Problems

FileMaker allows you to identify users and create groups of users to control how much access you're willing to grant to a database. However, there's a problem with this security that only arises when you use scripts. Ordinarily, if users try to go to a layout they don't have access to, they'll see an Access Denied dialog box message. Unfortunately, when this happens while running a script, FileMaker doesn't know what to do next. Sometimes the dialog box simply freezes on the screen. Other times, the script tries to continue running, fails, and then freezes. To prevent this from happening, you should include an If statement in such scripts that checks to see if the layout you've referenced is one that the individual or group running it can use.

Our example runs this test for a group, but you can substitute references to CurrentGroup with CurrentUser instead.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint