October 14, 201015 yr 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
October 14, 201015 yr 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
October 15, 201015 yr 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.
October 16, 201015 yr 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