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

learn more… | top users | synonyms (3)

4
votes
2answers
3k views

SPFolder vs SPListItem

I've trying to build a tree view which will show a Sites Lists and folders. This is an external application so I have to communicate with WSS3 through web services. Site |-List | |-Folder | ...
0
votes
2answers
358 views

How to find out the logged in user in workflow?

I have a sequential workflow in SharePoint 2013. I want to update a list item field with the name of the user who modified a specific workflow task. How can I get this done in c#?
0
votes
2answers
689 views

Remove Leading and Trailing Spaces from Rich Text Box using C# code

I am using a MultiLine Rich Text box in my custom list, now I want to remove leading and trailing spaces in the MultiLine Rich text box's input. I have written an List item event receiver with ...
0
votes
0answers
62 views

How to validate multiple fields with c# custom code on button click before submitting

My main goal here is to pop up a validation box that lists which fields have not been populated(still empty) before allowing the user to submit. I know you can use the method built into InfoPath but ...
7
votes
1answer
2k views

Programmatically add quick launch link to a modal dialog box

I have implemented a feature that once activated adds a heading called Home, and a link underneath to a NewForm.aspx like such: // Add Home node var mainListsNode = new SPNavigationNode("Home", ...
7
votes
1answer
724 views

Client Object Model SystemUpdate

I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist? Another solution would be to disable the ...
6
votes
4answers
18k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
6
votes
1answer
2k views

Attach a file to the list item

I attach a file to the list item when it is updating and when new item added. Additional condition when item updating - if the file already exists, remove it and replace the new one. I receive events ...
1
vote
2answers
156 views

Retrieve all site collections

I want to retrieve all site collections in an Online tenant through Visual Studio: I can do it via Powershell: get-sposite on-premise server : Get-SPSite on-premise again: var sites = ...
4
votes
1answer
59 views

How to programmingly create a “Link to a Document” in an ASP.net web application?

I have a asp.net web application which requires to upload files to a SharePoint document library. I got that working. Now, I need to know how to code using C# in my web application to create a "Link ...
0
votes
2answers
121 views

Create a new site collection c#

I'm trying to create a new site collection in Sharepoint Online tenant with Visual Studio. 1) I found http://msdn.microsoft.com/en-us/library/office/ms448720(v=office.14).aspx which says that the ...
0
votes
1answer
22 views

Wrong hyperlink is generated for custom central administration action group image

I have a custom action group deployed to central administration; something like "Contoso IT" in this picture: The problem is that that for some reason, the hyperlink for "Contoso IT" (the title) is ...
6
votes
1answer
332 views

Programmatically set a WebPart title to a $Resources value

I need to programmatically add a web part to a page where the title is using a $Resources:Filename,Key; string. I know I can use SPUtility.GetLocalisedString() to retrieve the correct value (and loop ...
0
votes
1answer
25 views

What permissions are needed to develop apps on SPO 365?

I'm new with SPO365, but from what I read, to deploy and test apps I need a developer site (site collection), but I don't have access to create it, neither access to Central Admin. Does my developer ...
0
votes
1answer
82 views

Implement multi select lookup using listbox control in aspx page

How can I implement the multi look up select list items functionality in SharePoint using asp.net C#? Please help me with some code, I am using two list boxes and have added a add remove button on ...
0
votes
0answers
5 views

Timer Thread Method not executing properly

I have a method that refreshes a grid view, I need to run this method on a page every 60 seconds. To do so I have implemented the following timer thread: var timer = new System.Threading.Timer( ...
0
votes
2answers
35 views

How retrieve custom fields only when using SPListItemCollection?

Hi with following code I am retrieving a DataTable from a List: using (SPSite site = new SPSite("http:...")) { using(SPWeb web = site.OpenWeb()) { ...
0
votes
2answers
2k views

Error when using ItemAdded event handler to update columns on newly uploaded document

I have an ItemAdded event handler connected to a document library, in order to automatically populate certain fields when a new document is uploaded: public class AutoPopulateDocumentFields : ...
0
votes
2answers
62 views

Linq get Distinct or first from multiple group

Ok, I'm not understanding something here with what I am attempting to query here. I have a list like the following. Title Subject Content Date ...
0
votes
0answers
14 views

Translate GUIDs to library, list, webpart, or component name

I have a list of GUIDs used but I don't have a reference to tell what each guid is for. Could I programmatically convert these Guids to something more useful such as Guid ==> "Document Library" ...
1
vote
2answers
3k views

Trying to get user's manager: Getting SPServiceContext with SiteSubscriptionId of {00000000-0000-0000-0000-000000000000}

I am trying to get a user's manager with this code: SPSecurity.RunWithElevatedPriviliges(delegate { SPSite site = new SPSite(SPContext.Current.Site.Url); SPServiceContext context = ...
0
votes
1answer
136 views

Programmatically (C#) set date field to blank in 2010

I have tried setting my date field to an empty string ("") and setting it to "01/01/0001". Both returned the error "String is not formatted as date time". I have several thousand items across a few ...
0
votes
1answer
39 views

Developing Apps in Sharepoint

I want to learn how to develop apps for SharePoint. I created a new developer site collection. When I try to install NAPA I get the following message "Sorry this app is not supported on your server." ...
8
votes
2answers
113 views

How do I delimit Property bag values so search treats them as individual searchable words?

currently I'm using the property bag with values that are comma separated something like: web.AllProperties["fruits"] = "bananas, apples, oranges, tomatoes"; Currently search is treating them as one ...
0
votes
1answer
73 views

CAML query where date field is greater than another date field

Is it possible to write a CAML query that uses another field as the Value part of the filter? For example in SQL it would look like this: WHERE Field1 > Field2 This was by best guess but it is not ...
0
votes
1answer
46 views

color picker in custom webpart properties

I want to have custom color picker in web part properties to let users select colors for headings. Any idea how to achieve this.
0
votes
1answer
378 views

List Onload event

What I want to do: I have a custom list that contains a lot of items. When an user loads the list, all items of his view should be checked. If there is a special value in the listitem a notifiaction ...
1
vote
0answers
27 views

Replace default List View Web Parts

As the title explains, I am trying to remove the default Web Parts that are associated to list items and replace them with my own custom web parts. Here is what I've attempted so far: SPList list = ...
0
votes
1answer
24 views

how to check if domain group has any kind of permissions to web after ensure

I am adding user to web, he might be added or might not be. I want to only give him permissions if he already doesnot have/has. How can i check. SPSite site = new SPSite(webUrl); ...
0
votes
3answers
65 views

Building a Sharepoint project - the big picture

I'm a Sharepoint beginner so my question could be naive but I wasn't able to find any answer. Could someone give me a brief guide about developing a complete, enterprise class solutions in a shorat ...
1
vote
1answer
122 views

groups.getByName(groupname) is undefined

I have copied some snippets of code from here to test if a user belongs to a certain group, I am using Sharepoint 2010, however I am getting an method is undefined error. I am making sure that sp.js ...
2
votes
0answers
81 views

Is it possible to dynamically hide specific custom retention actions in the dropdown menu?

I'm dynamically creating custom retention actions for information management policies. My problem is that in the retention action dropdown menu, I would like to show only some custom retention actions ...
2
votes
4answers
3k views

How to Password Protect a SharePoint Object (Reassuring High Level Users That its secure)

Edit to clarify: The purpose of this isn't to replace SharePoint security or to add some extra super security or about trust in SharePoint, it is instead to consider something that is very much ...
3
votes
1answer
138 views

Does adding custom code to native SharePoint aspx files automatically result in an unsupported state?

I want to add some custom code to one of the native SharePoint's aspx files in the hive (14\TEMPLATE\LAYOUTS). Specifically, I wish to implement a Page_LoadComplete event that does some additional ...
1
vote
1answer
33 views

Compare Credentials to his one's own login credentials

I would like to compare the current user credentials with my UserAccount and if they are identical then I would like to have an alert, but It doesn't work. I don't know why.I hoept that you can help ...
0
votes
0answers
42 views

This Webpage Is Not Available With SharePoint

I've create a new Cloud Business App for SharePoint in Visual Studio 3013. I've added no code or altered the project in any way. The only thing I've done is created the Cloud Business App from one of ...
0
votes
2answers
41 views

Move SharePoint list items into folders that exists in the same list programmatically?

Respected members of StackExchange, kindly help me with your kind suggestions to solve the issue. I have +20,000 items in a SharePoint list that i want to move into the folders that also exists in ...
2
votes
2answers
30 views

Complete new tasked with creating a SharePoint website… where do I begin?

I know a little bit about what SharePoint is (some kind of website designer kit that lets users design their web pages), but that's about it. I am tasked with assisting the creation of a website ...
0
votes
1answer
34 views

Why does client side .js or JQUERY sometimes not function at all and at other times does function?

SharePoint 2010 Enterprise on our network. Same site, same page, same time of day, same code behind yet sometimes our client side code functions and sometimes it doesn't. when pulling the custom ...
2
votes
2answers
1k views

Custom SharePoint 2010 Timer job not running

I have created a custom timer service to create a list. It's scheduled in minute using FeatureActivated event. I was able to globally deploy the solution. But the my timer job is not running. It's ...
0
votes
1answer
582 views

Create TermStore (SPServiceApplicationProxy) Programmatically

Is it possible to create a new custom TermStore Programmatically? something like SPServiceProxy proxy = SPFarm.Local.ServiceProxies.Where(s => ...
2
votes
2answers
567 views

Sharepoint - Office 365 login on PHP

I'm trying to implement a simple login with Sharepoint on a PHP existing application. I have read many information (some related to Client side login -but only works for windows AFAIK-) and forums ...
2
votes
1answer
24 views

sharepoint development environment

Does Microsoft provide free online development environment for SharePoint 2010? If yes . Please can you share the link and how to access it Even if access is limited to one month or so...
0
votes
1answer
170 views

How to get specific list items in Document Library subfolder?

I'm attempting to retrieve items from a subfolder in a document library. I must get these items where value is 'Like'. How can I do this via C# using the SP object model or by CAML query? this is ...
2
votes
2answers
308 views

Sharepoint multi-column validation

I've got a custom list that contains multi collumns. The validation is made by a custom contenttype. Now I want a combination of two columns to be unique. Until know I did not found a way to solve ...
3
votes
2answers
788 views

Attach ListItem to TaskItem

I've created a custom approval worfkflow for an listitem. Now I need to see the values of the item in the taskitem. So I think one way would be to attach the ListItem to the TaskItem. Does anybody ...
0
votes
1answer
38 views

SP13: Document Library Check-in/out settings

Recently our network went down and after it came back up a few of the document libraries lost its functionality. Prior to the shutdown, when an end-user checked out a pdf and made changes to the pdf ...
0
votes
2answers
35 views

how to give popup for a panel?

I have panel control in my web part. I used some 10 controls in this panel with in a div so I need to show this div in the popup .so which I need to keep in popup either with panel ID or div ID. ...
0
votes
0answers
26 views

How to export images from PPT to SharePoint Library

I am using below code to export slides as images from a PPT - Microsoft.Office.Interop.PowerPoint.Application appPpt = new Microsoft.Office.Interop.PowerPoint.Application(); ...
3
votes
1answer
56 views

Multithreading works with a self made parrallel loop, but not with the native one

In a project, I have a quite complex operation that takes few seconds to execute. The operation requires to work with a SPListItem object. Because my operation has to be executed with a bunch of ...