Forums/Help from the Community/Community Questions & Answers

Answered

How to select from data class only distinct items?

Mika Friman
asked this on Jun-07 15:03

I'm using List Initializer to get contents from the Data-class, but there is no option to select only distinct values. What is the best way to do that?

 

Comments latest first

Paula Holst
HammerKit Oy

There is no way of selecting distinct values. This should not be thought of as an SQL query. On the site side rows in a data class table are treated as objects and the values there are object attributes. From the object list that the List Initalizer returns you can then use only the object attributes that you need.

Jun-07 2011 15:05.