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

Parse InsertFromURL

Featured Replies

Been playing around with InsertFromURL and XML CWP so started by writing a simple function to parse the returned result (SO much easier in Groovy than writing parse functions in FM) and realised it is also possible to to both in one go
 
So if you are a code hoarder like me here it is...
 

// FMurlXML ( fm_url )
// 12_12_05 JR
// either runs CWP script and returns error code and version
// or just parses the code from the result of InsertFromURL
// fm_url is either a formed url - http://yyy.xxx.com/fmi/xml/fmresultset.xml?-db=plug&-lay=tzt&-view&-script=txt or the XML results

if (fm_url[0..3] == 'http'){
root = new XmlParser().parseText(fm_url.toURL().text)
} else {
root = new XmlParser().parseText(fm_xml)
}
version = root.product.@version
return root.error.@code


John

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.