April 18, 20205 yr I can't get this function to work, it returns empty even thought I have a web page loaded in the webviewer: GetLayoutObjectAttribute ("webviewer"; "source") According to FMA18 documentation I should be getting the URL of the webpage in "webviewer" but I don't. The client machine runs FMA18 on MacOS Catalina, the file is hosted in FMS 17, MacOS Catalina. Am I missing something?
April 18, 20205 yr Author Well, for what I see, using GetLayoutObjectAttribute to get the URL displayed in a web viewer doesn't work if the web viewer has been modified using the 'Set Web Viewer' script step. I think this should be specified in the GetLayoutObjectAttribute function documentation.
April 18, 20205 yr Author I'm testing this in a FMS hosted file (details in my first post). One use case is Launch a search from a text field in Google Let the user find the right result, and open the destination page Capture the url displayed in webviewer and copy it to another text field I can't make it work, it happens to me sometimes, I normally understand WHY, but not this time.😪 It just works randomly! Edited April 18, 20205 yr by naio
April 18, 20205 yr Author 35 minutes ago, comment said: How are you testing these things? Script steps used: Perform Google search: Set Web Viewer [Object Name: "wviewer"; URL: "http://www.google.es/search?" & "q=" & GetAsURLEncoded ( table::searchtext )] When user clicks a button: Set Field [table::URL; GetLayoutObjectAttribute ( "wviewer"; "source")]
Create an account or sign in to comment