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

learn more… | top users | synonyms (3)

2
votes
1answer
895 views

Delegate control with class.cs

I searched on google for some clarifications but I didn't find the answers I've been looking for. I want to deploy a delegate which would perform some custom functionality. That is why with a ...
1
vote
0answers
380 views

Sharepoint 2010 - item field updating not working on a document library

I have this code here from a webpart that creates a treeview from a document library. For each item in the list it will create two child nodes called "Up" and "Down". When you click up, it should ...
0
votes
1answer
837 views

ItemUpdated Event, After or Before Property Title name is null

No matter what I do, before and after for title are always null. This is an item updated receiver in the meetings or event list ![public override void ItemUpdated(SPItemEventProperties properties) ...
1
vote
2answers
931 views

Change Url of existing site by code

I have a meetings list, when a new event is created a subsite is created with an specific format. The list allows to change the date of the events, but when this happens the name of the subsite and ...
0
votes
1answer
914 views

close infopath form with managed code [duplicate]

Possible Duplicate: How to close an infopath form in C# style? I am trying to close the browser (aka where infopath form is loaded) with managed code. I tried some for variation below but ...
1
vote
1answer
922 views

Read selected Item from List

I have a code that read all items from List Airtports. I want to get selected Item from List. How can i change below code to get it done, Please help function ReadListItem() { var listTitle ...
0
votes
1answer
418 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
3answers
503 views

How to check if a item in a custom list have a property or not

I added a check Check Box to a custom list library form which works well with new files uploaded and I can check the property Value by bool.Parse(listItem.Properties["columnName"].ToString()); but ...
0
votes
2answers
6k views

How to add specific SharePoint Group to List permission with c#?

using (SPSite site = (SPSite)properties.Feature.Parent) { using (SPWeb web = site.OpenWeb()) { if (web != null) { web.AllowUnsafeUpdates = true; SPList list = ...
0
votes
3answers
3k views

How to close an infopath form in C# style?

I tried XDocument.View.Window.Close(true); but it tells me "The name 'XDocument' does not exist in the current context" I even tried thisXDocument.View.Window.Close(true); but still same error. What ...
2
votes
4answers
632 views

What are the dangers of disposing of SPWeb when it's automatically disposed of?

In some cases such as: using (SPSite site = new SPSite(@"http://sitecollection/")) { SPWeb web = site.RootWeb; } you don't need to dispose of the SPWeb object because it is disposed of ...
3
votes
5answers
3k views

Attachments to Documents

I have a document library. I want to be able to add supporting documents to a document(I am using a custom content type based on document). Ideally I would like to add them as attachments so ...
2
votes
3answers
614 views

OWSTimer.exe suddenly disappeared

I am testing/debugging this Timer Job, while deploying my solution again and again using WSP Builder, I manage to hide OWSTimer.exe so now I cant find it to attach timer job to and debug my code, ...
0
votes
0answers
300 views

Adding a SharePoint list to an Update Panel

I am trying to add a SharePoint list to an AJAX Update Panel. I am doing this by adding a ListViewWebPart to the Update Panel. My code: SPList fcsRequestList = web.Lists.TryGetList("Requests List"); ...
4
votes
0answers
84 views

Can you add comments to an append-only field in a list in Sharepoint 2010 using C#? [duplicate]

Possible Duplicate: Can you programmatically add comments to an append-only comment field in a custom item list using C#? Posted on stack exchange first, then I found this Sharepoint ...
1
vote
4answers
989 views

Linking one-to-many (Employee to Salary History) lists in SharePoint

Here is my issue: [Edit]: Alright, this is almost turning into a separate question at this point...my apologies. To cut right to the chase, here is my business requirement. I have an Employee record ...
1
vote
2answers
752 views

Add field to content type in specific position

THe code below is working perfect, however I need the new field to be in the 5th position, and not at the end in the forms. Any idea how? private void UpdateDossierContentType(SPWeb parentWeb) ...
2
votes
1answer
560 views

how to get Custom List Item Property

I added a new column to Sharepoint Custom list which is boolean type, now each time I upload a item to list, it displays that column to check or leave it blank, by default its checked, I wanna access ...
0
votes
1answer
310 views

Custom Field PropertySchema Type=User

I have a custom field in my SP Project. In my .xml file, I have a propertySchema and a user field inside it. Currently the field does not accept multiple users/groups. How can I change that? I ...
1
vote
3answers
2k views

Can you programmatically add comments to an append-only comment field in a custom item list using C#?

I understand that you can access comments in an append-only field like: public string retrieveComments(SPListItem item) { SPListItemVersionCollection versions = item.Versions; ...
6
votes
2answers
7k views

Create New SharePoint Group Programmatically

How can I create a new SharePoint group by code?
1
vote
1answer
520 views

Is it Possible to use PerformancePoint Services in FBA Site?

I have followed this article to activate Performance Point Services in Central administration. I have activated all the features of Performance Point Service in SiteCollection level as well as Web ...
1
vote
1answer
436 views

SPJobDefinition Execute Method isn't overriding

I built a custom Timer Job on activation I was able to debug it and it was going through Execute method I am overriding but suddenly its not overriding anymore. Code is here: public class ...
1
vote
0answers
562 views

Adding/removing items to/from a DropDownChoiceField

I can't seem to manipulate the items displayed in a DropDownChoiceField I have that's tied to a field on the custom content type with big, really frustrating problems. This field is only visible in ...
0
votes
2answers
202 views

How to check if Item Deleted in a list was the last item (in a EVENT Receiver)

I want to check If deleted item is the Last Item deleted in the List in following method, public override void ItemDeleted(SPItemEventProperties properties) { } I know I can get web url using ...
3
votes
3answers
2k views

How to create Site (SPWeb) on Sharepoint Online

I have a problem creating Sites on Sharepoint Online. The code that works on-premise do not work on Sharepoint Online. I do not want to bother you with the code, i just want a clean start. So my ...
1
vote
0answers
792 views

SP 2010 Windows Authentication Default Login

I want to be able to use a simple HttpModule to catch visits to a sharepoint site that don't automaticly pass windows authentication and log them in as a default windows account. I want it to be so ...
0
votes
1answer
1k views

Event receiver for a custom List

I created a custom Event Receiver using WSP builder, and in elements.xml file i have given the ID of list which i find in elements.xml of List definition of particular list. I also activated the ...
1
vote
2answers
729 views

Add lookup field to list from a RootWeb

I have the site collection rootweb called Main Site. I have many subsites called according to the year, 2012, 2011, etc. In the rootweb, there is a list called Products. In the subsites there is a ...
0
votes
1answer
189 views

Timer on a SharePoint List

I came across a very interesting scenario I need a Timer for Item added Event receiver for a SharePoint List and this list is being added to hundred of Webs. Now each List needs a timer job, which ...
0
votes
1answer
371 views

Adding column to a SPList

Normally I create a New List if I want to add an additional column to a List that already exists in a web. Wondering what would be the best option, should I create a new list with additional column ...
1
vote
2answers
2k views

Error using SPRequest when the SPWeb is already disposed

Is this correct way of using the SPSite and SPWeb and the SPList. private SPList list; pulic void getList() { using (SPSite site = SPContext.Current.Web.Site.WebApplication.Sites[0]) { using ...
0
votes
1answer
346 views

Check if any user is currently logged in

I have a userID/userName, and I want to know if that user is currently loggedon to the SharePoint site. The SPUser object does not seem to have any of these properties. I looked at ...
1
vote
3answers
282 views

WCF service request limit

I have setup a WCf service in my project using this tutorial: http://msdn.microsoft.com/en-us/library/ff521581.aspx However, I'm POSTing lots of byte[] data to the service tocreate a file. I ...
0
votes
1answer
593 views

Claim auth from ADFS

I asked this question @StackOverflow[1] but maybe this is a better location for it: I try to connect to a SharePoint Online instance via a WPF-Application (C#). I have found this article[2] that ...
0
votes
1answer
295 views

Difference between SP 2013 Preview development environment and SP 2013 Server Preview

Just going through few projects provided by Microsoft for sharepoint 2013 developers I seen requirements for development tools, it says This sample requires the following: Visual ...
2
votes
1answer
2k views

Difference between Client Side API vs Server Side API

I am just going through this SharePoint 15 Training video and they are mentioning these terms again and again but am not sure with them though. MSDN Video talking about Sharepoint APIs I think the ...
3
votes
1answer
2k views

Web Part zone index not working

I am installing a web part on a few different pages. I have set my zone index to 0, yet they still wind up below the other web parts on the page. Here is my code: TasksWebPart ...
0
votes
1answer
616 views

get custom fields only from a sharepoint list

Can anyone tell me how can I get the custom fields from a sharepoint list? I don't want to get all the fields like hidden, just the custom ones or the ones in the default view. The end result will be ...
2
votes
1answer
648 views

Error when enumerating through site columns

I'm working on a Sharepoint 2010 site. I am trying to run this script from a website in order to create an xml containing info on my site columns. $sourceWeb = Get-SPWeb http://farmstuff:1284 ...
0
votes
2answers
505 views

determine if the `Metadata Navigation and Filtering` feature is activated on a site collection

Is there a way to determine if the Metadata Navigation and Filtering feature is activated on a site collection? I've looped through the farm features, site features and web features but I can only ...
3
votes
1answer
240 views

SPListItemVersionCollection - iteration performance

This question is related to my issue described here: SharePoint 2010 Performance troubleshooting On SP 2010: Does anyone knows if there is some performance limitations while using ...
0
votes
2answers
1k views

Datasheetview copy managedmetadata field

We have a list with 2 metadatafields, however in this list the user wants to use datasheetview to copy many rows, the problem is when you try top copy it says managed metadatafields are readonly, is ...
0
votes
3answers
289 views

How to extentd ListProperty control by custom properties and methods

My question is regarding a custom control which I created. This custom control derives from a ListProperty control. public class CustomListProperty: ListProperty Normally to call ListProperty on ...
1
vote
2answers
700 views

SPContext.Current is sometimes null in code behind of InfoPath

On occasion I find that SPContext.Current returns null in the code behind of my InfoPath forms. This is occuring while I have the form open in a SharePoint 2010 site collection. I can't figure why ...
0
votes
2answers
41 views

Sending file from SP2010 to WSS using Work Flow

I would like to send a file from one document library in SP 2010 to another document library in WSS 3.0. I was thinking web services would be the best way to do this. Can anyone point me to the right ...
1
vote
1answer
104 views

How to declare and use extended control in master page

Regarding my question, I have an OOTB control called ProjectProperty, which i can call in sharepoint like that: <SharePoint:ProjectProperty Property="Title" runat="server" /> I want to extend ...
3
votes
2answers
811 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 ...
1
vote
1answer
479 views

Error with Asp Dropdown List in SharePoint 2010

To start with, I have a template setup that came from Microsoft for Timecard Management. This template basically tracks the project someone is working on and the specific task. On one page, it is ...
0
votes
3answers
1k views

ItemAdding getting the file name of a document

I have a document library. I want to add an itemadding event recieiever to do some validation on the file name of the document. How can I get the file name from the SPItemEventProperties