Assuming you already have a working data view webpart:
- Open SharePoint designer and the page that the data view web part exists on
- From the Options tab of the Data View Tools section in the ribbon, select Parameters
- Create a new parameter of type Query String - specifiy the parameter name, the query string variable name (what its called in the URL), and the default value (for when no value is supplied)
- From the Options tab of the Data View Tools section in the ribbon, select Filters
- Set up the filter to use your parameter (QueryParameter will be the parameter name you supplied)
- If you have problems with the steps above, I'll add that I always start with an empty data view web part and then manually add the data source and columns to it through the menus and XSLT. I find that this route tends causes me less trouble than adding a data view web part with the data source directly attached
No comments:
Post a Comment