Passing parameters through sharepoint sitepage to web part - sharepoint

So I'm building sharepoint pages that are consisted of web parts. I need to send parameter to a page, and that send it further to these web parts, and I have no idea how to do this...

OOTB way:
You can use query string filter web part to capture the query string values and pass it to the web parts.
http://office.microsoft.com/en-us/sharepoint-server-help/connect-a-query-string-url-filter-web-part-to-another-web-part-HA010250999.aspx
Custom WebParts:
You can use the following code snippet to capture the query string.
Request.QueryString["param"]

Related

Sharepoint - Soap web service - Given list name, how to get list GUID?

Given a sharepoint list name, is there an easy way using soap web service to get the List?
I am currently having to call getListCollection to do it. But this returns everything which is performance constraining now due to size of collection.
And getList doesn't work. It just returns the schema.
Check for ID field in the XML response

How to take parameter from sharepoint and pass to SSRS report

What I have is a page in sharepoint that has a URL that points to the page the contains a parameter at the end, as in "ttp://theur|?Project=projname and what I need is to somehow pass the value of the Project parameter that is in that URL and pass it to the SSRS report so that I can use it on there. I am displaying the SSRS report on the sharepoint page as an SSRS report viewer web part.
If you're using the report viewer page, you can pass the parameter by appending rp:=value into the query string where is the name of the report parameter. For a web part embedded in a SharePoint you may be able to use a querystring filter web part and send the value to the report web part.

How to get workflow history in Sharepoint 2010?

I want to create a web part in which I want to display history of all workflows that failed in the past certain time. The info that I want to get is the workflow name, its location (site URL), initiator and error date time. I am very new to SharePoint with ASP.Net background so I am having a hard time figuring out if there is some way in the API to that?
Kindly share if this is possible?
Its a hidden list so you can't get to it from All Site Content. You have to type the URL in directly, like below. And once you have the URL of the list you can query the individual fields
http://[servername]/[sitename]/lists/Workflow%20History

how do sharepoint pages load?

I need to understand the load sequence for a sharepoint page that uses a query string to filter content.
If I pass in a query string, I assume that SharePoint first passes that query string to any web parts that need it, waits for the web parts to load their content then loads the final page? OR does SharePoint first load the page then pass the query to its web parts.
The QueryString is acessible in your webparts, it gets passed at the very beginning of the request.
Web Part is just another Control in the Page and it behaves in the same way as other controls, so same Page Execution Cycle happens in the WebPart pages as well and the Query String will be always avaliable in your WebPart code.

connecting web parts in sharepoint

I am trying to connect to simple webparts in my sharepoint team site, i need one of the webparts to filter its information based on what it recieves from another webpart
I am using the query string filter webpart and the a list view webpart but no matter how i connect them always i am getting this error
"Web Part Error: This page has exceeded its data fetch limit for connected Web Parts. Try disconnecting one or more Web Parts to correct the problem."
What should I do and what am I doing wrong
update:
i can connect to web parts on some other pgae, but getting this error on the DispForm.aspx page of a certain item , is webpart connections not allowed there ??!!
There is an issue with creating QueryString filter webparts in sharepoint, when you're not using the Web UI (I'm making an assumption that you aren't).
This fella here has a post about it and how he hacked around the issue.
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/0328f1b2-20cd-427f-887a-e2925bd695e3/
Another option is not using the QueryString filter web part at all, and just passing querystrings to a regular web part.
http://mo.notono.us/2008/04/moss-filter-views-through-url-query.html
Me too,you look this url
http://blogs.msdn.com/sharepointdesigner/archive/2008/03/26/sharepoint-conference-building-a-sharepoint-designer-mashup-part-1.aspx
I have fixed this issue.
Problem
In the sharepoint list, filtered column name in query strng fitlter has been deleted and added new column with same name.
Solution: Remove filter and Set current view again in webpart properties. It works fine.
With Regards,
Marees
The page 'DispForm.aspx' usually is a form of a SharePoint list and different rules apply to list-form pages than on pages that do not belong to a Sharepoint list (and the differences are hardly documented). I solved the problem by workarounds; you could use not a ListViewWebPart, but a DataViewWebPart (Using Query String and Data view WebPart), or you could avoid the QueryStringFilterWebPart by using URL parameters that the ListViewWebPart understands (ListViewWebPart Filter Param).

Resources