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.

Parsing multiple values into sub-records

Featured Replies

I have a Text field in which a client has entered multiple keywords separated by semicolons, like so:

Animation; Experimental; Comedy

I have created a sub-table to hold individual keywords so they can be better manipulated in various ways. So I need to run a script to break out the three values and create 3 sub-records for the above examples.  Fortunately, the records are very consistent in their use of semicolons and a space to separate the values. (And semicolons are not used for any other purpose within the entries).  

I assume I'll create a looping script to perform an iterative process on each record, using the semicolons as markers, right?  I'd could use the Position function to find where the semicolons are and then use the LEFT text function to chop off the first word, etc etc, right?

It's been a long time since I've done this sort of thing and am rusty on the process. Are there any field replacement calculations I could do to make my task simpler?  I just get a feeling I may be overlooking a useful tool of some kind.

Thanks!

Start by substituting the existing separator with a carriage return to get a return-separated list. Then use GetValue ( $list ; $i ) to get the individual keyword values, increasing $i until it reaches ValueCount ( $list ).

Note
Not sure what you mean by "better manipulated in various ways". Filemaker is pretty good at manipulating return-separated lists, so it could well be all that you need to do.

 

Edited by comment

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.