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.

GetLayoutObjectAttribute "source" from webviewer

Featured Replies

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?

 

  • 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.

23 minutes ago, naio said:

for what I see

How are you testing these things?

  • Author

I'm testing this in a FMS hosted file (details in my first post). One use case is

  1. Launch a search from a text field in Google
  2. Let the user find the right result, and open the destination page
  3. 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 by naio

  • 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

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.