What exactly happens instead of the dialog popping up? Error messages? Does FMS enlist the WD client?
How about using "/" instead of "#" in the URL?
This may not resolve the issue... In my test # can be used.
How do you open the URL? Typing it in the address bar of browser?
Isn't the '?' in URL encoded?
You can open http://myip/fmi/webd#test and run test script from the menu
It looks like your Test script is set to run with Admin privileges but auto web login account (devel) does not have a privilege to run scripts.
Try to play with Access Privileges
Thanks for the replies.
The script does run if open the database with the script parameter and I just select it from the script manager.
The account logging in is using the default filemaker data entry privilege.
Because I am just testing I am typing the url directly into my browsers address bar.
I *could* trigger the script to run OnFirstWindowOpen however I MUST be able to pass some variables via the URL in order for the script to work (it's performing a find based on what is passed in the variable).
Try temporarily changing the default login account to Admin with full Access Privileges. See if the script in url works. If it is - it is something with your privileges.
Tried everything but nothing seems to work.
The script "test" is not triggered by OnFirstWindowOpen. The URL call is the trigger.
Can you share with us the actual names of the database and the script?
The database is called Test.fmp12 and the script is called test.
The whole reason I am trying to do this is because I need to pass some variables along in the URL that will be grabbed by a script (which I could run using the OnFirstWindowOpen trigger). This script would then perform a find (based on the variables).
I am not new to Filemaker or Webdirect. However I have never used the additional parameters in the URL to open a file. I was wondering if my syntax was wrong. The file DOES open in my browser if I leave off the parameters and just use the database name.
Using Filemaker Server 14. Database is set to open automatically with Admin password with full access. The database, as it's a test, is one table with a few fields and three test records. There is one script called test that has one line of Show Dialogue.
Thanks!! Getting frustrated and losing a lot of time on this.
Just throwing this out there, I have no idea if this is a problem, but try renaming the script so it doesn't match the database name.
Yea tried that. The script was originally called FindCode and I got the same error.
If you have the wrong script name, you'll get an error displaying that. You're getting an error saying the database can't be found. You get that error if the database name is wrong. Makes me think that Server is seeing the "test?script=Test" as the file name for some reason.
What browser are you using and have you tried another browser?
Also, you mention parameters a few times. Are you trying to run this script right now without passing parameters? That's a good idea!