Question:

How to add filters(picklist) headers on vf page

Maya: 5 days ago

I have developed a VF page with 5 columns. My requirement is that, I need to add filters on the header and the results should show based on the Filter header. The filters are picklist values. So, if the user selects any value on that picklist field, the result should show based on that value only.

I am not able to paste the code, as it is big. Sorry. Kindly help me, so that I can learn

Answer:
Evelyn: 5 days ago

You can try something like when user select anything in picklist pass the value in controller and add this in query.

Example: if user select Name  = 'Test' then in query add Where Name= 'Test' and display the result in your query.

for pass the value in controller you can use apex:param tag to pass the value and bind this with your controller variable.