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.

Pulling number from webpage

Featured Replies

  • Newbies

I'm fairly new to Filemaker (using FM 13) and trying to build a solution that'll compare what my company has in stock, with what our website says we have in stock. Everyday we do a physical count (inventory) on around 100 items, and we need to compare that with what the website says we have. 

 
My solution has a field for what the website says (for each item). Thought that the Insert From URL function would do the trick, but as I am so new to Filemaker, I can't figure out how to parse the data. I need to pull one number from the webpage. The code from the webpage is: (note: ignore extra spaces in code below):
 
< p class = " inventory " >  < span class = " inventoryCnt " >  3 in stock  < / span >
 
I need to grab that number (inventoryCnt) 3 from the webpage and put it in my Filemaker field.
 
From the Filemaker website I found this about the Insert from URL function; http://www.filemaker.com/help/12/fmp/html/scripts_ref1.36.46.html
 
I think the basic code would look something like this:
[select; No dialog; <table name::inventoryCnt>; webpage address]
 
However, that doesn't work and I am lost on how to correctly parse this out this webpage. Can any of you FileMaker experts walk me through the steps to do this? Would sincerely appreciate it!

 

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.