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.

populating filemaker table wih data from a web table?

Featured Replies

This must have been answered before, but..

In a spreadsheet, eg Excel, it is possible to populate a table using data from a table in a web page.

Can this be done in Filemaker Pro?

It's possible, though it's certainly no fun - and anytime the webmaster decides to change anything, your solution fails. You need to look at the HTML code of the web page, available through the GetLayoutObjectAttribute() function, and parse out the data out of there using some "navigation points" that you think (hope) are constant, for example: the second <table> element, third row, fifth cell.

Do you have access to the source of the data behind the web page? If so, you could use ESS.

  • Author

I know how to do it using php (fopen,fread and fprint) and insert, I could also probably use page-scraping via Curl;I could probably manage it via an intermediate step. I could also do it in excel and script an import into Filemaker - again a two-step process; a pain and error-prone.

But it's a snap in excel I thought it would be a sought-after feature in FMP

.

@bcooney - the page's xml as presented on the site is all I need; in the past I've used Yahoo's currency exchange rates to add to an Excel spreadsheet of my own holiday budget. After a week or so the Indonesian Rupiah rate goes up, my Excel database refreshes and automatically displays how much my daily Bali holiday allowance will be for each item: banana smoothies, massages and house by the beach.

I'll look up what ESS IS.

@comment

Can you give me a better idea of ho to use GetLayoutObjectAttribute() ?

For example, If wanted the "Slogan of the Day" from http://home.exetel.com.au/re/ to appear in a database field, how would I connect to that URI and parse out the slogan text from:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<meta content="text/html; charset=ISO-8859-1"

http-equiv="Content-Type">

<title>We only subsist.</title>

</head>

<body>

<br>

We only subsist.<br>

</body>

</html>

For example, If wanted the "Slogan of the Day" from http://home.exetel.com.au/re/ to appear in a database field

See the attached example.

ScrapeExample.zip

the page's xml as presented on the site is all I need;

XML is very different from a "web page"; Filemaker can import XML directly from a remote site, as long as it can be retrieved by a GET request.

  • Author

I posted this because somehow I'd expected Filemaker to include some sort of WYSIWYG table-data-sync like excel; when I look for features and cannot find them I rarely presume that the features just aren't there in the first place!

@comment:

The scrape file seems straightforward, thank you.

Since my randomly chosen scenario was over-simplified, can you please take a look at the Brisbane Weather page for the next 7 days and tell me if the GetLayoutObjectAttribute function could still somehow be used with all the multiple field values? I magine I'd have to repeat something like your "Scrape" script multiple times.

I remember once (in a government website job, limited in what tools I had available), I did a two-step scrape of a table via Google Docs. As with Excel, inelegant but worked.

XML is very different from a "web page".

Sorry, I meant XHTML, not XML.

can you please take a look at the Brisbane Weather page for the next 7 days and tell me if the GetLayoutObjectAttribute function could still somehow be used with all the multiple field values?

I don't see why not. Same principle, more work. Keep in mind that a script can be programmed to loop.

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.