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

learn more… | top users | synonyms (3)

1
vote
2answers
356 views

SP2010 Foundation SPServices Jquery Cascaded dropdown

I'm new to SharePoint dev and i've implemented SPServices Cascaded dropdown using Jquery. I managed to get it to work in a subsite of the top level site collection, without problems. But the problem ...
0
votes
2answers
100 views

Trouble updating list using a custom query

Alright, this is driving me crazy. Ive been searching for a solution for several days but it just seems impossible. To see my updated list with the new query I have too click twice before the webpart ...
0
votes
2answers
3k views

SSIS Import Sharepoint 2010 List to SQL Server

Is there a way to do this via code? How so? I simply want to import data from a list in SharePoint 2010 to a SQL 2005 or 2008 server. I know there are several 3rd party plug-ins that work, but I ...
0
votes
1answer
507 views

“Invalid file name” error creating folder programmatically

I get the following error when trying to create a folder: Invalid file name. The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have ...
1
vote
2answers
717 views

Convert an SPTimeZone to a TimeZoneInfo Object

I am working with the Exchange Managed API on SharePoint and in order to correctly get date/time information from the Exchange Managed API I need to pass it a TimeZoneInfo object when initializing the ...
0
votes
1answer
29 views

Deploying webpart on a single server

How can I deploy web part on a single server ? I have 5 front end servers in my farm and I have a solution file but i want to deploy web part to only 1 server I know i can add it using STSADM then ...
0
votes
1answer
105 views

SharePoint List add comments as formatted text

I'm not sure if this is even possible but thought someone must have done something similar. What I'm looking for is the ability for a user to enter a "comment" and that comment populate another field ...
0
votes
2answers
69 views

How to describe all content from the list in SQL

I must do Data Warehouse from my lists in Sharepoint. I need to connect to the Sharepoint and get all elements from the list and Show them in MS SQL Serwer 2008 R2. I need to show them in another ...
1
vote
1answer
465 views

How do I remove Skydrive and Newsfeed from the suite bar?

Using the following guide: http://blogs.msdn.com/b/findnavish/archive/2013/02/07/sharepoint-2013-customizing-suite-bar.aspx I've added some custom links to the suite bar, the main code from my control ...
0
votes
1answer
2k views

How do I programatically change the form template for an existing list

I've started creating all my SP lists in-code, because I find it to be way more reliable than using schemas. I can ensure lists on-the-fly, change existing fields during development, etc. And if ...
1
vote
2answers
270 views

AssociatedGroups collection of SPWeb?

I'm having a hard time understanding the purpose of adding an SPGroup to the AssociatedGroups collection (or its respective property bag item) of a site other than the group(s) appearing in the quick ...
0
votes
2answers
159 views

SPWeb.ProcessBatchData and checked out file

I'm using SPWeb.ProcessBatchData to update a bunch of items in an efficient way. However, when I try to update files that are in a folder that requires check out to edit, I get errors telling me the ...
2
votes
3answers
1k views

Deploying a webpart to multiple site collections?

Is it possible to Deploy a Webpart to multiple Site Collections, and not only to one?
7
votes
5answers
2k views

What is the difference between SPContext.Current.Web and SPContext.Current.Site.OpenWeb()?

My colleague found that some scenarios of working with SPWeb objects depend on how you obtain them. I'm not talking of impersonating with UserTokens - that another story. But at times when you write ...
0
votes
3answers
671 views

Finding all items in a list - slow performance?

I've created some code that identifies all of the site collections on a farm and then loops through all of the sites and lists within those collections . It's not ideal, but I've been tasked with it, ...
2
votes
1answer
395 views

Is there a way to only clear a specific item from the recycle bin?

I know I can empty the recycle bin for a site collection with the following: public static bool EmptyRecycleBin(string siteCollection) { try { using ...
1
vote
1answer
504 views

Custom digital signatures (or hash) on list items

I am working for a customer who needs to implement digital signatures (and I emphasize digital, not just electronic) on SharePoint list items. Due to the context of the project, I have the following ...
0
votes
1answer
127 views

How do I get a current content from URL field (or title field) in a workflow programmatically and convert to string?

I get a wrong value from field. private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e) { SSPFieldUrlValue fieldValue = new ...
0
votes
0answers
32 views

Best practice for listing all files in a document library?

The Microsoft Best Practices for SharePoint guide recommends not enumerating entire SPList.Items collections or SPFolder.Files collections. I have the need to generate a list of all files in the ...
0
votes
1answer
104 views

Cross-Site Collection query/cache

i wonder of this is technically possible. We have 17000 sites. Some people might have workflows in some of these sites with tasks assigned to them. Lets say a normal user can have up to 20 workflows ...
0
votes
2answers
1k views

setting cookie in custom webpart

I have a webpart and I need to set a cookie and read write from/to this cookie. I tried to read the cookie using Request.Cookies["Cookiename"] and setting the cookie using ...
1
vote
2answers
1k views

Checking permissions of a user that is in an AD Group within a SharePoint Group

I've been mucking around with checking permissions to a site (SPWeb) for a bit and it seems there is no straightforward way to do this. The SPWeb.DoesUserHavePermissions doesn't seem to care about ...
1
vote
2answers
88 views

Best practice for taking SharePoint data and putting it into an SQL database?

I need to do some reporting across site collections. In order to do this I intend on writing a service layer that crawls SharePoint and puts information about document libraries and files into an SQL ...
1
vote
1answer
180 views

Displaying a users calendar from Outlook, in SharePoint

I'm wondering if this is possible? Could this be potentially done by writing a web part to go to Exchange?
0
votes
3answers
2k views

How to redirect to another page using an event receiver?

I want to redirect to another page after an item is added to the list. I have referred many links and found the same alternative that is SPUtility.Redirect("https://www.google.co.in/", ...
0
votes
1answer
2k views

Adding to a document library using FileUpload

I am having major woes trying to add a file to the document library. I have modified a console app to use a FileUpload control. The major issue is that the file is not added to the library. Then I ...
0
votes
1answer
80 views

NullReferenceException from SPService.Delete()

I have a sharepoint service that inherits from SPDiagnosticsServiceBase. When I deactivate the feature, I have the following code: public override void ...
1
vote
3answers
791 views

Uploading xml to document library won't start workflow

When I upload an xml document to a document library, the workflow associated with that document library won't start. Here is my the code I use to upload: using (SPSite site = new ...
1
vote
1answer
68 views

SPWebCollection.WebsInfo.Description - always null

I am trying to get Description value from each SPWeb's SPWebInfo object: DataTable _websinfo = new DataTable("WebsInfo"); _websinfo.Columns.Add("Title"); _websinfo.Columns.Add("Url"); ...
0
votes
2answers
3k views

How to check if list item exists using item URL

At the moment I am trying to delete list item file using this code, SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new ...
0
votes
0answers
122 views

Copy document to another library after populating quick parts

Using a server-side solution, I am generating document and populating its metadata based on the content type. So far so good. The document gets generated and when opened, shows up all the fields which ...
2
votes
0answers
80 views

Cross Browser Local File Viewer in Content Editor Web Part

Is there a way to use the content editor web part (in SharePoint 2010 standard edition) to view files on a network (given an absolute path using and iframe) that will work in IE, FireFox, Chrome, ...
0
votes
2answers
506 views

Get SPUser object

I am trying this code to get SPUser object but it keeps throwing exception of user not found even when it returns true for DoesUserHavePermissions(..., does anyone know any fix or way around ? if ...
0
votes
1answer
272 views

“Could not load file or assembly” error when trying to call an external assembly, although it is in GAC and in the project package

I have been working on an empty SharePoint 2010 project in Visual Studio 2010 and everything works as it should until I try to call a certain external assembly - adding a reference to the assembly ...
0
votes
2answers
191 views

Prevent the `PublishingPageContent` value filtering when programmatically updating the field

If I save the html: <a href="tel:1-800-222-3334"> (800) ABC - DEFG </a> in the PublishingPageContent field it gets filtered down to: <a> (800) ABC - DEFG </a> How can I ...
1
vote
1answer
145 views

How to add field programmatically to list (without adding it to CT)

I'm adding here a field to the list, but it adds itself to a default content type, how can I add it to library but not to CT? SPFieldBoolean flagField = ...
0
votes
2answers
581 views

Generating the Word Document with SharePoint list data

I have an issue with exporting the list data from sharepoint to microsoft word (docx). Basically, the export succeeds, I can move the data from the list to the word document using xml (XElement etc) ...
0
votes
1answer
40 views

Is there any programmatic way to determine if a list has any relationships to other lists?

If list A has a SPFieldLookup to list B is there any thing in list B's SPList object to show the relationship with list A? While I can flip through list A's fields and find the relationship to List B ...
1
vote
1answer
354 views

How to programmatically add a custom html url to the Workflow Task's description column?

How can I update the description column of a workflow task in SharePoint 2013 using c# that will contain a html link that has to open in a new window. Any suggestions?
1
vote
2answers
319 views

Advice on starting development for SharePoint in C#

I'm about to start development of client-side application (C# using .NET 4.0) that connects to SharePoint. Mainly to download/upload documents. I've found out that there are several options: using ...
4
votes
1answer
724 views

How To Create New Item using ListFieldIterator Control

I am trying to use the ListFieldIterator control in my web part to render a list form. I have a button event that suppose to update the current item from the ListFieldIterator control, after I click ...
1
vote
1answer
522 views

Transfer Multiple people picker column's value from one site to another

I have a column of multiple people picker called Likes in 2007 sharepoint site which stores n number of people. Now i want to programmatically transfer it's content to sharepoint 2010 site. Problem ...
0
votes
1answer
49 views

Pattern for querying term store

Currently, I have a big and ugly helper class for getting data from the (SharePoint 2010) term store. I want to refactor this into something more robust and maintainable. Is there any design pattern I ...
0
votes
1answer
184 views

How to get Last Modified Timestamp of a file from sharepoint?

I am creating a Web Application in ASP.NET wherein I need to find out Last Modified Timestamp of a file (the path of file is given). But, I could not figure out How to do It. I have written below ...
0
votes
2answers
281 views

Intercept file open event and execute custom code

I'd like to intercept the event of opening a file/document stored on a SharePoint site (after a user has clicked on a file) and execute some custom code before synchronously proceeding with normal ...
3
votes
1answer
256 views

Add content to the editor

I've developed a ribbon button to Sharepoint inside Media tab. This opens a dialog where I list loads of content. On click I'm calling a function to close the dialog and it is supposed to insert some ...
3
votes
1answer
866 views
0
votes
0answers
1k views

AccessToken throws error : “Value cannot be null. Parameter name: uriString”

I have a provider hosted app that is hosted on Windows Azure. In the app project there is a custom ribbon button that when clicked goes to the web project on Azure. When clicking the button on the ...
0
votes
1answer
747 views

How to show a javascript alert and close the browser tab on button click [closed]

I have a web part with button that is clicked upon approval of a workflow. I want to add a JavaScript alert after performing all the button click c# code and then upon closing the alert the browser ...
0
votes
1answer
62 views

SharePoint app give web project (host web) access to documents

I have a provider hosted SharePoint 2013 app. In this app I have a custom ribbon action that when clicked goes to the host web (Default.aspx). On this page I want to create a hash for the selected ...