web-parts

Passing parameters through sharepoint sitepage to web part

十年热恋 提交于 2019-12-10 20:57:54
问题 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... 回答1: 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

ITransformableFilterValues interface with two or more parameters [SharePoint WebParts]

断了今生、忘了曾经 提交于 2019-12-10 17:21:04
问题 I working with Sharepoint, and I try to connect web-parts with multiple parameters. My question is how do I pass more than one parameter from a custome web part to another. I am able to pass one parameter by implementing the ITransformableFilterValues interface in the custom webpart , what I want to do is pass more than one parameter (MyIndex2 for example). // Configure interface public bool AllowEmptyValue { get { return false; } } public bool AllowAllValue { get { return true; } } public

Popularity of MVP for SharePoint WebParts

半世苍凉 提交于 2019-12-10 17:04:42
问题 Is it a popular techinque to use the Model View Presenter (MVP) design pattern when creating Web Parts for SharePoint? It seems (to me) that this pattern is applied more often in the custom application space. So, if you have any thoughts on this, please share... [Edit] Perhaps the more important question is, if MVP is less popular in a SharePoint WebPart than in a custom application, why do you think this is (what factors contribute to this observation)? 回答1: It's probably not popular, but it

how to write stsadm -deploysolution correctly? sharepoint webpart deploying

梦想与她 提交于 2019-12-10 14:19:55
问题 I got a help from other Question: stsadm -o addsolution -filename {WSPFILENAME} stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL} my WSP file is here: C:\H\H\H.wsp url: https://test0emeamicrosoftonlinecom-6.sharepoint.emea.microsoftonline.com/ how to write this stsadm command correctly? 回答1: I will assume this is for SharePoint 2007. There are two STSADM commands that need to be run (SharePoint 2010 should use Powershell...STSADM is only there for backwards compatibility). Add the

sharepoint: Using a Content Editor Web Part this error occurred:“Cannot retrieve properties at this time.”

百般思念 提交于 2019-12-10 12:52:17
问题 I have a content editor web part. Whenever I edit the content and then click save, the following errors occurred: "Cannot retrieve properties at this time." "Cannot save your changes" How do you fix this? I tried googling it.. there are some similar cases but not exactly the same. I tried this link: www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_21975446.html and this one: support.microsoft.com/kb/830342 and this one: blogs.msdn.com/gyorgyh/archive/2009/03/04

Custom property editor for Web parts in SharePoint

杀马特。学长 韩版系。学妹 提交于 2019-12-10 10:57:58
问题 I have created a custom WebPart that has some configuration properties. The values for these properties are a Site URL and list name. I want to show a drop down list with all site names and lists for the selected sites. How can I get to show a custom editor component for a property in SharePoint? I don't want to get the default text editor. 回答1: You will want to create a custom ToolPart. Here is a guide: http://sharepoint-insight.blogspot.com/2008/10/sharepoint-creating-web-part-with.html

Sharepoint 2010 register control as safe through wsp

佐手、 提交于 2019-12-10 10:01:55
问题 I created a "Hello World" Sharepoint 2010 solution using VS2010. It contains just a feature, and a webpart containing a label. I registered the webpart as a safe control in the "Properties" window of the webpart, in VS2010. When I deploy my solution to my local server, everything works great! I can add the webpart to a page, and in the web.config file my control is added to the SafeControls list. When I install the same solution on a different server, I can see the webpart in the list of

How do you filter a SharePoint list with a text field?

不羁岁月 提交于 2019-12-09 20:56:36
问题 I have a SharePoint list, which is paged. I want to allow the user to enter a search string in a text field and then filter that paged list. Is there a way to do this with a Filter Web Part? 回答1: Welcome to StackOverflow! Add a Form Web Part to the page with your list view Click Edit -> Connections -> Provide form values to -> "Your List Name" Click Next Choose the column you want to be filtered in the List View Web Part Click Finish 回答2: Kit provided you with a straight forward answer. But

SharePoint 2010 Filter Web Parts

送分小仙女□ 提交于 2019-12-08 21:58:27
I cannot seem to get the SharePoint 2010 Filter Web Parts to display. I tried enabling the SharePoint Server Enterprise Web application features at the Site Collection level (Central Admin - Manage Web Applications - Select Web Application - Manage Features - SharePoint Server Enterprise Web application features - Activate) as well as at the Site level (Site Actions - Site Settings - Manage site features - SharePoint Server Enterprise Site features - Activate), but they still don't show up when I browse the list of web parts in the Filter Category. I think I'm enabling the correct feature sets

Pass Querystring parameter from SharePoint to Java Applet webpart

点点圈 提交于 2019-12-08 18:31:26
I have a SharePoint webpart page, with a parameter in the page Querystring (in the URL), and I also have a Page Viewer webpart (which effectively IFRAME's the specified webpage), which shows a Java applet. Is there any way I can get the parameter in the SharePoint Querystring to be recieved by the Java Applet ? The reason for doing a Java applet in a webpart is to allow a file to be dragged and dropped onto the Java applet, and the parameter shows where the file would be saved in the SharePoint Document Centre. I'd appreciate any and all suggestions. Cheers Nick Notes: The Querystring in the