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

Used this to pass a value to a form, but can I use a query string for a single list item ID, provide to users and have that filter a list for me? Or do I need some CQWP that takes a parameter from a query string?

If so does anyone have a good example or resource for this please?

Thanks; appreciate as always!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes very easy even, via SharePoint Designer:

  1. Go into your page use the Insert menu, choose Empty data View.

  2. Click the in page on the "Choose data Source Details" and choose your target list.

  3. From the Data Source windows choose fields to show and via the button "Insert Multiple Item View". Then choose from the Design your required. Now you should have all items.
  4. With you web part selected, use the Filter button and in the window choose the column to filter after, e.g by ID. Make a condition as such "ID Equals" and use the ADD NEW PARAMETER. In the window to define the parameter you have multiple types, and you need to use QueryString. In the 2nd text box from the 3 available type the name of the Variable as you send it into your QueryString.

  5. Just to be sure, via PAGING (in case you do not use a field with unique values, such as ID), make sure you Chose to show a single item

That's it! ALso have a look at this article for more details http://madanbhintade.wordpress.com/2012/01/08/sharepoint2010dataviewwebpart/

share|improve this answer
    
thanks! appreciated –  Justin Aug 29 '12 at 19:58
    
Is there any any way to do this with listform or custom list form that creates the form for you. filter is not avaiable, and changing parameters does not see to work. –  cyberpine Oct 1 '12 at 20:02
    
you could pass in the ID and then simply Filter the Web Part on that- is a matter of 30" –  C. Marius - MVP Oct 3 '12 at 11:57

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.