Jump to content
Server Maintenance This Week. ×

New in 14: WebDirect view a particular database and run a script


This topic is 3263 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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>[&param=<script parameter>][&<$variable name>=<value>]]

https://fmhelp.filemaker.com/docs/14/en/fm14_webdirect_guide.pdf#page=28

 

Link to comment
Share on other sites

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.  

Link to comment
Share on other sites

I just tested this with a simple database, using a URL like this:

https://example.com/fmi/webd#mydatabase?script=FooBar&param=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 by xochi
Link to comment
Share on other sites

This topic is 3263 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.