Hi.
I have certain listviews that I would like to filter based upon fields that exist for the current user. I am using the security system, with custom SecuritySystemUser types. These types are derivatives of yours, so not significantly different.
Let's say my CustomSecuritySystemUser has a Person reference, and I want their date of birth, in order to filter a list of birth certificates.
In the user model I would like to set the Filter setting, for the view to something like this:
DateOfBirth = @CurrentUser.Person.DateOfBirth
Currently all I have is CurrentUserId and I'm not sure how to reference that in the CriteriaOperator… but it seems the best way to go would be to create a custom @CurrentUser function that maps to this.
Could you offer some guidance please?
Thank you.