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.

Portal Parse Duplicates

Featured Replies

Howdy all,

I have a table that displays related information via a portal. I have a need to look at all the text values in the related records, add them all together and then parse out the duplicate values. Example:

Portal record

1 Driver

2 Loader

3 Loader

4 Supervisor

5 Loader

Parent record

Somehow add all the values from portal records into a field = Driver, Loader, Loader, Supervisor, Loader

Then parse out the duplicates so that the field in the parent record = Driver, Loader, Supervisor

Any help is greatly appreciated. Thanks in advance!

Hmm. Would a related value list give you unique child records? It might. So a calc in the parent that uses ValueListItems ( ).

Otherwise, there's always List ( ). Or, if you're counting...individual count fields using FilterValues ( ).

Read up upon Ugo's method, but what the point since every printout ought to be done in the most atomic of the tables, the itemlines table anyway?

Gttr would take your there and fm10's live summaries provides the rest of it! Sorting is the key to it...

--sd

  • Author

Thank you for the replies. I'm probably not explaining myself properly so I will ask specific questions.

1. How do you "sum" the values in related text fields? I know you can do it with numeric values using the sum() function. Is there a similar function for text values?

2. Once all the values are in one field, how do you parse out the duplicates?

Thanks again for your help. It is greatly appreciated.

Edited by Guest

1. The List() function does that.

2. I don't understand what you mean by "parse out the duplicates".

  • Author

Thanks Comment. I don't see a List() function in my version. Is there a similar function for version 8?

Parse the duplicates means to get rid of the duplicate enteries once I "list" them all together. For example: The list contains driver, loader, loader, supervisor, loader. I would like to "parse" out the two duplicate "loaders" in the list. Does this make more sense?

Thanks.

I don't see a List() function in my version.

Sorry, haven't noticed you're still in version 8 - the List() function was added in v. 8.5. You can use ValueListItems() instead, once you define a value list (as suggested earlier by Barbara). The value list needs to include related child values only, starting from the parent table. This method will also automatically remove any duplicate items.

  • Author

Thanks again. I think we are getting closer. I mocked up a quick and dirty of my problem (attached). The valuelistitems() function seems to list only the values in the value list. I'd like some function that "sums" all the entries in the portal together and removes the duplicates. I can do it for numbers but I haven't found a similar function for text values.

Sorry for being a pain in the neck. I really do appreciate all of your help.

the_kid_1.zip

  • Author

Perfect! Thank you!

  • 11 months later...

How do I use list where I do want to keep the duplicates. List works perfectly but I need to show dupes as well. Any help on this would be terrific.

TIA

remoran

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.