Questions tagged [development]
The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.
4,583
questions
5
votes
6
answers
7k
views
Using a development farm or standalone?
When doing development for SharePoint 2010, should we use a farm or a standalone setup? One difference is that the farm uses the full SQL Server while standalone employs a local SQL Express db. Our ...
2
votes
1
answer
83
views
Claims Based Authenticaion in 2010: Change UserAttributes
I have a custom claims provider which adds some claims from an external system (eg. Email, Fullname, etc.).
This works fine, but i want to display the value from the fullname-claim on the top-right ...
0
votes
1
answer
279
views
Error on setMapping for managed property
I'm getting error when i try to add a crawled property to managed property "contentshidden"
Anyone know why the problem can ben, when i add a mapping to empty mapping property it is ok, but when i ...
2
votes
2
answers
357
views
Get ContentTypeOrder of a specific folder using CAML and/or SharePoint web services
I am trying to get the ContentTypeOrder of a specific folder using SharePoint web services and caml queries. I am using the GetListItems() method of the Lists.asmx web service. The resulting xml ...
2
votes
3
answers
1k
views
Sharepoint site throws exception on clicking save button after uploading a file
I have deployed an event reciever with item added event on a document library in sharepoint site.
In item added event I am calculating the number of pages for the uploaded document and updated a ...
2
votes
2
answers
1k
views
Sharepoint development without Visual Studio on server machine
Till now I was doing Sharepoint development with Sharepoint server and Visual Studio on same machine.
Now there is a Sharepoint 2010 installed on my client machine with no Visual Studio installed.
I ...
3
votes
1
answer
98
views
How to tell if page is in Mobile View in C#
I have developed an application page within SharePoint 2010 and need to tweak the contents for the mobile view.
I can determine if the page is a mobile page by using the Query String however i am ...
7
votes
3
answers
6k
views
WebPart where to store a connection string
I have a webpart that connects to an external DB. I need somewhere to store the connection string. It is possible for this data source to change but would always be the same for the site collection ...
6
votes
2
answers
1k
views
HTML in SPGroup.Description
I am trying to add a group (SPGroup) programmatically. Everything works fine except for one thing. I would like the group's description to include a link to it's site. Similiar to the look-and-feel in ...
2
votes
2
answers
561
views
SharePoint list.asmx web service
I want to build a office outlook application.
I want to display all documents with their folder and documents. I want to get all subfolder and their document file.
In Sort get all document library ...
3
votes
2
answers
2k
views
SharePoint Designer Workflow Creating New Document Sets
Scenario: We have a document library with document sets configured with some default documents in them. When creating a new Document Set normally, it adds the default documents just fine. We have a ...
1
vote
3
answers
6k
views
SharePoint InputFormTextBox saving values to sharepoint list
I am using a input form text box here is the tag
</asp:Label><SharePoint:InputFormTextBox
runat="server" ID="respRichTextBox" ValidationGroup="CreateCase" Rows="10" RichText="true"
TextMode="...
2
votes
2
answers
130
views
Info on setting up TFS2010 and SharePoint 2010 for 10 Developers
I am looking for information on how I can easily setup an environment where I can have about 10 developers working and testing independent SharePoint 2010 projects and having all the source code in ...
0
votes
3
answers
264
views
Sharepoint 2010 Install on VM - Is it possible to isolate it from rest of the corporate network while giving connectivity to some devs? [duplicate]
Possible Duplicate:
SharePoint 2010 and Active Directory
I have a corporate network. The system admin has created a VMware VM for us with Windows Server 2008 R2 on which to install Sharepoint ...
1
vote
1
answer
2k
views
Infopath 2010 "Get choices from fields in this form" combo box is read only. Why?
I created an Infopath custom form and I want to have a combo box that retrieves its data from other fields in the form (user fills a repeating group in View 1 and then in View 2 I want to display the ...
0
votes
3
answers
301
views
Too Much Memory Usage for Windows form Application
I Made an application to download a folder from a given sharepoint site, but its consuming memory above 600,000K once i click on Connect button, anyone can give suggestion to improve my code ?
I ...
6
votes
2
answers
3k
views
Do I need to reset SPWeb.AllowUnsafeUpdates after use?
Do I need to reset the SPWeb.AllowUnsafeUpdates property after use?
Seems not, but all over the web there is code like:
bool allowUnsafeOrig = web.AllowUnsafeUpdates;
web.AllowUnsafeUpdates = true;
...
1
vote
1
answer
53
views
Security Issue for a user group in SharePoint 2010
For a SharePoint group 'A', I made the security to Read only. Now my requirement is that,
I have created a custom webpart, with one text box and a button, Where the users from 'A' group was supposed ...
1
vote
0
answers
152
views
How to manage hardcoded paths in custom InfoPath forms for different environments (dev, staging, release)?
When you create custom InfoPath forms for your SharePoint components (lists, workflow tasks or initialization form etc) all web references point to InfoPath Designer. Create one from a blank form and ...
0
votes
2
answers
1k
views
Using LINQ on an external list
When I create a list in SharePoint and want to run LINQ agaisnt it I use SPMetal to auto generate the mapping.
SPMetal.exe /web:http://mysite /code:C:\MyFile.cs
This does not seem to generate the ...
4
votes
1
answer
484
views
Previewing Non-Standard Images in Picture Library
I am trying to create a picture library that will allow users of the site to store picture documents as well as preview them.
If a image that is, what I would call standard (.jpg, .gif etc.), is ...
4
votes
7
answers
839
views
What are all supporting tools commonly used by SharePoint 2010 development?
CAML Builder
SharePoint Designer 2010
CKS Development tool edition(server)
SharePoint Manager 2010
These are the tool which is used to make SharePoint development simpler. Can someone tell is ...
1
vote
1
answer
126
views
Input Rich HTML in a Sandboxed Visual Web Part
I'm trying to build a styled web part for adding list items to a list, and I cannot for the life of me find a good control for adding a Rich HTML editor.
Has anyone come across this before?
2
votes
1
answer
212
views
Disable buttons on rich text input field
Is it possible to disable some of the buttons on the rich text editor field on a text field?
I have set the editor for the text column to accept rich html input, but want to disable/hide some of the ...
0
votes
2
answers
100
views
SharePoint Approach for a system - Task Management [closed]
Hi I would like to get some process flow or logic for the following problem,
I have a company which works in three states, lets say states A,B,C
In the company I also have team of employees work for ...
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 ...
2
votes
1
answer
1k
views
Change List Item Permission via Web Services?
Using web services, is there a way to assign a list item different security than the rest of the list?
Lets say I have 3 rows in the list and 2 different groups.
1. A ; Group A & B can see
...
2
votes
1
answer
516
views
Remove the fRecurrence field from the built in Event
I've made a custom Event type and am trying to figure out how to remove the Recurrence field from the build in SharePoint Event.
Here's my code, which doesn't seem to work :(
<?xml version="1.0" ...
2
votes
2
answers
276
views
Updating the Default View via Webservices
I am trying to find a good sample code on updating the fields that are displayed within the default view.
The current code creates a list on the fly and then adds the needed columns.
Once the ...
6
votes
4
answers
9k
views
Get SPWeb by ID without Site Collection?
I have a list of SPWeb IDs and would like to open the associated SPWeb objects. However, I do not know in which Site Collection they are (I DO know that they are in the current Web Application though)....
0
votes
1
answer
283
views
Document Library in code behind
I am trying to get the document library from my SharePoint 2010 site.
Let's say, my Document library name is 'Proposals' and Site is 'Http://sok:1234' .
I used the code like,
SPDocumentLibrary ...
5
votes
3
answers
4k
views
SharePoint Web Serivces Access Denied; Only From VS 2010
After not getting much help on the last question, I decided to blow away the VM and re-create it as I already lost a week on this issue. And of course still issues, btu a little different.
I am ...
3
votes
2
answers
2k
views
SharePoint 2010 Save ListItem without closing
Is it possible to save a ListItem without closing the modal dialog in SharePoint 2010? Possibly by replacing the save button on the Ribbon with a custom button that calls the submit function and keeps ...
0
votes
1
answer
124
views
How do I read pagecolumns from the current page
I know that I have to use
SPSite site = new SPSite("SPsite Path");
SPWeb web = site.OpenWeb();
SPList contacts = web.Lists["Listname"];
if I need to get content of a List, but how do I read data ...
2
votes
1
answer
2k
views
Add custom groups to custom ribbon tab from different features
I have two features in SharePoint 2010 project. Every feature has its own button that have to be placed in different groups on the same custom tab.
For example:
Feature1 adds "Hello" group with "...
2
votes
3
answers
1k
views
Feature with scope Web only on RootWeb
I have just a small Question:
Can I tell a feature with scope "Web" only to be activated on the RootWeb in Feature.Template.xml?
Something like
RootWebOnly="TRUE"
I have a listInstance (...
1
vote
0
answers
104
views
How to display ActivityEvents based on a URL, and not on the current user?
For a community site, I want to displayed activities that happen on the current site. The requirement is to have activities displayed in several places:
On the user's profile and other users' ...
3
votes
1
answer
122
views
Has Microsoft discussed whether future versions of SharePoint will support MVC?
I haven't heard anything about whether they will be including this in the future or not. I did some Googling and found an interesting project on CodePlex but did not find anything official from ...
1
vote
0
answers
60
views
Create ContentType for InfoPath forms
I have a form library in a site template. When I create a new site based on my template, I want to have the columns in the list like when I deploy my form from InfoPath.
Can I make a content type and ...
3
votes
4
answers
6k
views
SharePoint 2010 List Rotator Web Part
Ok, so I would normally take the time to write this, but don't have said time to do it at the moment. I need a web part for SharePoint 2010 that does something very simple: display list items from a ...
4
votes
1
answer
497
views
How to customize a ListView Webpart from code
I have a repository of files... I'd like to create a ListView Webpart wich receives the path in the tree and show the files in the document library... It's possible to do this by code? Is there any ...
10
votes
4
answers
12k
views
How to rename title column in Document Library using code?
Everybody loves renaming columns. The title column is a favorite of mine and I can't seem to rename it via code:
SPList list = web.Lists.TryGetList("MyList");
Guid guid = new Guid("fa564e0f-0c70-4ab9-...
0
votes
2
answers
529
views
ThmxTheme Error
I wrote a ASP.NET Handler module for sharepoint 2010 web application.
it is running .But I added this code, occured error
Code:
string tema = "/_catalogs/theme/Classic.thmx";
ThmxTheme tm = ThmxTheme....
6
votes
2
answers
3k
views
Download file from a sharepoint site from code behind
I have an Image button in a custom 2010 webpart, on click of that I would like to download a file.
Code Used :
foreach (string filename in item.Attachments)
{
attachmentURL = SiteListURL + "...
2
votes
1
answer
309
views
SP2010 Delete a site through code
I'm using the following code to let users without full access rights on my site deleting it through a custom layouts page (delete site button):
SPSecurity.RunWithElevatedPrivileges(delegate() {
...
3
votes
1
answer
381
views
Check if customAction exists
I customized my ribbon with customactions. These commands of the customactions call some cool Javascript functions from a file (ex. script.js).
I include this file with:
<CustomAction
Id="...
4
votes
2
answers
4k
views
SP 2010 Custom Access Denied Pages - 403 error
I've used the following powershell script to change the default access denied page for my web Application:
Set-SPCustomLayoutsPage -Identity "AccessDenied" -RelativePath "/_layouts/Custom/...
6
votes
3
answers
991
views
Use a supplemental .config file just for a web application
I'm trying to add a section into the web.config of a SharePoint 2010 application and I created a webconfig.myname.xml in the \14\CONFIG folder. I then ran the following command to apply the changes:
...
6
votes
1
answer
2k
views
Obtain Default Content Access Account via PowerShell
As part of farm configuration audit, I need to obtain the current content access account. While I've found several resources for setting the default content access account for search using PowerShell, ...
0
votes
2
answers
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 : ...