9
votes
2answers
7k views
Safest way to get a date from Sharepoint into a C# datetime field, using object model?
If I have a Sharepoint list item with a date field.
How can I get the field value populated into a c# datetime object?
For example:
DateTime validfrom = Convert.ToDateTime(item["validfrom"]);
...
9
votes
2answers
6k views
Show custom action in ribbon for only one list
Does anyone knows how to show a custom action in the ribbon for only one list?
At this moment I've got multiple custom lists, but my button is added on all of them. I only want to show it on one ...
9
votes
3answers
2k views
Why doesn't clicking New Document save back to the document library?
I'm watching a course on SharePoint Foundation 2010 Fundamentals.
In it a document library is created a couple of columns are added, then when New Document is selected from the ribbon, Office opens ...
9
votes
4answers
362 views
How to save variables per user session per page
I am using three webparts. Webpart A creates a value when the user clicks on the button in Webpart A. WebPart B uses this value to create a list with items the user can select. WebPart C uses both ...
9
votes
3answers
1k views
Best way to Impersonate in SharePoint
So far, I am aware of below 3 ways of performing impersonation in a SharePoint web part or page :
Using Win32 API
[DllImport("advapi32.dll", SetLastError=true)]
public static extern bool ...
9
votes
5answers
694 views
External access - continually prompted for credentials
I have a client trying to access our hosted SP 2010 instance, an she can log in, but once she starts clicking, gets prompted to login again and again.
She is accessing from the outside, not inside of ...
9
votes
4answers
5k views
Will an InfoPath 2007 form with managed code work on SharePoint 2010?
I have an existing InfoPath 2007 form containing managed code. The form is now published on SharePoint 2007. The form will be edited and created using the InfoPath 2007 client, so no Web Form in this ...
9
votes
1answer
375 views
Detecting browser and replacing web part?
I have a video I want to display on my SharePoint 2010 public facing site and at the moment I am using Silverlight, however, I would like to replace this with flash (youtube actually) if the users are ...
9
votes
3answers
3k views
Cross Site Collection Navigation
We are using SharePoint for our Intranet. We will have a site collection for the Intranet. Then a site collection for each department in the business. I.E. HR, IT, Finance.
We are creating a custom ...
9
votes
2answers
1k views
How can I display a message on a list item when within X days of a date?
I'm using SharePoint 2010 and I'd like to create a column in Task List that will display a message (not generate an email: just display a field text) such as "URGENT" or "Almost Due" when the date is ...
9
votes
1answer
894 views
“Incoming e-mail settings” hidden from custom document library
Very simple set-up:
Visual Studio --> Add New Item --> List Definition. Type: Document Library. Besides that - no changes. Deploy.
Result:
As you can see: No "configure incoming e-mail settings" ...
9
votes
1answer
1k views
Possible to add a “configuration” page to my custom timer job?
I would like to have a page in the central admin that allows administrators to configure a few values for the my timer job. Is there a way that I can do this?
9
votes
3answers
4k views
Should i have the “Microsoft SharePoint Foundation Web Application” role active on all servers in a large farm?
I've checked the resources at Microsoft TechNet, MSDN and Bing but I’m not aware of any information regarding the best practice about the configuration for the "Microsoft SharePoint Foundation Web ...
9
votes
1answer
203 views
Wizard Installer for a Webpart
I have a Webpart for a Sharepoint 2010, and I would like to create a "Wizard Installer" for this webpart, that a customer can install to his own Sharepoint Server.
What is the easiest way to do it?
...
9
votes
1answer
2k views
Backup Office 365 sharepoint site? (company.sharepoint.com)
Is it possible to synchronize or backup an Office 365 SharePoint site?
The company I work for want to use Microsofts "cloud" SharePoint offering, but they wont go ahead if they can't back it up on ...
9
votes
1answer
1k views
Making Document Libraries visible to some users and not others
I have several document libraries that I would like to list on the front page but make visible to certain users only.
If I set it up this way:
-UserLib1, user1 has read permissions
-UserLib2, user2 ...
9
votes
1answer
429 views
Is it necessary to call SPWeb.Update() after setting AllowUnsafeUpdates?
Amidst working on resolving this issue, there's something I was curious about, and something that I've been very inconsistent about in my code.
If you enable SPWeb.AllowUnsafeUpdates = true, do you ...
9
votes
1answer
269 views
How can I retrieve a list of all user names logged in to SharePoint?
How can I get all user names that are currently logged in to the system in SharePoint 2007?
9
votes
2answers
503 views
Books Recommended for Beginner SharePoint architect
I am a recent graduate and got a job as a junior SharePoint developer few months ago. For the last few months, I have been working on SharePoint development, e.g. webparts, .Net Forms, K2, Lists, ...
9
votes
2answers
695 views
What happens if an earlier Event Receiver throws an error?
Let's say I set up an ItemAdded event receiver with a sequence number of 12345. On this list there're two other event receivers that run before it; one for ItemAdding, and an earlier one for ...
9
votes
3answers
2k views
How to do sharepoint people search via webservice?
I need to access search for people in SharePoint 2010 from a webservice.
I have tried this querypacket:
sb.Append("<QueryPacket xmlns='urn:Microsoft.Search.Query'>");
...
9
votes
2answers
170 views
“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions
Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
9
votes
1answer
1k views
What are the differences between creating Search center as a subsite vs a new site collection?
What are the differences between creating Search center as a subsite vs a new site collection?
What are the benefits of creating it as as new site collection v.s a subsite.
9
votes
3answers
1k views
Google Maps v3 on Web Part page
Has anybody been able to implement Google Maps v3 on a Web Part page (SharePoint 2010)?
The maps render fine if I display them in a separate .aspx page, but as soon as I try to embed the code in a ...
9
votes
3answers
2k views
Grab a specific property bag using ECMA script
I am trying to grab a key/value pair from a specific property bag but can't find any documentation or example code on how to grab a property bag. Currently I can only seem to grab allProperties. Here ...
9
votes
6answers
425 views
Is SharePoint right technology for our project?
We are currently building a new public (extranet) client document portal. This should be system very similar to box.com where we can exchange documents with our clients. We will also allow the client ...
9
votes
2answers
1k views
Purpose of the <MAPPINGS> CAML element in a custom Choice Field definition
I have yet to find a clear answer to this topic, so I'm writting this question in hope that someone can explain me the correct way to archieve my goal.
I must also add that all my test was done on ...
9
votes
3answers
2k views
How to localize webpart title, description, group, quickadd group in Sandbox solution
I've seen other similar questions (like this one), checked Microsoft documentation (like all the ones stemming from and related to the page Localization of Sandboxed Solutions in SharePoint 2010), ...
9
votes
1answer
894 views
What is the recommended archiecture to solve multi-tenancy with SharePoint 2010 that requires both http and https?
We want to setup a set of site collections that all have their own unique vanity domain names. There will be 100 or more. For example:
www.domain123.org
www.domain234.org
www.domain456.org
etc.
...
9
votes
3answers
486 views
How to handle staging environments
We have convinced a number of customers that their SharePoint solution is a critical business system and should be handled as such.
This will in most cases include a staging environment, but ...
9
votes
2answers
3k views
How do I connect with SharePoint Online Web Services in order to access list and taxonomy data?
I am using the SharePoint SOAP web services to try collecting list and taxonomy data from a site on SharePoint Online.
The following code works nicely when connected to a standalone SharePoint farm. ...
9
votes
2answers
901 views
SharePoint view in grouping items by the first letter of the Title field
I followed this article and it works fine if the number of items for a letter is less than 30.
But it fails when you have more than 30 items and go back and forth for a group. Say Under "S" you have ...
9
votes
2answers
446 views
User Profile Synchronization - cannot import users without DN entry
I need help in troubleshooting the problem with User Profile Synchronization.
Issue: Some users were treated with stsadm -o migrateuser command and they no longer being imported from Active ...
9
votes
1answer
1k views
Cannot add custom web part to page using the JS OM
I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox.
I have it working ...
9
votes
1answer
300 views
Custom Timer Job does not Execute
I have a custom timer job that loads items into a generic list. The timer job is not executing. The timer job is deployed and the feature is activated. I can see the Timer job in the Job Definitions ...
9
votes
1answer
73 views
BDC lookup times out
I am trying to implement a BDC lookup in a silverlight application connecting to SharePoint via WCF. I have the lookup query working using the FindFiltered method, but when we remove the throttling ...
9
votes
1answer
2k views
Implement Interface in custom “Connected Web Part” to provide “Filter Values”
Question 1.1
What interface do I need to implement into my custom web part, to make it a provider for "filter values" for a normal XsltListViewWebPart?
Answer
- IWebPartParameters
"XSLT List ...
9
votes
1answer
742 views
Differential backup failed, “perform a full database backup”
I've just setup Sharepoint on a dedicated server and I am now going through setting up the backup plans before we start really using it.
Because Sharepoint does not have an "automated" backup ...
9
votes
3answers
794 views
FAST Search Security Trimming of non Windows External Content Types
We have integrated a back-end web application into SharePoint 2010 using the BCS and the OOTB Web Services connector.
The data in the backend system is protected by ACLs and we need these ACLs to be ...
9
votes
4answers
856 views
Cannot upload to a permissions-enabled document library even with RunWithElevatedPrivileges
In our WSS 3.0 application, we have a document library that has an elevated folder called "Approved". It has different permissions from the rest of the Document Library in order to prevent people from ...
9
votes
1answer
630 views
Sharepoint Online (365) Programmatically working with Managed Metadata
So, you want to migrate some documents that have managed metadata columns from another source into SharePoint Online.
Microsoft.SharePoint.Taxonomy is blocked.
Microsoft.SharePoint.Client.Taxonomy ...
9
votes
1answer
3k views
How to use onWorkflowItemChanged in a State Machine Workflow?
I'm using a simple Workflow for demonstration purposes:
Init sets State1. State 1 waits for item changed and set's state 2. State 2 waits for item change and finishes the workflow.
The problem: ...
9
votes
2answers
324 views
Content deployment deploys everything except list contents (PDF's, excel docs) - Log included
Background of problem
We are developing an extranet. It's primary purpose is to share pdf's and xls files with external customers. After content deployment, everything works as expected, except the ...
8
votes
3answers
3k views
AllowUnsafeUpdates vs SPSecurity.RunWithElevatedPrivileges
When is the best time to web.AllowUnsafeUpdates vs SPSecurity.RunWithElevatedPrivileges? Specifically when dealing with updating an item in a list or updating the list itself.
Is it safest to use ...
8
votes
4answers
562 views
Disposing and Closing SPWeb objects
I have used something like
using (SPWeb web = SPControl.GetContextWeb(Context))
but while deploying the project it shows an error. While trying to figure out the cause I came across an msdn ...
8
votes
3answers
1k views
What exactly is SharePoint?
What is SharePoint anyway? What's the difference between SharePoint and Dropbox or SkyDrive for example?
They all share files.
Why should anyone use SharePoint instead of SkyDrive or Dropbox?
8
votes
5answers
4k views
Which is the easiest way to migrate entire List to a new new site?
Hi
I need to migrate a list with 800+ items to a new location but within the same site collection. Which is the easiest way to do it. I want it to be a exactly same with all data, attachements etc ...
8
votes
4answers
2k 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 ...
8
votes
3answers
4k views
Why is my transfer rate so slow when using “Open with Explorer”?
I'm logged in on my SharePoint 2010 server machine (running Windows Server 2008 R2) and using the "Open with Explorer" feature in a document library to copy another full directory from a separate ...
8
votes
10answers
7k views
Sharing data between multiple site collections
We currently have no central records for the addresses of our offices around the world in Sharepoint. Different teams maintain their own address lists, and a search for an address may return various ...
