Questions tagged [development]

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

Filter by
Sorted by
Tagged with
8 votes
4 answers
6k views

SharePoint -access to path is denied

I am working in SharePoint 2010. My requirement is to create folder inside SharePoint layouts and create a file inside that folder. Also I need to access the file for a current logged in user. ...
sharmila's user avatar
  • 593
19 votes
4 answers
67k views

change the default tile size in Sharepoint 2013

Hello, I create an app using the Promoted Links in Sharepoint 2013. I chose to do this because the feature has the awesome hover effect and is easy to customize the image. The issue is that I have ...
Question-Everything's user avatar
54 votes
7 answers
31k views

How to update custom master page and page layout, which is already deployed

I have a feature which deploying custom page layout. It's done by this code: <Module Name="MasterPageModule" Url ="_catalogs/masterpage"> <File Path="MasterPageModule\defaultTemplate.aspx" ...
Michal's user avatar
  • 863
6 votes
5 answers
70k views

Filter a list view using URL parameters

I would like to dynamically construct a couple of URLs for our SharePoint users to filter down a rather large list view we have. Rather than create a bunch of different custom views, I was wondering ...
Goyuix's user avatar
  • 415
102 votes
7 answers
9k views

SharePoint development past and "future": how to keep calm?

I'll do my best to not turn this question to an "opinion-based" one, but it's a great effort for me! SharePoint 2003: the story begins In the beginning (SharePoint 2003), we could develop ...
68 votes
62 answers
13k views

List of SharePoint development tools [closed]

What tools do you consider essential in your SharePoint development toolkit? One answer per tool please so the community can vote!
16 votes
5 answers
81k views

How to get current user with javascript?

I have a list . I want select items of list with a special quary.(get items that created with current user). Then get count of items. I use this code for get current user : function Initialize() { ...
ar.gorgin's user avatar
  • 1,228
8 votes
2 answers
47k views

The remote server returned an error: (403) Forbidden

I am developing a C# console application on my local computer running on Windows 8. My target SharePoint server is SharePoint Online on Office 365. I am trying to get the web site name using web.Title ...
Jake's user avatar
  • 582
39 votes
5 answers
67k views

How to get List by Url using SharePoint 2013 CSOM

SharePoint 2013 CSOM API contains the following methods for accessing List object: ListCollection.GetById method - returns the list with the specified list identifier ListCollection.GetByTitle method ...
Vadim Gremyachev's user avatar
24 votes
11 answers
96k views

Get Site Collection full URL using javascript

I want to get the URL for my site collection. One way I thought I could do it was using the window.location in javascript and getting it that way. I know that you can use ECMA script and the client ...
John's user avatar
  • 3,763
11 votes
3 answers
31k views

How to retrieve Users and Groups seperately from a "Person or Group" column via C# code?

I have a field in the discussion list, which allows the initiator of the discussion to specify the people to share the discussion with. This field is typed as 'Person or Group' that allows selection ...
Muhammedh's user avatar
  • 1,157
10 votes
12 answers
2k views

Recommended resources for SharePoint Developer beginners

What resources would you recommend to someone who would like to learn and possibly become a SharePoint Developer?
9 votes
10 answers
8k views

What technical skills do you use most when developing/deploying SharePoint?

(I think my question is sufficiently different from this question to justify asking it. My question is not about useful SharePoint resources, but what technical skills you actually need...) I'm a ...
6 votes
4 answers
3k views

Can force the "Title(linked to item with edit menu)" column inside my list view to reference to another URL

I am working on a custom list, and inside the list view i am showing the Title(linked to item with edit menu) column. currently when users click on this column they will be redirected to the item ...
John John's user avatar
4 votes
2 answers
13k views

How do I get the url for attachments on an SPListItem using C#?

I have an SPListItem for which I would like to get the urls of all its attachments. The urls will be used as part of my custom web part which has an SPList of SPListItem items.
skeletank's user avatar
  • 2,157
1 vote
4 answers
14k 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 = webapp.Sites....
grisha's user avatar
  • 2,445
1 vote
3 answers
17k views

Add values to lookupmulti field in c#

I want to add values to a lookupmulti field with c#. the form shows the field correctly but my code just won't work: SPList list = SPContext.Current.Web.Lists["testlist"]; SPListItem item = list....
domueni's user avatar
  • 427
21 votes
4 answers
19k views

Getting my head round spsite vs spweb vs anything else

I am fairly new to Sharepoint development (But learning it rapidly due to some initiatives I have in place - not exams). Anyway, one of my biggest stumbling blocks is the naming convention for ...
GurdeepS's user avatar
  • 707
11 votes
4 answers
4k views

CurrentUser.IsSiteAdmin should be true but returns false

Why does CurrentUser.IsSiteAdmin return false for a user that is listed in the site collection admin in SharePoint? I am building an Office 365 app that accesses SharePoint via the REST api. During ...
Danny Bullis's user avatar
9 votes
5 answers
15k views

How to download the historical file version content using CSOM

I am trying to download the previous version of a document from _vti_history location of the file using client object model but the OpenBinaryDirect is giving not found 402 error for URL. My ...
user16762's user avatar
7 votes
1 answer
28k views

CAML Query - Going around the 5000 List Item Threshold

I have developed a SharePoint system for a client and I am planning forward with regards to CSOM code that runs on a specific library. This will eventually expand to a large set of data. Experience ...
Jurgen Cuschieri's user avatar
6 votes
3 answers
13k views

How to use JavaScript and CSS in a web part?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. And I want to ...
George2's user avatar
  • 1,343
6 votes
5 answers
5k 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 ...
Alexey Krasheninnikov's user avatar
5 votes
5 answers
75k views

how to upload file to sharepoint doc library via c# application?

I need to upload files with specific information(custom fields) into sharepoint document library via custom windows application. I have no idea how to do it, anyone has any examples how to do it ...
Melvin's user avatar
  • 215
4 votes
5 answers
4k views

Disposal of SPWebs created using SPSite.OpenWeb()

After reading some answers/comments on Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs, I opened up Reflector to dig deeper into the SPSite and SPWeb classes. I ran into a surprise, ...
Jaap Vossers's user avatar
  • 5,040
4 votes
2 answers
61k views

How to get all the files inside the folder in list

I want to get all the images name inside the folder which is present in list. site>list>folder>files I want to achieve this using csom code. please help me i am able to get the list but not folder ...
mallela prakash's user avatar
3 votes
4 answers
12k views

Error message: "A sharepoint server is not installed..."

Im trying to develop a Visual Web Part using Visual Studio 2010 RC. I have not installed SharePoint 2010 locally on my developer box, but I have installed it on my Windows 2008 Server VPC. When I try ...
user avatar
13 votes
1 answer
948 views

Delegating/Forwarding SharePoint on-prem (ADFS) identity to call Exchange Online API

I have a SharePoint (2010) on-premises, plugged to an ADFS server. I deploy custom components (Web parts, _layouts pages) with custom code onto it. One of these components must access data stored ...
Evariste's user avatar
  • 9,751
11 votes
2 answers
16k views

SharePoint 2013 email templates

I have a SharePoint 2013 instance that I would like to modify the default email template. I want to put my company's logo as a header and the company contact info as a footer on every email that is ...
joe_coolish's user avatar
10 votes
3 answers
3k views

Moving a site to a different site collection

I am looking for a C# script that will move a site with all permissions and content to another site collection. Google isn't helping me or maybe i dont know what exactly to look for. e.g. I have a ...
Muhammad Raja's user avatar
10 votes
1 answer
3k views

Best practices for creating a shared code library for SharePoint projects

I have several projects for SharePoint 2010 (mostly they are separate solutions built each to separate wsp's) in active development. And I have a similar tasks in these projects (logging, ...
Oleg Savelyev's user avatar
8 votes
1 answer
6k views

GetUserEffectivePermissions returns wrong results

I'm checking the permissions for user on a SharePoint 2013 list: using (var ctx = new ClientContext("http://comtoso.com")) { var list = ctx.Web.Lists.GetByTitle("TestList"); ctx....
Mark's user avatar
  • 391
8 votes
9 answers
3k views

Getting Started with Sharepoint 2010 Development with no prior Sharepoint knowledge

My boss wants me to learn Sharepoint 2010 development (and he wants me to learn it now!). I have never done anything with Sharepoint. Where should I start? About Me: I am an Asp.net developer, and ...
7 votes
3 answers
25k views

Get absolute URL to listitem's default display form

I need to have an absolute URL of a listitem's display form - currently I do it the following way: On http://example.com/: item.ParentList.ParentWeb.Url.TrimEnd('/') //"http://example.com" + "/" + ...
Rafał Saltarski's user avatar
7 votes
3 answers
4k views

Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs

As there was a minor disagreement on whether SPWebs retrieved from SPContext.Current.Site.AllWebs should be disposed, I thought it would be appropriate to post a new question and discuss it here. I ...
Jaap Vossers's user avatar
  • 5,040
7 votes
7 answers
746 views

Getting started with SharePoint 2010 for SharePoint 2007 Developers

Do you know some quick links that will help a SharePoint 2007 Developers to get started with SharePoint 2010. Let me start with the links I know. General Information on SharePoint 2010 Must watch ...
6 votes
3 answers
250 views

Equivalent of a database table in SharePoint?

I'm making a Publishing site, and part of this site will display information about company products. We have a number of products, and each one should have its own description page. The description ...
ngm's user avatar
  • 1,023
5 votes
2 answers
4k views

Sharepoint 2010 ModalDialog title

I am creating a popup window in sharepoint using this code in javascript. function openDialog(title, url, width, height, CallResult) { var options = { url: getUrl(url), title: title, ...
user avatar
5 votes
1 answer
9k views

Checking if file is checked out through CSOM

Is there a way to check if a file is checked out by another user? I am going trhough a list file by file and would like to avoid the "file is opened by another user" error. Something like this would ...
UsefulUserName's user avatar
5 votes
2 answers
12k views

CAML query returns all items instead of one

I am querying a list to return only items matching a certain title, but the query returns all items. It seems I built or execute the query the wrong way: /* SP is an alias for Microsoft.SharePoint....
Marco's user avatar
  • 501
5 votes
4 answers
4k views

Tips for starting SharePoint development

I'm going to start developing SharePoint applications and I'm looking for some good introductory resources (articles, videos, books, dev tools, tips). I'm comfortable with C# and ASP.NET development, ...
4 votes
2 answers
8k views

Can the zoom/scale on JS Grid conrol in gantt mode be changed?

I have created a webpart with a JS Grid control with gantt enabled. I want the gantt view to display months instead of weekdays. Anyone have an idea how to do this? Update: The following link is what ...
stiangodo's user avatar
  • 390
3 votes
1 answer
2k views

Why Item Updated and Item Added trigger together when we add a item to list (document library)

I have gone through hundred of articles over months but never understood as what could be the reason Item Updated and Item Added trigger together when we upload a item, even though if you try this....
Muhammad Raja's user avatar
3 votes
1 answer
5k views

EventReciever to change permissions

I am trying to create an event reciever on a document library that on creation it removes all permissions and gives the author contribute writes. All other users get nothing. I have the following ...
John's user avatar
  • 3,763
3 votes
2 answers
2k views

How to retrust an app programmatically (c# or powershell)?

I created a high trust provider trusted the app. I have some strange issue that I need to click on the retrust hyperlink after I deploy the app in SharePoint 2013 on premises. Can I do this ...
Ola's user avatar
  • 4,405
3 votes
3 answers
4k 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; ...
cbrad's user avatar
  • 195
3 votes
3 answers
3k views

Field level permission development

I am aware that there already are some questions regarding on how to implement field level permissions customization in SharePoint, such as: SP 2010: column permission Permissions for List or Library ...
Alex Filipovici's user avatar
3 votes
7 answers
9k views

ArgumentException when trying to access SPListItem value

I have a tool to update all items in SP (link replacement). The tool works most of the time but sometimes it throws me an ArgumentException ("Value does not fall within the expected range."). Here is ...
Shihan's user avatar
  • 589
3 votes
1 answer
5k views

Does Update-SPSolution trigger a SPFeature.Upgrade()?

I'm looking into Feature versioning and upgrading in SharePoint 2010 and I don't know exactly if the Update-SPSolution cmdlet triggers a SPFeature.Upgrade(). Are <UpgradeActions> elements ...
JohnDoDo's user avatar
  • 1,169
2 votes
2 answers
3k views

Showing the tab on button click

Basically my questiong is regarding the ribbon. So I want to have the following behaviour, when a person clicks on the button, the contextual ribbon tab should be opened. Any idea how to do that? I ...
Shkipper's user avatar
  • 2,105

1
2 3 4 5
7