sharepoint2010

Suggest best way to do this approval workflow for share point form library to send email to the user.

I have created the Info path form. Once the new form created i need to send the email to users which the user selected in the people picker field. Is that possible to do this using Designer,or VS 2010. Give some reference to do this. ...

SP2010: How to create a new button in the ribbon

I have some problems adding a new custom button to the ribbon. As explained in the sharepoint 2010 SDK (How to: Modify the User Interface Using Custom Actions), i've created a visual studio project and copied the xml code which should create the new button. Here is the code: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http:/...

Replace default search box in SharePoint 2010 with custom one

On every new SharePoint 2010 site you get the default search box (In the MasterPage) that allows you to just do a normal search. I would like to replace this with some item that will allow you to pick Advanced or People Search, something like this......... Is it possible to replace/alter the default search box in the MasterPage? ...

how to include webpart content in search(sharepoint 2010)

Hello , I added a custom webpart . After indexing and executing a search, the content displayed in the webpart is not included in search results. So I am not able to search for this custom content. How can I include the content of custom webparts in my search results? Thanks in advance ...

Maximum control number of master pages in sharepoint 2010

Hello, As developers know, SharePoint 2010 master pages can contain maximum 200 controls. I've searched arround a bit, but did not get any information or suggestion about this problem. Anyone faced with this problem before? I call this is a problem, because I need to put more than 200 controls. Do you have any suggestion about how to pu...

(401) Unauthorized Error working with Client Object Model

Hi All, I'm tryiing to retrieve a list of document libraries from a sharepoint site, here is my code, this is a windows app public string[] GetDocumentLibraries(ClientContext ctx) { Collection libraries = new Collection(); try { //Getting the site from the SP context ...

Bing maps control not rendering properly in IE7 - SharePoint 2010

I've created a SharePoint 2010 WebPart that pulls lat/long info from a list and displays pins in a map. I'm having a problem where the map does not render properly in IE7. Even when I'm not using any pins and just showing a basic map. Here's a screenshot: Screenshot I've simplified the code as much as possible and am still getting th...

How can I make a view(SPView) with data will be filtered by filter condition form url parameter?

Example, I have some groups and some items belong to these group. Now, I want to list items of arbitrary group by url like http://sp2010/Lists/items.aspx?groupid=1. I maked a SPView like SPView view = SPList.DefaultView; view.Query = "<Where> <Eq> <FieldRef Name=\"Group\" LookupId=\"TRUE\"> ...

Custom control no being bundled in the WSP file

I have a Sharepoint 2010 feature that contains several custom actions in it. I added a Custom Control to the elements xml and a new ascx file in the controltemplates folder. Pretty simple. However, I can see that the ascx file is not inside the bundle file after I package the solution and get the WSP distribution file. The modifications ...

what does the Lookup field mean in SharePoint

I am quite new to SharePoint,sometimes when I read book or blog, I come across "two lists in SharePoint ,with one list performing a lookup on the other list.".What does the lookup mean here , can anyone point me some tutorial to understand this? ...

Configuring Sharepoint in .net?

Can you script SharePoint configuration (as in settings done in the "Configure your SharePoint farm" and "Reporting Services Configuration Manager") through .Net ? Does anyone have any links that might help ? ...

How do I make a list item read-only

I have a list (assume an issues list) and there is a workflow associated with it. The workflow can adjust the status column of the item to "Closed". Once an item's status is closed, I want to make it read-only so that noone can edit the item or create another workflow instance for that item. What's the best way to achieve this? ...

How can reverse engineer the list or site definition to caml in SharePoint 2010?

How can reverse engineer the list or site definition to caml in SharePoint 2010? Any tools availble? ...

Sharepoint 2010: best practice to migrate legacy data to sharepoint list

I have to migrate some legacy data from stand-alone sql server database to sharepoint list. I'm going to use programmatic approach and write a code that communicates with sharepoint list asmx web service. Are there some "data transformation wizards" to simplify such a task or a better approach to port legacy data from sql server databa...

SP2010: how to create a list view which filters a lookup field

As the title says: in sharepoint 2010 i need to programmatically create a view which lets me filter on the items on a list (a list of person). In this person list i have a lookup field which refers to another list (projects): i need to show only the people that work on a determinated project (passed as a string) I have created an exampl...

SharePoint 2010: edit a view programmatically

As the title says, i need a way to programmatically edit an existing view of a list in sharepoint 2010. I have found a lot of examples about creating a new view: SPList documents = web.Lists["Documents"]; StringCollection fields = new StringCollection(); fields.Add("Type"); ...

SharePoint 2010: custom masterpage for programmatically created subsites

What’s the best way to add a custom masterpage to a subsite that is being created programmatically in a feature event receiver? Each of these 50 subsites gets its own “_catalogs/masterpage”, so I have a feeling that Elements.xml for the root-site’s Module/Elements.xml is out. More feature receiver code? PowerShell post-deployment proc...

How do i deploy SharePoint 2010 Solution (WSP) to SharePoint 2007

Hi i know its a bit sarcastic but i have a simple scenario here, we worked on a visual web part for SharePoint 2010 using VS 2010; it was nice and smooth so we decided to include it on one of our old projects. First scenario came to my mind (as a developer) to Copy code files from VS 2010 solution to VS 2008 solution, using VSeWSS prepa...

SecurityException when accessing SPFarm PropertyBag from WCF service hosted in SharePoint

I've hosted an WCF service in SharePoint 2010 (basicHttpBinding) using this tutorial. The assembly is deployed to the GAC and contains the WCF service and a timerjob. Both call the same method. The timerjob works successful. But when I call the method of the WCF service, I get an exception, that it can't write a property in the SPFarm P...

Custom SharePoint 2010 WCF Service - How to set MaxReceivedMessageSize parameter

Hi, I have developped a custom WCF Web Service within a SharePoint 2010 Visual Studio empty project. My web service is working well. The problem is related to the size of the request I can send to this web service. I have realized that is something around 300Kb. If I go bigger than that, the service/client is sending me an exception. ...