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.

tracking url parameters (query string) to fmp database

Featured Replies

Hi, I have some FMP development experience but more so on the intermediate level.

We have a FMP database, hosted on a FMP server, that we use to track a bunch of our digital signs. All the data in the db is manually entered with fields such as 'name' and 'ip_address'. Sometimes these signs go offline, hangup, change ip addresses, etc.  I had the idea to have the remote signs call a url every hour that is our signage db hosted on our FMP server.  Something like:

https://fmp.server.com/fmi/webd/db_name?name=signName&ip_address=ip

The db could track these calls for all signs in the db and I could create a layout or report that would list the ones that haven't called in within a certain timeframe.

I know exactly how the signs themselves would technically call the url, and can handle the layout & report, but don't know how to get the db to listen for the call and handle it.

How can I do this? Are there any examples anywhere that explain this?

I'm thinking the db would need to have webdirect enabled with a layout that is shared to Guest so a login isn't required but other than that I'm not sure where to start... or if there is a better way to handle this.  Once the url call is made, the db wouldn't need to do anything back to the client/sign itself except for perhaps a simple 'success' message.

Thanks!

Edited by Chris Thacker

Have a look at this post: 

If you have FMSv17 or 18 you can use the API instead of the PHP webserver. I would suggest using PHP instead of WebDirect if your FMS is v16 or older.

 

 

  • Author
14 hours ago, OlgerDiekstra said:

Have a look at this post: 

If you have FMSv17 or 18 you can use the API instead of the PHP webserver. I would suggest using PHP instead of WebDirect if your FMS is v16 or older.

 

 

I have 18 installed on our test server and am open to using the API. Are there any demos of this sort of thing being done using the API?

Thanks for your reply and link to your PHP solution.

I'm still running a v16 server due to the underlying operating system, and therefore haven't had a chance to play with the API, but it's supposed to be pretty standard. This https://dbservices.com/articles/integrating-filemaker-with-rest-apis/ might provide a start. Others on this forum might be able to provide some pointers as well.

If your digital signs are linux based you can use the curl command to send data to the FMS server.

  • Author
22 hours ago, OlgerDiekstra said:

I'm still running a v16 server due to the underlying operating system, and therefore haven't had a chance to play with the API, but it's supposed to be pretty standard. This https://dbservices.com/articles/integrating-filemaker-with-rest-apis/ might provide a start. Others on this forum might be able to provide some pointers as well.

If your digital signs are linux based you can use the curl command to send data to the FMS server.

I think that example shows how to connect a database to a remote API, if I'm not mistaken. My needs only use the FMP db, and being able to access it with an http call. (or the FMP API to access that db)

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.