Calculated Properties

Posts   
 
    
Wade
User
Posts: 76
Joined: 15-Jun-2004
# Posted on: 01-Dec-2004 16:08:02   

Frans,

I have probably missed something in the docs but is it possible to create a calculated property on a TypedList or Entity from other fields?

Like on an EmployeePayroll entity I have 2 fields HourlyAmount and HoursWorkedForPeriod. I would then like to have a calculated field of GrossPayForPeriodAmount.

Thanks, Wade

Fishy avatar
Fishy
User
Posts: 392
Joined: 15-Apr-2004
# Posted on: 01-Dec-2004 16:14:51   

Hi Wade,

I think you could do it thru a view. Another approach would be to do it in your business layer and not the data access layer.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 01-Dec-2004 16:38:48   

It is not yet supported in the typedlist/entities. You can do it in code though, by using a dyn. list. This feature is scheduled for the 2nd upgrade phase, early 2005 (feb/march)

Frans Bouma | Lead developer LLBLGen Pro