With FileMaker Server 13.0v2, the ability to pass parameters via a URL to WebDirect was disabled, with the exception of the homeurl parameter.
It’s important to understand that this was done for security purposes, even though this stranded a few developers that converted IWP solutions to WebDirect and had counted on these parameters. While most developers have adapted to the changes, the ability to pass parameters is still essential for Web-based solutions.
In September, a developer posted on FileMaker TechNet asking for help with WebDirect URLs. Our team collaborated with Mike Duncan from Soliant and Steve Senft-Herrera to devise a solution to re-enable URL parameters.
We've re-opened the stargate for passing parameters via URL into WebDirect. Follow the process that we used to get from a discussion concept to working method, and where this method can take us in the future for integrating WebDirect to other websites.
The concept is fairly simple:
- Use a PHP page to gather the parameters in memory
- Redirect the user to WebDirect
- Read the parameters from memory
I presented this solution at Pause on Error in October and I'm happy to once again share it with you here. Please download the demo files. If you have trouble installing or implementing the solution into your own WebDirect system, please contact us, or post in this blog’s comments section.
About the Author
Mike Beargie has been with MainSpring since 2013 and has over 10 years of application development experience. As a developer, he creates solutions for clients in a wide variety of sectors across the U.S. and abroad. Prior to working at MainSpring, Mike worked as the lead developer for a consulting company, serving high profile political, special interest and nonprofit clients in the Washington, D.C., and Columbus, Ohio, markets. Mike regularly presents solutions and best practices to the FileMaker development community around the country, and is well known as an answer man online as well. In 2014 and 2016, Mike was recognized with the FileMaker Excellence Award for community contributions. Mike is a man of many hobbies, including woodworking, home brewing, art and music.