Alias for Agregates in Dynamic Lists

Posts   
 
    
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 17-Jun-2005 02:02:57   

when I'm defining a dynamic list the table alias is optional for reular fields fields.DefineField(DisputeMasterFieldIndex.ClaimReasonCode, 5, "ClaimReasonCode");

But I don't find a constructor for an agregate field where the table alias is defaulted.

fields.DefineField(DisputeMasterFieldIndex.CurrentAmount, 6, "Amount", "Disp", AggregateFunction.Sum);

If I fill in a alias in the agregate I have to use the same one elsewhere. How can I give the agregate field the same alias that the non-agregate fields are using by default?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 17-Jun-2005 09:39:20   

specity string.Empty (or "") for the alias, then the alias is ignored.

I didn't add yet another overload, as it would blow up the generated class with another set of lines...

Frans Bouma | Lead developer LLBLGen Pro
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 17-Jun-2005 12:55:42   

Thanks