Hi,
I am a little unclear as to the use of aggregate functions in the designer TypedList screens and how to access them from a databinding point of view. I have a Account entity with a 1:n relationship with User entity i.e. an account can have many users. I would like to display the number of users per account. I added both the Account and User entity to the AccountUsers typedList and marked the User.ID as a count aggregate. However, the examples shown in the manual show the use of GroupByCollections in this context.
How is something like the following implemented as a typedlist and subsequently bound to a data control such as a gridview?
select Account.account_id, Account.account_name, Users, Account.create_date
from Account
inner join ( select AccUser.account_id, Count(AccUser.accuser_id) as Users
from AccUser
group by AccUser.account_id) AccountUsers
on Account.account_id = AccountUsers.account_id
Cheers