Set Multi-User

Allows or disallows network access to a file.

Options 

  • On allows network access via FileMaker Network sharing. This is the same as selecting All Users in the FileMaker Network Settings dialog box.

  • On (Hidden) allows network access but prevents the name of the shared database from appearing in the Hosts dialog box. This is the same as selecting the All Users and Don't display in host's file list options in the FileMaker Network Settings dialog box.

  • Off disallows network access. This is the same as selecting No Users in the FileMaker Network Settings dialog box.

Compatibility 

Product Supported
FileMaker Pro Yes
FileMaker Go No
FileMaker WebDirect No
FileMaker Server No
FileMaker Cloud No
FileMaker Data API No
Custom Web Publishing No

Originated in version 

6.0 or earlier

Description 

A shared, or multiuser, database is a file that’s available to users on a network. See Sharing files on a network.

Example 1 

Guarantees that a database is hosted upon launch. Started by the OnFirstWindowOpen script trigger.

Copy
Show Custom Dialog ["Make this file available on the network?"]
If [Get ( LastMessageChoice ) = 1]
    Set Multi-User [On]
End If

Example 2 

Turns network sharing on if it is off.

Copy
If [Get ( MultiUserState ) = 0]
    Set Multi-User [On]
End If