Jump to content

FM14 - Passing Script Parameters into a Web Direct URL


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

Recommended Posts

Since this feature is now back in FileMaker 14, I figure I'll ask here.  How you do pass multiple parameters into a Web Direct script?  All the docs say is

http://<host>/fmi/webd#<database name>[?script=<script name>[&param=<script parameter>][&<$variable name>=<value>]]

But it doesn't say anything about passing multiple parameters.  Do I have to set up my own delimiter or is there a specific syntax I need to use for the first parameter, second parameter, etc?

Edited by James Gill
Link to comment
Share on other sites

Yeah - this should be more straight forward (pure FileMaker). A couple of useful links:

http://www.soliantconsulting.com/blog/2015/01/extending-webdirect-url-parameters

https://github.com/SoliantMike/FM-WebDirect_Params

I have not yet to use this, but the schema seems to make sense. Fi you decide to go with it, please share your success.

Good luck!

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Looks like it was a syntax error on my end; I assumed that the example included the '$' in front of the variable as an example, but it turns out that you have to pass the entire '$variableName=variableValue' string as the syntax for each named variable.

Edited by James Gill
Link to comment
Share on other sites

  • 6 months later...

I've noted that there are two variations of the syntax:

http://<host>/fmi/webd#<database name>

 

and

 

http://<host>/fmi/webd/<database name>

 

Note the subtle difference, one uses "#databasename" the other uses "/databasename"  - I think that some browsers treat the hashtag strangely so I've standardized on using the "/databasename" version.

Edited by xochi
Link to comment
Share on other sites

This topic is 3001 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.