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.

Summarize data by concatenating value of specified field across all records?

Featured Replies

The subject heading may be obscure... I have a table with a text field -- let's call it Table::t_Words. I want to define a field that will take all values of Table::t_Words for the current found set and concatenate them (in their current sort order). Sort of a summary field, but instead of adding or averaging numbers, it concatenates text. Can such a thing be defined? Some clever calculation, perhaps, involving value lists? Does anybody have any ideas?

Well... you can just do a script I suppose. I can think of the beginnings of a CF to do this... but really, in this case, you'll really want a looping script, I think.

If you can create a relationship, you could create a value list on the related table and use the ValueListItems function, which "Returns a list of the values in valuelist, separated by carriage returns."

David

  • Author

Currently I use a looping script, but I'd like something that updates automatically, without having to be executed by the user.

I thought of the self-join --> value list --> replace line-breaks with spaces calculation, and it worked, sort of, but it automatically sorts the words in alphabetical order, rather than preserving the current sort order.

I guess I'll stick with my script for now. ???

Wouldn't it just be substitute( list( relation::textField); "¶"; " ")

Edited by Guest

Not if you want to get the found set (and not in version 8). You need a custom function for this, something like:

ListFoundSet ( fieldName ; startRecord ; endRecord )

Let ( [

item = GetNthRecord ( fieldName ; startRecord )

] ;

Case ( not IsEmpty ( item ) ; item & ¶ )

&

Case ( endRecord > startRecord ; ListFoundSet ( fieldName ; startRecord + 1 ; endRecord ) )

)

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.