How to create a dynamic filter in SMP 7