All current SeedCode products are compatible with FileMaker 18. The newest version of FileMaker also makes some significant changes to the way FMP URLs are managed.

You can now specify a version-specific URL like “fmp18://sales.example.com/Clients.fmp12?script=ListClients” For developers who often find themselves working in two versions of FileMaker at the same time (versions 17 and 18, for example), this will make web viewer apps like DayBack and Pro Maps confine their URL calls to the version that opened the file (at least for versions 18 and higher).

It’s great to see FileMaker reinvesting in the FMP URL and in web viewer apps in general.

FileMaker 18 URL

FMP URLs in FileMaker 18

FileMaker changed two things about the FMP URL in FileMaker 18:

1. FileMaker 18 now sets the default protocol for you when you install FileMaker 18. This was omitted in FileMaker 17 and users who installed 17 found fmp:// trying to open FileMaker 16 (or the last version of FileMaker on that machine before 17). While it’s good to see this fixed; this “default” has never worked for all machines, so refer to our instructions here if the fmp:// protocol isn’t working after you install 18. (Or just switch to the fmp18:// format as described below.)

2. You can now specify FileMaker URLs as either fmp:// or fmp<version 18+>:// in the form fmp18:// as described here: Opening Files with URLs. If you want to calculate the URL for a file in 18, try Floor() like this:

Other Cool Features in FileMaker 18

• You’ll find FileMaker’s own recap of the new features here: What’s New
• Details on the new SetRecursion and While functions from Kevin Frank: SetRecursion and While
• From AppWorks: Delegating User Management without Full Access
• Using the new file script steps to perform imports on FileMaker Server, courtesy of Vincenzo Menanno: Imports without Tariffs
• The improved import dialog from DB Services: Redesigned FileMaker Import Dialog
•A longer view from Todd Geist: FileMaker 18: the End of the Beginning

For DayBack Users – Changing DayBack’s URL format in FileMaker 18

Note that you don’t need to use the new version-specific URLs in FileMaker 18. For many users, DayBack will just work when you open it in FileMaker 18. For other users, who may have had a lot of older versions of FileMaker installed on their machines, the instructions here will tell you how to point the fmp:// protocol at a specific version of FileMaker: you can point it at 18 and not make the changes below.

But if you’re switching between different versions of FileMaker, making the changes below can be helpful. Here’s how to tel DayBack to always use a version-specific FMP URL…

The “Get Webviewer Calendar FilePath” script contains two Set Variable script steps that need to be updated. Both steps set the $$sc_Webviewer_URL variable and are highlighted in the first screenshot below.

1. In script step #30, double click the Set Variable step to open the “Set Variable” Options window

2. Click “Specify…” next to the Value field to open its “Specify Calculation” window.

3. Find the line in the calculation that begins “sc_filepath”, highlighted in the screenshot below. Delete the line, leaving a blank return/line.

4. In it’s place, copy/paste or type in the following three lines.

sc_appVersion = Floor ( GetAsNumber ( Get ( ApplicationVersion ) ) ) ;
sc_fmpProtocol = Case ( sc_appVersion ≥ 18 ; “fmp” & sc_appVersion & “://” ; “fmp://” ) ;
sc_filepath = sc_fmpProtocol & sc_locationPath & “/” & $sc_fileName ;

5. Check to make sure that your calculation appears as in the screenshot below (the new lines are highlighted).

6. Repeat steps 1-5 for line #33.

7. Save the script.

The “Web Address” calculation in the calendar web viewer object also needs to be updated.

1. In your DayBack file, navigate to your “Calendar” layout (you may have renamed it).

2. Enter Layout Mode.

3. Double click the Web Viewer object to open the “Web Viewer Setup” dialog as in the screenshot below.

4. Click “Specify…” next to the Web Address field to open its Specify Calculation window.

5. Find the line in the calculation that begins “sc_filepath”, highlighted below. Delete the line, leaving a blank return/line.

6. In it’s place, copy/paste or type in the following three lines. NOTE: these lines are *not* identical to the lines added in the script above.

sc_appVersion = Floor ( GetAsNumber ( Get ( ApplicationVersion ) ) ) ;
sc_fmpProtocol = Case ( sc_appVersion ≥ 18 ; “fmp” & sc_appVersion & “://” ; “fmp://” ) ;
sc_filepath = sc_fmpProtocol & sc_locationPath & “/” & Get ( FileName ) ;

7. Check to make sure that your calculation looks like the screenshot below (the new lines are highlighted).

8. Click OK (and click OK again) to save the changes to the Web Viewer calculation.

9. Exit Layout Mode to save the layout.

Last, run the “Upon Opening” script for your changes to take effect. DayBack should now work in FMP 18 without changing operating system rules for the “fmp” url protocol.

 

2 Responses to FileMaker 18 and FMP URLs

  1. Jeff Drake says:

    Omigosh! I hadn’t heard about this before, but this could possibly be my favorite new feature of FM18!

Leave a Reply

Your email address will not be published. Required fields are marked *

Share →
DOWNLOAD
DayBack Calendar
DayBack's 30-day trial is unlocked so you can customize it and integrate it with your files.
Download DayBack and we'll send you a couple short emails with tips on how to modify it and use some of the coolest features.
Thank you! Please download: DayBack Calendar
Need More?
SeedCode tips & example files in your inbox
Need More?
SeedCode tips & example files in your inbox
Want More?
Be the first to see articles and tips like these
DOWNLOAD
TimeZync
Download TimeZync and we'll send you a couple short emails with tips syncing your FileMaker Go files.
Thank you! Please download: TimeZync
Want More?
Be the first to see articles and tips like these