Changed a couple things in the URL.
Ditched the IP address and changed the Get (FileName) to Get (FilePath) and removed the addition of the extension as Get (FilePath) includes it.
Still not working. The error changes to the file is not available or not on that host. The path to the file is correct.
The file is local on the user's computer. It could move to a hosted format in the future but it'll be a while.
If I understand correctly, with local databases (as in: unhosted, non-FMgo) this only works from FM 13.02 onwards. Then you can use
Using 13.0v3 so all is good there.
Have tried both the tilde "~" and the $ character. Still no love. Keep getting told the file is not available, yet it is available as I'm in it.
Will keep trying...
Does your filename have spaces or other special characters? That could well be the problem. If so, try GetAsURLEncoded ( Get ( FileName ) ). I suppose that could be the same issue with the script name as opposed to the file.
filename is "ArtGallery.fmp12". Nothing silly there. Script name is "artbutton"
The format that works for me on FMPA 13.0v3 OSX 10.9.4 is as follows:
"fmp://$/" & GetAsURLEncoded ( Get( FileName ) ) & ".fmp12?script=" & GetAsURLEncoded( "hello world" )& "¶m=" & GetAsURLEncoded( "Foo1" );
I'll attach a sample file which, on my machine, illustrates the above working.
HTH & Best,
Sample4DZ.zip 65.0 K
Thanks Steve, I'll take a look and post back.
I didn't have the second GetAsURLEncoded, around the script name. I also had coded the "fmp://" in the HTML and was substituting the file path in. I changed it to the format that steve_ssh did it and now all seems to be working.
Thanks for the help.