How to get content from a website inside FileMaker Web Viewer

I need to create a website that will be displayed inside FileMaker Pro 11 Web Viewer. The URL will be initially set by FileMaker. After that, the user can change the content of the page, generating new data. The idea is to return new data to FileMaker.

How should website data be displayed for FileMaker? Can FileMaker A) read the parameters from the URL after changing it, or B) read the entire page as XML, then parse the XML and extract the data (although I hope for an easier solution than this).

My perspective on this is mainly as a web developer.

+4
source share
1 answer

You can create a button that will β€œreceive” the contents of the web view using the GetLayoutObjectAttribute function.

First give the web view object a name.

Then create a script that sets the field or variable using:

GetLayoutObjectAttribute (objectName; "source") - returns the URL of the object GetLayoutObjectAttribute (objectName; "content") - returns the current content of the object (html, xml, etc.)

Now create a button that calls the newly created script.

if you are going to parse xml, see http://www.briandunning.com/cf/1 for a feature that simplifies parsing.

+6
source

All Articles