Here is the good example of filtering with nonpersistable entity as you said.
Hi Arpita,
Please follow below steps,
First, create a Non Persistent Entity having the attributes you want to filter on. Put the templategrid in an encapsulating dataview, showing an object of this FilterHelper. To create this object, either create one on navigation as page parameter, or create one using a datasource microflow or nanoflow as datasource.
Next, change the existing datasource microflow for your templategrid to have the FilterHelper as input parameter and apply your logic in the retrieves.
Hope it helps!
Thanks & Regards,
Manikandan K