The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

3
votes
1answer
6k views

Feature activation error: System.InvalidOperationException: Operation is not valid due to the current state of the object

i have taken one List Email event receiver(Type is EmailReceived) and that event receiver attach with document library. when i am activate that feature got error. i have check on ULS Viewer. error ...
0
votes
1answer
1k views

How to add “Title field with link to Edit Menu” to a View using code-behind C#?

all I am trying to attempt adding Title with Edit Menu in SharePoint 2013 through code-behind. However, I am unable to do so. Below is my syntax I am using: StringCollection strViewFields = new ...
1
vote
0answers
77 views

Changing a file in a document library with SharePoint web services

I'm trying to update a file in a document library using the SharePoint web service. The "CopyIntoItems" method from the "Copy" web service I use to upload new files returns an error if I try to ...
1
vote
1answer
462 views

Which type of app can I publish to Office Store?

I want to know that which type of Apps I can add in Office Store for selling purpose? I created an AutoHosted App and add it to Office Store and after few days I got the error report saying that ...
2
votes
3answers
365 views

SP2013 Development Environment

Curious how people are setting up their development environments for SharePoint 2013. Is it cost effective to setup everything in the cloud? Seems not because Azure keeps charging you even if your ...
2
votes
1answer
3k views

How to check if user has read/write permission for a SPListItem in c#?

In my SP2010 visual webpart, I am checking permissions with the code below. Basically the current user is either an admin or a regular user. If they are an admin, they need to have permission to edit ...
0
votes
0answers
31 views

How to add to Sharepoint list editing mode false after value change

I have got a list with a lot of elements. I want to add to sharepoint list date which block editing when the date expired. When the date not equal the selected Value.
0
votes
1answer
212 views

XSLT list view webpart is not displaying data after adding view dynamically

I am customizing xsltlist view webpart using c#. I am able to get the results properly till I give the view name to the code. As soon as I give it it's not rendering the data. It's only displaying the ...
1
vote
2answers
404 views

Add hyperlink to custom web part properties

I would like to add a hyperlink to a custom web part which will take the users to a web page on a new window with the configuration settings for the web part. If I try and add a text property as ...
5
votes
1answer
649 views

How can i add multiple items to a lookup

I have a CSOM console app that uploads files to a library, then it creates a lookup field in another list and also adds lookups to the files in my library. The following code adds a single item in ...
0
votes
1answer
157 views

SP 2010 Visual Webpart - How to get all documents in a folder and sort them by caml query?

I am making a visual web part for sharepoint 2010. I have a SPFolder object and I want to get all items in it, but I want to sort it by a specific field. I want to do this by CAML query instead of ...
5
votes
1answer
2k views

How do I remove all users from an SPGroup object?

I have an SPGroup object populated, how can I remove all members from the group, so that essentially I start with a fresh group. I can't delete and recreate it, so I need a way to work with the ...
2
votes
4answers
2k views

SharePoint -access to path is denied

I am working in SharePoint 2010. My requirement is to create folder inside SharePoint layouts and create a file inside that folder. Also I need to access the file for a current logged in user. ...
2
votes
3answers
1k views

Sharepoint site throws exception on clicking save button after uploading a file

I have deployed an event reciever with item added event on a document library in sharepoint site. In item added event I am calculating the number of pages for the uploaded document and updated a ...
0
votes
1answer
61 views

Will the code be leaking

I've wrote here a code for SharePoint 2007 to modify few items through out of all site collections in web app, my question is the code written good, or is there a leak somewhere, and i could improve ...
0
votes
2answers
339 views

ContentType.FieldLinks.Add() issue with hidden and required

I have a feature that does the following in the feature activation Code : Creates a new SiteColumn (Type=Text, Hidden=False and Required =True) Set the french version of the Name (using ...
4
votes
3answers
110 views

best way to store property of a site

I have a site called Exhibitions that contains many many subsites each of which is an individual exhibition (with pages, images etc). I would like to attach to each of these subsites a property which ...
1
vote
1answer
375 views

Looping through all the document libraries and modify the items

I have here a piece of code which loops through the all site collections and webs and lists to find particular and modify some items: foreach (SPSite site in webApp.Sites) { ...
0
votes
2answers
724 views

Uploading an InfoPath form programmatically

I know how to upload the published xsn InfoPath form, but when I try to open it, the form can't find its code behind assembly dll. Does anyone know how to add that? I know it gets put in hive 14 ...
0
votes
1answer
520 views

How to Programmatically load a SPList from an Generic List…?

After running the program... I check my site and only see city5. I also have a console app that undoes all below. The foreach loop only works for the last item. Tying to load all 5 cities... ...
0
votes
1answer
331 views

content query webpart, show document libraries items only

The following code adds a cqwp, and it works almost fine. When I go to design view, the type is Assets Library instead of Document Library. What am I missing here? #region Last updated documents ...
0
votes
1answer
394 views

How can I access/set stsadm properties from code?

I'm trying to set the ChangeLogRetentionPeriod stsadm property from code, which is normally set from the SP powershell. What is the best way to go about setting this property from code? Background: ...
4
votes
1answer
8k views

CAML Query Lookup/Choice Value Type as Text

So, here is some lines of code that i write to retrieve data from Sharepoint list using CAML query. string qryCaml = string.Format(@"<Where> <And> ...
0
votes
1answer
24 views

COM ListItem not updating

ClientContext cl = new Microsoft.SharePoint.Client.ClientContext("http://" + "mysharepoint" + "/" + SubWeb); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("myuser", "mypass", ...
0
votes
0answers
38 views

Problem in mail web part

I wrote this code to send mail but there are exceptions in running it. public string SendEmail(string mail, string password, string to, string subject, string body, string filePath) { ...
0
votes
2answers
4k views

How to programmatically check if the current user has permissions to a site collection?

Given the URL of a site collection root, plus the current logged in user, I need to know if the user has permissions to at least see the welcome page. If there is no Welcome Page set, then I need to ...
1
vote
1answer
1k views

Customize SuiteBarLinks without removing NewsFeed, SkyDrive, and Sites

I want to customize the suitebar links and I already did with a delegate control the only thing is that it removes the existing links, newsfeed, skydrives and sites and I want to keep them public ...
0
votes
1answer
110 views

CAML query, only want to render days in Calendar

I'm new in CAML. I try to learn it. I want to render a day's on ASP Calendar. Have got a list with 5 colums/fields: Kontrakt | Pracownik | Dzien | ID | Procenty ...
0
votes
1answer
298 views

Get reference to the document library sharepoint 2013

I want to get reference to document library in code using SP 2013 by url, I am trying the SPWeb.GetList(url); but it works for lists only. any help?
0
votes
1answer
55 views

Developing a custom NewForm

I have created a custom layout in _layours/PhoneBook/createform.aspx and then wrote the following code to run upon activation: private void newAddFormForMembers(SPWeb web) { SPList ...
0
votes
0answers
22 views

Where in MS SQL Server 2008 R2 are list content [duplicate]

Where in MS SQL Server 2008 R2 could I find out a content from all lists which I have got in my Site Colection. If I oppen MS SQL Serwer 2008 R2 I see a lot of data bases, but I don't know in which ...
0
votes
1answer
40 views

Sharepoint not Installed

Hello I'm trying to create a sharepoint 2010 project. I have Sharepoint as well as Visual studio 2012 installed on a VM, but when i go to create a new sharepoint project it tells me "Sharepoint not ...
0
votes
1answer
111 views

Creating directory structure from custom ribbon action

Environment: 2013, VS2012 I'm trying to develop a custom ribbon button for a document library that creates a folder (ie: a new project) and populates it with a hierarchy of sub-folders. I have some ...
1
vote
0answers
151 views

how to update Document in doc set

I've been trying to update the file name of a document inside of a doc set. I continually get either a "Invalid data has been used to update the list item. The field you are trying to update may be ...
0
votes
1answer
563 views

Order of web parts programmatically added to SharePoint page

I am adding multiple list viewer web parts to a SharePoint [web part] page using the code below: // Create the object SPLimitedWebPart Manager SPLimitedWebPartManager WebPartMgr = ...
0
votes
2answers
381 views

how to add items to managed metadat

I've added an new term in the 'taxonomy term store'. The new terms show in the columns that are using managed meta data. I'm querying the Lists/TaxonomyHiddenList/AllItems.aspx list for id's, but ...
0
votes
2answers
698 views

How to add a calculated column to list view programmatically?

I have created a SharePoint feature where I have added a list named "Employees". I have added a Content Type "Employee" and added to it some columns like "Vacation Days Taken", "Vacation Days ...
1
vote
0answers
595 views

SPListItem.Update Not working

So I have this really simple function which updates a couple of fields on two different lists (one is a document library) The thing is on the document library does not updates any of the fields I need ...
0
votes
1answer
147 views

How to set the rowlimit in content query webpart by code?

I need a content query web part that returns me the last 10 modified or added documents into any document library on that specific website. How can I add the rowlimit by code? ContentByQueryWebPart ...
0
votes
0answers
61 views

Error in adding post to a blog programmatically

I used linq to insert post into blog programmatically but when i clicked button error is appeared
0
votes
1answer
50 views

Possible to implement continuous integration against SharePoint online?

I have implemented CI on SharePoint server projects without a problem (so to speak). Can this also be done for SharePoint online?
0
votes
1answer
193 views

Editing SPFieldMultiColumn and saving updated value

I can get a reference to my SPFieldMultiColumn var documentLinkFieldValue = listItems[i]["DocumentLink"] as SPFieldMultiColumnValue; var oField = listItems[i].Fields["Document Link"] as ...
1
vote
1answer
393 views

Converting date from utc to regional setting (cultural info) of the site

I have a question, basically i have a date time which is by default in UTC, how do i programmatically convert it to a correct date time in regional settings of the site collection / or user?
2
votes
2answers
10k views

Downloading files from sharepoint programmatically C#

I would like to know what are benefits/drawbacks when using either of these methods for downloading a document from Sharepoint using Microsoft sharepoint library public void Download(string ...
0
votes
1answer
136 views

Pass user credentials to JSP website from SharePoint website

I have developed a JSP website. I also have a SharePoint server based website. Let's call my JSP website to be www.xyzjsp.com and my SharePoint based website to be www.mySPwebsite.com How can I ...
0
votes
1answer
107 views

Best way to update 200 items on a list [closed]

Situation in a VS2010/SP2010 site: List A with main items List B with subitems, having a lookup column that points to List A ID There are about 200 subitems for each item The Page where users edit ...
0
votes
1answer
47 views

Customizing the SharePoint CRM List Part

is it possible to customize the CRM Listpart that is delivered by Microsoft. I would like to add a dropdown listbox to the presentation in CRM based on the documenttype in the library.
0
votes
2answers
158 views

Search core query webpart and custom xslt with paging or other approach

I have an issue, basically I created a custom web part which inherits from SearchCoreResults. This webpart searches all the possible tasks across WHOLE sharepoint and shows them if they are not ...
7
votes
2answers
1k views

Anonymous access: Add an Item to List without allowing to View the List

I'm creating a 'Contact Us' webpart with form to allow anonymous user to send a message which will be added to a SharePoint List. However I cannot grant the anonymous user the permission to Add ...
0
votes
2answers
230 views

Have got a problem with making a CAML Query by String contains “&”

Hello i have got a problem with making a CAML Query by the string which contains sign "&". I have Got a "L&M" firm and when I choose it on DropDownList it make me error: How to use this ...