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

learn more… | top users | synonyms (3)

0
votes
2answers
161 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
682 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
398 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
519 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
132 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
33 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
107 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
89 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
185 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
799 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
4k 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
125 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
82 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
516 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
286 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
198 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
150 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
592 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
365 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
327 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
741 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
527 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
188 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
303 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
270 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
892 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
787 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 ...
0
votes
1answer
2k views

'Attempted to perform an unauthorized operation' while calling SocialDataService.asmx

I am calling methods of the SharePoint webservice - Lists.asmx and SocialDataService.asmx via a C# application. While calling methods of the Lists.asmx works perfectly fine, methods of the ...
1
vote
1answer
174 views

Update existing word document from SharePoint via code

I'd like to insert a line of text into an existing Word document that is stored in a document library. Would this be possible to do through an event or workflow? If so, how would I go about ...
1
vote
1answer
1k views

Will code created with 32 Bit SharePoint Designer 2013 be readable to another computer with the 64 Bit version of SPD 2013?

One of the developers on my team is installing SharePoint Designer 2013 on a machine with 32 Bit office. He attempted to install the 64 bit version and this error appeared: Got we can't install the ...
0
votes
2answers
202 views

XmlFormView and QueryStringFilter

I'm working on a project to automatically generate some document libraries and pages. One of these pages I have to put a infopath form webpart and a TextFilter to send to this form some information (a ...
1
vote
3answers
525 views

spsite exist or not

How can i check if spsite exist or not ? I have a web address www.portal2010.com/internalportal/employeesites Now when i try to open web and spsite it opens upper level spsite instead spsite mysite ...
0
votes
1answer
5k views

How to get a document library URL from c# in visual web part?

I'm making a visual webpart in a sp2010 environment. I am trying to get the document library URL. I have this code so far: My variables are not getting the right values. Like the libraryURL, ...
0
votes
1answer
5k views

SharePoint 2013 Event Receiver on Custom List Definition not firing

There is custom list definition and I have attached an event receiver on ItemUpdating of list instances from the custom list definition. For some reason, the Event Receiver doesn't seem to fire at ...
0
votes
1answer
111 views

Access all workflow tasks without being assigned to for validation

I have a request approval sequential workflow that has many tasks created upon approval. For each approval, Im using a custom webpart that shows different panels based on the status of the request. ...
0
votes
1answer
463 views

Sharepoint 2013 deployment issue

I have created my custom solution in Visual studio 2010 for SharePoint 2010. Now I want to deploy that solution on Sharepoint 2013. How can I deploy that? When I am deploying my solution through ...
1
vote
1answer
2k views

SharePoint app get path of selected document

In a SharePoint app i have a custom action in a document library that navigates to an .aspx page. How do I get the full path of a selected document in that .aspx page? <CommandUIHandlers> ...
0
votes
1answer
126 views

SPFieldLookupValue and unboxing

I have a general question around unboxing vs parsing of the identity property on an SPFieldLookupValue. Let's say, we have a call to a list and we get a reference to the a lookup field: // call to ...