May 16, 201510 yr I just saw this post - if true it's a much-needed feature: https://community.filemaker.com/thread/84545 WebDirect now takes arguments for script names, script parameters, and setting variables! http://<host>/fmi/webd#<database name>[?script=<script name>[¶m=<script parameter>][&<$variable name>=<value>]] https://fmhelp.filemaker.com/docs/14/en/fm14_webdirect_guide.pdf#page=28
May 18, 201510 yr This is good news to hear. This is especially handy if you're making direct links from another site, and you need to pass a parameter (such as a record number). Since the file and script names are exposed/shown, I would name them something so generic that anyone seeing it wouldn't be able to gather any kind of data about your company.
May 18, 201510 yr Yeah, I guess the security considerations are big for some. Maybe FileMaker should figure out some way to encrypt everything so we can "hide" the code in an encrypted jumble of text after the IP address.
May 21, 201510 yr Author I just tested this with a simple database, using a URL like this: https://example.com/fmi/webd#mydatabase?script=FooBar¶m=xyzpdq&$foo=bar and it works - the script FooBar is called, Get(ScriptParamter) returns "xyzpdq" and the variable $foo is set to "bar" Very cool. An additional test shows that the File Options/Script Triggers/ "On First window open" script (if any is set) runs first, and then the script in the URL runs next. Edited May 21, 201510 yr by xochi
Create an account or sign in to comment