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.

how do I summarize related text fields on one line

Featured Replies

  • Newbies

Database "voters" is related to "voterhistory" by the field voter_id. In voterhistory there's one record for each year a voter participated in an election. Each record consists off voter_id and year, both text fields.

For printing purposes, I want to summarize all the related records for a particular voter on one line, instead of in a portal.

The output would look like "2002 Primary, 2001 General, 1997" for example, where there are 3 related records for the voter in this example:

record 1 -- year="2002 Primary"

record 2 -- year="2001 General"

record 3 -- year="1997"

I'm at a loss as to how to accomplish this -- all help much appreciated.

What about making separate fields for each voting. Then it would be a snap.

Lee

wink.gif

You could create a value list "Elections" based on your relationship from voters to voterhistory, and then create a calculated field using the ValueListItems function like this:

Substitute( ValueListItems(Status(CurrentFileName,"Elections"),"

Hi Bob,

With one small correction to your calculation, and it worked well, except that the index sort order is backwards which made it read:

1997, 2001 General, 2002 Primary

instead of

2002 Primary, 2001 General, 1997

The calculation was only missing the ")" behind "CurrentFileName" so the ammended calculation should read:

Substitute( ValueListItems(Status(CurrentFileName), "Elections"),"

Lee:

You are now my official copy editor. smile.gif

Alas, the pay isn't very good.

Hi Bob,

blush.gif

No pay necessary, just keep those greate tip files coming.

laugh.gif

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.