Search Functionality on Template Grid with Microflow as Data Source.

I have a template grid displaying a list of name of an object . The data source is Microflow . I want to add a search functionality wherein the options displayed on Template grid should come according to text which is being searched.  Please provide me some feasible options to do so.
1 answers

Add a dataview that surrounds the template grid with the needed search fields.

Add a button on the data view that refreshes the object to load the template grid.

Make sure the datasource microflow take the surrounding object as a parameter and define the query based on the search attributes to retrieve the matching data. Building an xpath statement being executed by a java action is probably the easiest/ fastest depending on the amount of search attributes.

In essence you’ll need to create the search functionality yourself.