Questions tagged [development]
The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.
348
questions
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.
...
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 ...
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" ...
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 ...
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()
{
...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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....
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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....
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"
+ "/"
+ ...
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 ...
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 ...
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,
...
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 ...
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....
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 ...
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....
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
...
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 ...
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;
...
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 ...
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 ...
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 ...
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 ...