Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have two lists; List A and List B. List B has a lookup column to List A.

I want to filter List B based on the value in the field that looks up A. This can of course be done using the default OOTB column filtering. However, I want to create a view/webpart that does this for me using URL filters. Since List A will change from time to time, I won't hardcode the URL's, I want to create a special filtering view of List A I can add to List B's view.

I've managed to do what I'm trying except for one issue. When I filter List B using URL filters (e.g. http://server/site/Lists/Links/AllItems.aspx?FilterField1=DocumentID&FilterValue1=650) it will filter both List A's and List B's views simultaneously. I only want the filtering to be applied to List B. The solution to this could be to add View as an URL attribute, e.g. ?View={GUID}&FilterField1=DocumentID&FilterValue1=650. This will work, but then I need a reference to the View ID of List B from my List A xslt (to apply to the URLs).

Frankly, I could even live with the GUIDs being hardcoded, e.g. that I set them in List B's CAML and in the XSLT of List A. However, they just don't "stick", they are overridden during deployment.

Another option could be to render List A as "unfilterable". if you have any suggestions I'm all ears.

share|improve this question
add comment

1 Answer

Use a "Filters » Query String (URL) Filter" webpart on a custom page.

share|improve this answer
    
I don't have an enterprise licence –  tarjeieo Apr 27 '12 at 8:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.