CustomFilter on TypedList in the designer

Posts   
 
    
scotru
User
Posts: 104
Joined: 16-Feb-2006
# Posted on: 13-May-2014 21:21:46   

When building a dynamic typed list it's possible to specify a custom filter on the relations.
Is it possible to do this in the designer? Or is it possible at runtime to add a custom filter on a relation in a typedlist built with the designer?

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 13-May-2014 21:25:34   
scotru
User
Posts: 104
Joined: 16-Feb-2006
# Posted on: 12-Oct-2014 21:57:01   

This thread appears to address doing this at runtime not in the designer. I'd like to add additional custom constraints on a relationship (besides the primary key) when relating tables for a typedlist in the designer.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 13-Oct-2014 10:35:38   

In the designer it's currently not supported, it's only available in code. To do this reliably for everyone, you could subclass the typedlist (if you use the 'datatable' output in v4.2) and override the GetRelationInfo() method to append the filter there, so everyone will get the augmented filter.

Frans Bouma | Lead developer LLBLGen Pro