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

Sort unique values in portal from related menu


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

Recommended Posts

Posted

What I have:

One DB

One field for "manufacturer and car model"

The same in separated fields "manufacturer" and "car models" by calculation from first.

Conditional value list based in "manufacturer" and "car models"

If I select "BMW" in the first pop-up, the second sorts "318, 225, 525, etc"

What I need:

I need to select "BMW" and sort the related values in one portal alphabeticaly and omit repeated values. Now I see "525, 318i, 320, 318i (again), etc"

Is that possible?

Thank you

Posted

Hello,

Use a selfjoin on your "manufacturerandcarmodel" field.

Showuniquerecord = Case(Record_ID = Max(Seljoin::Record_ID),"Model", " ").

and

Sortfield = Case(not Is empty (Showuniquerecord), 1,0)

You could therefore B)

- use this Showuniquerecord in a Valuelist

- use a portal and display these records. This solution doesn't omit any record, but you can sort the relationship on

A. Sortfield (to show in first the not empty values)

B. Alphabetical sort on Models.

Or you could find a way to index Showuniquerecord and then use a relationship from a constant number field = 1 at left side and Showuniquerecord at right side to really omit the duplicates.

Hope this can help.

This topic is 7921 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.