Creating a FileMaker Startup File for a Remote Database

AID: 5043
  • Status: Published

8190 points

  • Bywillmcn
  • TypeTips/Tricks
  • Posted on2011-03-23 at 07:05:53
Awards
  • Experts Exchange Approved
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?"

Answer: Yes you can. The attached file shows a simple method of opening a remote database via a double-clickable file.

In it's simplest form, a startup file has a single script that runs immediately upon opening. The script does two things: 1) it opens the remote database and 2) it closes itself.

Open File [ "MyFileMakerDB.fp7" ]
Close File [ "Current File" ]

You will need to select Specify your remote (or local) database in the Open File script step and make sure that Close File is set to "Current File". In order to make this run on Startup, go to File -> File Options, and under "When opening this file...", select the "Start" script under "Perform Script:"

In addition, it's helpful to have a way to stop the script before the file closes so you can edit it later. To do this, add steps that check to see if the Shift key is being held down and have it Halt the script using the Get ( ActiveModifierKeys ) calculation function. (The shift key is a 1, the Alt/Option Key is 8, the two together would be 9).

If [ Get ( ActiveModifierKeys ) = 1 ]
   Halt Script
End If

Once setup, this file can be distributed to other users and should work as a double-clickable launch file for the hosted database no matter where the user is. They still need to enter their credentials - username and password - but it can make life much easier.

The attached "Start_FM.fp7" file has a slightly longer script and a couple of extra options including the display of a "Now Starting Your Database..." dialog while the Remote file is opening, and the ability to stop the file from automatically closing by holding down the shift key while you double-click the file. This allows you edit it as necessary.
Start-FM.fp7
  • 68 KB
  • Startup file for Remote FM Database
Start-FM.fp7
    Asked On
    2011-03-23 at 07:05:53ID5043
    Tags

    FileMaker Pro Startup Scripting

    Topic

    FileMaker Pro Database

    Views
    2126

    Comments

    Expert Comment

    by: rvfowler2 on 2011-07-13 at 10:10:58ID: 29708

    will, I can't get to the scripts; there is no "Manage Scripts" or anywhere where I can set the menu to an Admin menu, so how can I edit the script to put the path of my own db?

    Expert Comment

    by: rvfowler2 on 2011-07-13 at 10:16:02ID: 29712

    OK, held down the SH key and was able to get in and change the one script step; however, now it stops at "Now Starting Your Database" and gets an error, "Filemaker cannot share a file because FileMaker network sharing is turned off" and THEN my database opens as it should.

    Expert Comment

    by: rvfowler2 on 2011-07-13 at 10:23:56ID: 29715

    Once I changed it I couldn't get back into it.  So, I deleted it and tried starting with a fresh copy of your db, but NOW I get an error, "The access privalages in this file have been damaged or possibly tampered with.  Please contact Filemaker Technicl support of the problem cannot be resolved."  Why didn't I get this the first time I downloaded your file.  And, I get this error whether or not I hold down the SH key.

    Expert Comment

    by: rvfowler2 on 2011-07-13 at 11:15:21ID: 29719

    Deleted and redownloaded the fille.  This fixed the  access issue, but now I get the sharing error message again.  See attached screenprint for script.

    Author Comment

    by: willmcn on 2011-07-13 at 13:10:42ID: 29730

    It sounds like you are trying to open the file locally. I'm presuming that the Startup file is being opened on a remote computer. In order to save the file to open "LeadData" in the script, you have to double-click on the "Open Files" step, select "Remote" and then locate the file on the Server under either Local Hosts or Favorites. You can also check the workstation copy of FileMaker's "Sharing" preferences to see if network sharing is turned on, but if you are connecting as a guest to a Remote server, it shouldn't matter.

    Expert Comment

    by: rvfowler2 on 2011-07-13 at 13:31:03ID: 29731

    Actually, I just fixed it.  I had already opened your Start script and under the OpenFiles step, opened my first database by doing an Open Remote.  The part I was missing was in your file/db to turn on File sharing by going to File, then Sharing, then Filemaker Network.  It works fine now.

    (Or did I get this wrong?)

    Author Comment

    by: willmcn on 2011-07-13 at 13:43:32ID: 29732

    You got it.

    Add your Comment

    Please Sign up or Log in to comment on this article.

    Join Experts Exchange Today

    Gain Access to all our Tech Resources

    Get personalized answers

    Ask unlimited questions

    Access Proven Solutions

    Search 3.2 million solutions

    Read In-Depth How-To Guides

    1000+ articles, demos, & tips

    Watch Step by Step Tutorials

    Learn direct from top tech pros

    And Much More!

    Your complete tech resource

    See Plans and Pricing

    30-day free trial. Register in 60 seconds.

    Loading Advertisement...

    Top FileMaker Pro Experts

    1. willmcn

      139,540

      Master

      2,800 points yesterday

      Profile
      Rank: Sage
    2. North2Alaska

      52,796

      Master

      0 points yesterday

      Profile
      Rank: Guru
    3. historychef

      15,868

      0 points yesterday

      Profile
    4. jvaldes

      8,800

      0 points yesterday

      Profile
      Rank: Guru
    5. webwyzsystems

      5,482

      0 points yesterday

      Profile
      Rank: Guru
    6. ThomDroz

      2,332

      0 points yesterday

      Profile
      Rank: Master
    7. DaveBaldwin

      2,300

      0 points yesterday

      Profile
      Rank: Genius
    8. jason1178

      2,000

      0 points yesterday

      Profile
      Rank: Genius
    9. juanvaldes

      2,000

      0 points yesterday

      Profile
    10. tv_kid

      2,000

      0 points yesterday

      Profile
    11. hitsdoshi1

      2,000

      0 points yesterday

      Profile
      Rank: Guru
    12. meko72

      2,000

      0 points yesterday

      Profile
      Rank: Master
    13. rjplus

      2,000

      0 points yesterday

      Profile
    14. CodeCruiser

      1,000

      0 points yesterday

      Profile
      Rank: Genius
    15. eoinosullivan

      672

      0 points yesterday

      Profile
      Rank: Genius
    16. gkhairallah

      600

      0 points yesterday

      Profile
      Rank: Master
    17. MajorBigDeal

      600

      0 points yesterday

      Profile
      Rank: Master
    18. joewinograd

      600

      0 points yesterday

      Profile
      Rank: Wizard
    19. Tocacar

      430

      0 points yesterday

      Profile
      Rank: Master
    20. roylong

      400

      0 points yesterday

      Profile
      Rank: Wizard
    21. soulhero

      400

      0 points yesterday

      Profile
    22. Mutawadi

      400

      0 points yesterday

      Profile
      Rank: Guru
    23. qbao

      200

      0 points yesterday

      Profile
      Rank: Master

    Hall Of Fame