Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Portal Parse Duplicates


This topic is 5032 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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 ( ).

Posted

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

Posted (edited)

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
Posted

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.

Posted

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.

Posted

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

  • 11 months later...

This topic is 5032 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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