Select DISTINCT on some fields in a TypedList

Posts   
 
    
Posts: 11
Joined: 27-Aug-2009
# Posted on: 16-Aug-2010 17:41:27   

Hello all, I have a TypedList with 4 fields. I Need those 4 fields to filter Data. However, I Need to get a Distinct on only 2 fields with the Fill Method. How could I do this ?

Thanx a lot !

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 17-Aug-2010 03:13:47   

Hi Carlos,

So, you want to filter on 4 fields but the resulset will have just 2 distinct fields? I think you can accomplish that easily with a DynamicList

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 17-Aug-2010 10:15:38   

DISTINCT is always per row, as most db's do distinct filtering per complete row, not per set of fields.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 11
Joined: 27-Aug-2009
# Posted on: 23-Aug-2010 18:57:41   

Thank you verry much. Can I import any DLL to get the DataAccessAdapter Class in the SelfServicing template to build my DynamicList ?

Thanx again ...

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 24-Aug-2010 04:35:14   

Carlos wrote:

Thank you verry much. Can I import any DLL to get the DataAccessAdapter Class in the SelfServicing template to build my DynamicList ?

Thanx again ...

You can create DynamicLists in SelfServicing as well. Here is the manual's link. All that classes (both Adapter and SelfServicing) are contained in the ORMSupportClasses assembly wink

David Elizondo | LLBLGen Support Team