Calculating a transient property from other property value in the entity

I am using Aurelias entities and have added transient entities, and it is working (after figuring out that you have to add the Xdata.model.Attributes unit). What I can't figure out is how to use a value in another property/field to calculate the transient value. The documentation uses the example of a birthdate being separted into birthyear, birthmonth and birthdate, however, how do you get the birthdate from the current record to the functions that calculate the transient values? I don't see a way to, for example, do this: function GetBirthYear : integer;
result := yearOf(tCustomer.birthdate);

Nevermind - just realized you can use FBirthdate in the function.

1 Like