Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

How to create an end user adjustable filter for a Sharepoint 2010 list column to filter by multiple values

$
0
0

Hello,

I am trying to create an end user adjustable filter for a multi-value lookup column in a list. I would like to ask for further assistance. My list looks similar to the below:

LIST A

Row : Column 1          : Column 2
—————————————————————
1 |
Description1         |Std1;Std2;Std3
2 |
Description2         |D1;Std3;Db3
3 |
Description3         |D3;Db3;Std2
4 |
Description4         |Std1;D2;B1

5 |Description5         |Std3;D1;B1

Column 2 is a lookup column with multiple values separated by a ';' delimiter. It is connected to column 2 in list B.

LIST B

Row : Column 1          : Column 2
—————————————————————
1 |
Description1         |Std1
2 |
Description2         |Std2
3 |
Description3         |Std3
4 |
Description4         |D1

5 | Description1         |D2
6 |
Description2         |D3
7 |
Description3         |Db3
8 |
Description4         |B1

I am trying to create a page that will allow the end user to filter List A, column 2 by more than one value e.g. a user may need to filter column 2 to show all entries containing values 'D1' and 'Std3'. The output of this filter should be:

List A (filtered)

Row : Column 1          : Column 2
—————————————————————
2 | Description2         |D1;Std3;Db3
5 |Description5         |Std3;D1;B1

I can setup a page in SharePoint designer adding a XSLTListView Webpart of the list and defining filters statically and this works. But I need the sharepoint users to be able to do this dynamically. I tried a suggestion on this forum and defined 2 parameters for theXSLTListView Webpart and used the parameter variables as a value for 2 filters as follows:

column                condition                  value

Column2             =                   filtervalue1

AND 

Column2             =                   filtervalue2

Now I need to supply those parameters to the XSLTListView Webpart using a checkbox control that will pass multiple values that are taken from the List B column 2 values. Any ideas how to accomplish that?


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>