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.

Copying contents of a Web Viewer Object

Featured Replies

I want my script to select the contents of the web object & copy and paste the contents in a field. then I have a calculation based on

I have the script go to the object, but will not select all. Seems like it should be simple. What am I missing?

Thanks,

Caroline

Why aren't you using "Source" and "Content" for this?

Instead of copy/paste, give your web viewer an object name, then use the GetLayoutObjectAttribute() function to get the content:

http://www.filemaker.com/11help/html/func_ref3.33.9.html#1027917

  • Author

Instead of copy/paste, give your web viewer an object name, then use the GetLayoutObjectAttribute() function to get the content:

http://www.filemaker.com/11help/html/func_ref3.33.9.html#1027917

Yes why am I not using GetLayoutObjectAttribute(), good question! Well I created a script that uses that function but it does not get all the content of the web viewer object, just the header. This function does not work as a calculation.

AFAIK, you cannot programmatically copy the rendered page from a web viewer when using Windows:

http://fmforums.com/forum/showtopic.php?tid/199043/post/307569/#307569

it does not get all the content of the web viewer object, just the header.

That doesn't seem very likely. Perhaps you mean the real content is in a frame? If so, trying pointing your web viewer to the URL of the frame instead.

Of course, scraping the HTML off the web viewer should be the last choice for getting data from the web, not first.

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.