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.

Troi Text TrText-XML function

Featured Replies

TrText-XML function

Working from page 25 of manual below

[color:green]

"If the XML contains multiple occurrences of a node you can retrieve a specific node by adding a number like

this:

abc/def[2]/ghi[3]

This will get the 3rd 'ghi' node from the 2nd 'def' node of abc."

Retrieving a specific node with a number as in 2 and 3 above. I was trying to define this number with a variable either a number from another field, function or formula.

Example abc/def[2]/ghi[Field G] . Field G being a number or formula result.

I have tried this in calculation field and script step and have been unsuccessful. I was not sure if this was a limitation of FMP or Troi text plug in. Or am just not doing it right.

Thanks

Joe

  • Author

I emailed Troi support and they got back to me right quick.

[color:green]"This calculation should work better:

TrText_XML( "-GetNode" ;

"abc/def[2]/ghi[" & Field G & " ]" ;

XML data )

Note that the field is outside of the text string. Is that clear?"

It was not doing it right.

Joe

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.