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

Featured Replies

Hi everyone

I wish to get some data back from a URL...The URL is in the form of a "submission string" and I have correctly formatted the query string parameters to bring back data.

The returned data only consists of two lines of text in CSV format - the first being a header. The second is 4 very short fields.

On a layout I have a web viewer object named wvmileage

If i use a "custom url" ("http" etc as above) it does indeed return the text file into the viewer and if I then (in a script) set variable:

$temp = GetLayoutObjectAttribute("wvMileage";"content")

then $temp correctly returns the content of text file.

So far so good.

BUT the URL used is a chargeable web service and I really don't want the web viewer raising the query everytime the window is opened.

So I am trying to write a script that only queries the service when a button is clicked ie using the set web viewer script step with "go to URL". It works but now the $temp calc just returns an empty value...

Does anyone know why - is it a timing thing - does the web viewer have to show the result data before the GetLayoutObjectAttribute("wvMileage";"content") will work?

Many thanks

Edited by Guest

When do it this way you(or any way) you should check if the web page has been loaded into the webviewer before you set your variable.

Here is the code I use for html documents (the

  • Author

Hi,

thanks for that, will test in morning and let you know how i get on.

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.