Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hello everyone,

 

I have written a short line of code as a custom html in the web viewer such that when the link present in the web viewer is clicked it runs a particular script in the file with a parameter. It looks like this:

 

"data:text/html," &"
<html>
<body>
&"/"& Get ( FileName )& "?script=<scriptName>&param=" &  <someField> &"'>View Map Detail</a>
</body>
</html>"
 
Now I know that this web viewer is doing what i want it to do. upon clicking the link the script is executed with the appropriate parameter. However each time the link is clicked filemaker reopens the file that i am trying to work with and asks me to reauthenticate and then runs the script. The functionality i want is for the link to be clicked in the web viewer and the script to run in the same (currently open) file. 
 
in case it helps, sharing is turned on, and when the script runs it reopens the file with the title: FileName (ComputerName)

There is insufficient detail in your webviewer code sample. It does not show if you are executing fmp: protocol or http: protocol.

 

The fact that it re-opens the file suggests you are using fmp: protocol, and this might actually be correct behaviour.

  • Author

Oops one of the lines got cut off.

 

But yes it is FMP protocol. Since you mentioned that this behaviour is intended, is there another way to call the script without reopening the file? perhaps through a different protocol?

The http: protocol will allow you to execute server side scripts using the XML method of custom web publishing. Scripts are executed on the server.

 

You cannot do this without FileMaker Server.

 

Documentation for these methods are provided with FMS, however check the FMI website for a separate copy.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.