In FileMaker Go 15, a web viewer can only reference a file located in the Temporary folder.
If the web viewer has embedded HTML that includes file references, the web viewer will appear to be empty in FileMaker Go 15.
Ok, but I'm not referencing a file. I'm calling a webservice using an API and get a result back.
In 14 I get an answer, in 15 not.
I'll try to put the HTML in a file and see what happens, anyway.
Did you manage to work your way around this issue in FMG15 ?
i made a variable HTML file, then set the web viewer with that file, but it doesnt seem to work...
FMG14 works perfectly fine, 15 doesnt... i have read about the Get (temporaryPath) but still.. no luck
I don't have problems in using HTML on Go15. What it doesn't work anymore is the scenario I described in my first post, only if I'm using Go on a local file, btw.
I haven't had the chance to test the latest Go15 upgrade.
Is there anything strange, in your HTML?
I am looking into a standalone FM Go solution that can post some data to a local web service (json data with custom headers).
The webservice is our POS system.
Because I dont have a Filemaker Server, or even Pro on premise I cannot use plugins like MBS or BaseElements.
Now this option works perfect when i use FileMaker Go 14, but when I user FileMaker Go 15 it just will not perform the HTTP Post.
I came across your post, becuase it really looks like the same issue here.
Found on the page User14047 provided. (on the bottom)
If the web viewer has embedded HTML that includes file references, the web viewer will appear to be empty in FileMaker Go 15. Instead, create an HTML file and save it along with any related files in the Temporary folder. Then, change the web viewer to reference the HTML file.
So i Adapted the file:
Set Variable [ $HTMLFile; Value: Get ( TemporaryPath ) & "PostField.html" ]
Set Variable [ $output; Value: "file:" & $HTMLFile ]
Export Field Contents [ Requests::post field; "$output" ]
Set Web Viewer [ Object Name: "Web" ; URL: $output" ]
I can find the file in my TemporaryPath and open it with Chrome or Safari, and the post is sent, but for some reason the post is not send by the WebViewer.
No idea what i am doing wrong here...
Yes, your problem look quite similar to the one I'm experiencing.
But, in your case, your workaround should work.
Try to put some debugging code in order to see what's happening when your code runs under iOS: maybe it's only a typo somewhere...
Have you tried
Set Web Viewer [ Object Name: "Web" ; URL: "file://" & $HTMLFile ]
I don't know what do the Get function get on iOS, but it may start with /, and proper file URL should start with three / after colon.
I cannot find my documentation on this, but I seem to recall that iOS used something different than used on MacOS and Windows.
I'll see if I can find it!
p.s. or maybe if the document is in the "documents" directory of iOS, it doesn't need 'file:' at all?? I *must* find my notes!!
yes i did, no luck until now...
FmGo15 really has some strange behavior,... unusable for some solutions right now,
have you tried the changes necessary, regarding the temporarypath ?
There is no File reference in the my script other than the callback to Filemaker which I removed and it still did not work.
The navigator.geolocation.watchPosition function simply fails.
I guess I'll have to stick with the version 14 for now.
I have seen the other post.
I received your file. Thank you.
I am able to replicate the issue with FileMaker Go 15. The issue does not occur under FileMaker Go 14.
I have sent all information to our Development and Testing departments for review. When I receive any feedback, I will let you know.