September 17, 200916 yr Hi. I can’t seem to get the Web Viewer to reload after uploading a file. I am trying to reload a Web Viewer (SuperContainer) and I keep getting Error 5. I named the object “superContainer” and the script step is: Set Web Viewer [ Object Name: "superContainer"; Action: Reload ] It just keeps returning Error 5 (Command is Invalid). The SuperContainer is working just fine and eventually, the item in the Web Viewer does reload but its not instant.
October 26, 200916 yr Author It was a button. Who knew. You can not reload a web viewer that is assigned to be a button via a script. It seems FileMaker recognizes the button as a separate object and the button "gets" the name. When you call the Web Viewer Reload script step, it tries to call it on the button and that is why I was getting Error 5 (Command is Invalid). That script step can't be called on a button. Remove the button assignment from the web viewer, name the web viewer again and it should work alright. I hope this helps someone else!
Create an account or sign in to comment