DayBackForFileMaker

FMP URLs

What is the fmp: URL protocol?

This is a special url, prefixed with fmp, that is answered by FileMaker Pro (or Go) instead of by your browser. These URLs can contain scripts and script parameters and it is by opening URLs like this that webviewer apps like DayBack Calendar can talk to the FileMaker file they're inside of.

The url protocol itself (the prefix) is registered with your operating system when FileMaker is installed. If you install more than one copy or uninstall lots of copies you can mess up this linkage of the URL with the most recent version of FileMaker and *no application* will answer the URL.

FileMaker 19: Changes to the FMP URL protocol require updating DayBack

Claris changed some things in FileMaker 19 that caused some issues with DayBack Classic in 19, so we released some updates to address those issues. If you'd like to use your DayBack Classic calendar in FileMaker 19, you'll need to get it updated to the latest build, 10.61.

Instructions on applying in-app updates can be found here.

See changes in the version history page here.

FileMaker 18: No changes required, but a new opportunity with FMP URLs

FileMaker 18 introduces version-specific URLs like fmp18:// and if you frequently use more than one version of FileMaker, you may want to change your older copy of DayBack to use this new format. Here's how to make that change: FileMaker 18 and FMP URLs.

FileMaker 17: Changes Required?

We’re seeing issues with FileMaker 17 not updating the operating system's FMP URL to point version 17 if a previous version of FileMaker is still installed. For example, if you have 16 still installed, the FMP URL may still work there, but not in 17. Unfortunately, the FMP URL can only work in one version of FileMaker at a time. If you encounter this, scroll down to the Testing & Fixing the FMP URL Protocol section where we have instructions for explicitly setting which version the FMP URL should target.

FileMaker 16+ : Changes Required?

FileMaker introduced a new extended privilege in FileMaker 16 that permits the FMP URL protocol to function. If you have an older version of DayBack, you may need to make a change to get things working in 16. The first time you open DayBack, ProMaps, or any webviewer-heavy solution in 16 without this privilege enabled, you'll see this error:

The fix is simply to enable the new privilege. Here's how.

1. Select File / Manage / Security from the FileMaker menus.
2. Click on the "Extended Privileges Tab", then double-click the "fmurlscript" keyword.
3. Check "on" for any privilege sets you wish to be able to use DayBack.
4. That's it! Click "refresh" in DayBack and you should be all set.

Why did FileMaker make this change? They believed that malicious users who knew your script names could trigger them from URLs even if you didn't provide buttons for those scripts. But users would still need to be logged into FMP with sufficient permission to run the script: the FMP URL doesn't bypass FileMaker security in any way.

Errors

Version 9.69 of DayBack includes a test to see if FileMaker is listening for these URLs: if you see an error stating that the fmp:// URL isn't working, the best way to fix it is to uninstall and the reinstall FileMaker Pro. More below.

URL Error: Events Showing on Calendar, but Still Getting URL error?

You may see a URL error message in Dayback even if you have enabled FMP URL privileges for your account and sorted out any issues with multiple versions of Filemaker. If you are experiencing behavior in DayBack where the events will load *and* you are receiving an error message that the FMPurl was not successful, it is likely that the web viewer is not loading fast enough to report to FileMaker that the FMP URL protocol is working.

To fix this, navigate to the "Check for FMP URL" script, and update the interval of the OnTimer script step starting on line 25. You may want to extend it from 5 seconds to 10 seconds or longer, depending on the processing power of your machine. This will give the script enough of a margin to make sure everything is in its right place when the events are loaded.

Testing & Fixing the FMP URL Protocol

You can verify that your fmp url calls are working correctly by opening DayBack, then clicking on following link: fmp://$/DayBack.fmp12?script=Unused&param=run

Note: If you receive the message 'The file "DayBack.fmp12" could not be opened', you likely have renamed your DayBack file or embedded DayBack into your own file. In this case, you will need to copy this link, paste it into your web browser's address bar, replace the "DayBack.fmp12" portion with the name of your file and press enter/go.

If you receive a popup in FileMaker with the message "This button is not yet assigned to anything", your fmp url calls are working correctly.

If the above test fails to run, or gives you a different error message, your fmp url calls are not functioning properly. Unfortunately, The fmp url can only be directed to one version of FileMaker at a time, so the most likely reason for the error is that it's pointed at a different version you are currently using. Fortunately there is a fix to redirect the fmp to the correct version of FileMaker:

Mac & Windows. If you're not using your older version of FileMaker, simply uninstall it. This often fixes this. If that isn't an option for you, or doesn't work, one ofthe options below will work:
Mac. For Mac we recommend using a free 3rd party tool called SwiftDefaultApp. Soliant recommended this tool and it does the trick. It can be downloaded here:
Once you've installed the app, you can open it from your System Preferences, and then go to the Apps tab and make sure the version of FileMaker you want to use the FMP URL has it checked like this:
Then go to the URLs tab and direct the fmp url to the version of FileMaker you want to use it like this:
and you should be all set.

Windows. If you'd like to change the default FileMaker version that is used for FMP URL links in Windows, you can modify a registry key, rather than uninstall/re-install that version of FileMaker.
First, while this change should not affect your system in a devastating way, if you don't implement it correctly or modify/delete the wrong keys, you may render your system unusable. Therefore, a warning from Microsoft: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to re-install Windows to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
There is only one registry key value that must be modified for this solution. If you can't find this key in your registry, it would probably be best to just uninstall/re-install the version of FileMaker you'd like to open FMP URL links by default.
  1. 1. Open Regedit and Backup your registry. (Instructions Here)
  2. 2. Find the following key:
  3. HKEY_CLASSES_ROOT\FMP\shell\open\command
  4. 3. Modify the "(Default)" value with the path to the version of FileMaker you'd like to use by default with the following added at the end: %1. for example:
  5. C:\Program Files\FileMaker\FileMaker Pro 15 Advanced\FileMaker Pro Advanced.exe %1
You may need to restart FileMaker to see the changes take effect. This change should update your system to open FMP URL links with the version of FileMaker you specified in the registry.
(855) SEEDCODE
[email protected]
Follow us: