0
votes
1answer
13 views

How can I prevent retracting of my listinstance each new deployment from Visual Studio?

I am using sp2013 and vs2013. I have a solution with some list instances and contenttypes. Every time I do a deployment from Visual Studio the existing listinstance will be retracted and I lost my ...
1
vote
2answers
121 views

Creating/editing Sharepoint 2013 columns with VS2013

Firstly, I'm very new to SharePoint, just the 6th day working with this powerful tool. The problem I'm facing which I can't solve is how to edit for example existing attachment column for list for ...
0
votes
1answer
54 views

How to show/Hide Data in dropDown field in a list depending on other list boolean field

I have two lists; Cars{brand,color,price} and Colors{designation,disponibility}. I made the field color as a lookup field to display colors from colors list. My problem is that i ONLY want just to ...
0
votes
1answer
51 views

Distinct values of SPFieldUserValue List

I'm working with visual studio 2010 and I have this list: List<SPFieldUserValue> directeursDelegues = (from SPListItem agence in webSite.Lists[agenceGuid].Items ...
1
vote
1answer
571 views

How to customize the XsltListViewWebPart?

I would like to have submission feature on the List List structure would be Mon-Fri is considered as a week, user would be asked to select the current week's Friday from the calendar. It ...
0
votes
0answers
15 views

Columns not added to the sharepoint deployed list

I used vs2013 to create a list with name "Committees" and added columns to it within visual studio environment and added both to the same feature, after deployment and deactivate the feature and ...
1
vote
1answer
48 views

How to create a custom list that is only available on RootWeb via Visual Studio?

I know how to create lists with Visual Studio. I need hint on how to create the custom list named 'test' with Title, URL and an boolean field only on the RootWebs of every site collection the feature ...
1
vote
0answers
47 views

Multiple items using Multi lookup using visual studio

I'm creating a list which has two multi lookup columns to a document library in our project. These columns are Title and Created date. I want to update the Created date column in my list with the date ...
2
votes
2answers
95 views

SharePoint Visual Studio Development

I need to understand the best practice for developing SharePoint solutions for sites that exist already on the production server. I am currently trying to create a visual webpart for a list that ...
0
votes
2answers
269 views

trouble when updating view programmatically

I got the following event code wich is called when clicking a button: void addSubject_Click(object sender, EventArgs e) { SPWeb thisWeb = SPContext.Current.Web; thisWeb.AllowUnsafeUpdates = true; ...
0
votes
2answers
418 views

Rename “Title” column on multiple lists

I have 3 or 4 lists where the title column is not required. Hence I started renaming the Title field to any other text field that I have in the list per the below blog. ...
1
vote
2answers
1k views

Lists included in an App for SharePoint 2013

I've seen that when I create an Autohosted App for SharePoint 2013 (or any other type of Apps), I'm then able to add a new item to the SharePoint Project such as a List. I can then add/edit/delete ...
1
vote
2answers
689 views

SharePoint OOTB List and Lookup field problem

I am working in a project with SharePoint Server 2010. I have the hole project inside a Visual Studio solution (site columns, content types, lists, workflows...) Everything were working well until I ...
0
votes
1answer
504 views

Help with Blog EventReceiver, not firing

Ok so I have a blog site and I need to change the name of the author of each post to 'Anonymous' after he saves the post. I created an EventReceiver project in Visual Studio and gave the URL ...
2
votes
1answer
474 views

Change Add new Item Text

I've developed a ListTemplate via ListDefinition in SP 2010 using Visual Studio. Nearly everything works fine, but the Link at the bottom of my ListInstance is missing the Text "Add new Item". Is ...
1
vote
1answer
492 views

Custom Ribbon Button on Custom List (created in VS)

I've created a custom document library which is defined through a Visual Studio solution. I also have ribbon customizations which add buttons. My problem is that these buttons do not display on the ...
3
votes
2answers
3k views

error activate feature list template/instance in site definition

i've created a SiteDefiniton project and a Sharepoint ListDefinition project. In the SiteDefinition I created a listinstance of my template, but in deployment the activation of the ListInstanceFeture ...
0
votes
1answer
412 views

What are the advantages/disadvantages of building a list template with Visual Studio as opposed to SharePoint Designer

First, let me say, I am new to SharePoint Development. I have been able to create a couple of related custom lists using SharePoint Designer. I was able to deploy them and they work quite well. ...
1
vote
2answers
2k views

Lists with lookup columns aren't saving - read only?

I've got several list which have lookup fields, and I can't add new items to any of them. Every time I've clicked save, I get this error: "Invalid data has been used to update the list item. The ...
1
vote
1answer
617 views

Custom Field does not save

I've created a list that contains a cumstom field. The custom field inherits from SPFieldUser. After I created a new ListItem (webfrontend) and have a look on the elements details the field is empty. ...
1
vote
1answer
119 views

How do I move lists from a site into a feature?

I created some custom lists (with content) on a site I'm using for prototyping. I want to make a feature (via Visual Studio) that automatically adds these lists (plus content) to any site the feature ...
2
votes
1answer
3k views

How to read an User field value for a list item

I've got a content type that contains a filed of the type user. When I want to read the ListItem I just get a string containing the users name instead of a object which contains Name, Username, E-Mail ...
0
votes
1answer
202 views

Multiple ListItem Owner

I need to create a List that contains multiple listitems. Each listitem should have 2 autors, or 2 persons wich have permissions to change the item. The users who are allowed to change the items are ...
2
votes
2answers
1k views

PowerShell Scripts

Does anybody know if there's some way to delete items from an SPList using PowerShell scripting? If is this possible, has anybody any good tutorial? Thanks!!!
1
vote
1answer
443 views

Using an imported list template's (build in SP designer) xml as the basis for a new list definition in VS

I'm a SP 2010 beginner (although a long time ASP.NET developer) and I thought a good learning exercise would be to: Create a list template in SP Designer Import that list into VS 2010 Create a new ...
2
votes
2answers
304 views

Requiring Event Receiver while creating new item

I have an event receiver(item adding,item added)..on a custom list..this event receiver creates an ID when a new item is created..so when i deactivate the event receiver and add a new item to the list ...
0
votes
3answers
878 views

How do I create a sequential workflow in visual studio to update a list column?

I have list in SharePoint with a field that I want to auto-populate based on values of other fields in the row. I would normally use a calculated field but the calculated field doesn't have ...
1
vote
3answers
1k views

Delpoying farm solution (Application Page) sharepoint 2010 --Access denied

I am deploying an application page (globally), I have a button on the editform.aspx. When a user clicks on the button, it redirects to the application page in a new window but I am getting an error ...
2
votes
2answers
742 views

Workflow for CustomList

I'm creating a Sequential Workflow on a CustomList in viualstudio 2010. My problem is: when I publish the workflow, the list forms (for NewItem, EditItem and so on) get changed and now just contain ...
3
votes
1answer
871 views

How to create a lookup field that has a list column picker

How would I be able to create a list field in VS that would be a lookup to select columns from any list? I would preferably like to have something like the PickerTreeView.aspx, but instead of ...
2
votes
4answers
5k views

Item added or item edited Sharepoint 2010 event receiver

I am working on Sharepoint list form with 10 fields. The first time when I add the new item I fill in 8 values and id is generated. Next time I edit the form I fill in the one of the two remaining ...
0
votes
2answers
277 views

Event reciever (itemadded) sharepoint 2010

is there a way where we can get the link(editform.aspx) of item just added to the list-- in the itemadded method of the event receiver (Share Point object model)
2
votes
1answer
2k views

Event Reciever run with elevated previledges

I created one event receiver and deployed it, but only users who are site collection admins are able to view this web part. I have included the SPSecurity.RunWithElevatedPrivileges but the same thing. ...
2
votes
2answers
850 views

Event Reciever on specific list in SharePoint 2010 working in dev environment but not in production

I have created an event receiver (on item adding) using VS2010 in SharePoint 2010 targeted to specific custom list which is a globally deployed in the production environment. This event receiver ...
2
votes
1answer
660 views

How to implement a custom auto-increment id on a yearly basis

I am trying to create a functionality for a list where all entries get a custom ID. The IDs are going to have the following formats List1 Year-1 Year-2 Year-n List2 Year-1.1 Year-1.2 Year-1.n ...
1
vote
1answer
202 views

Event Reciever on Item created

I am working on creating a event reciever on a custom list .. my senario: I have a customizes newform.aspx and this form has a field called ticketID as hidden ..in the newform..so when a user creates ...
1
vote
0answers
576 views

Creating Custom List Definitions that Use InfoPath Forms - Deploy everything using Visual Studio 2010

I'm trying to create a list instance from a list definition, all from a VS2010 solution and want to have custom InfoPath forms for the list instance. This article keeps popping around in my searches: ...
0
votes
1answer
2k views

Create list instance with Visual Studio 2010 and specify Group or Person for field value

I'm creating a list instance in an XML file and I have some fields which are of type "Person or group". In the XML I can specify it like this: <Row> <Field ...
-2
votes
3answers
449 views

How can I update a list without having my code run on the SharePoint server?

I can reference Microsoft.SharePoint.dll in Visual Studio in order to compile my C# or VB.NET code. I've found that I will still need to copy the compiled code to the server and deploy it there. From ...
7
votes
6answers
6k views

Where to find PublicKeyToken?

I opened an empty sharepoint project in which I added a new application page. There I wrote some code. Now I need to enter that information under <SafeControls> tag in web.config file. ...
3
votes
2answers
4k views

Updating a List Instance

I have a List Instance in Visual Studio. However, every time I deploy the solution, Visual Studio says there is already a list instance with the same URL on the site collection and it needs to delete ...
0
votes
0answers
698 views

using list lookup Fields in SharePoint 2010 programmatically [duplicate]

Possible Duplicate: How to set ListItem Lookup Field value I have a SharePoint list with a lookup field and I want to add values to this list through the SharePoint Object Model. but I ...
0
votes
1answer
785 views

Adding list forms in Visual Studio 2010

In SharePoint Desinger it is possible to add a new forms to a list (example CustomeEditForm.aspx). Is there some method of doing this in Visual Studio 2010 and how is that done? And is ther some blog ...