0
votes
1answer
17 views

Wrong hyperlink is generated for custom central administration action group image

I have a custom action group deployed to central administration; something like "Contoso IT" in this picture: The problem is that that for some reason, the hyperlink for "Contoso IT" (the title) is ...
0
votes
1answer
24 views

Programmatically (C#) set date field to blank in 2010

I have tried setting my date field to an empty string ("") and setting it to "01/01/0001". Both returned the error "String is not formatted as date time". I have several thousand items across a few ...
1
vote
0answers
7 views

Does writing a custom RBS provider force one to put SharePoint into unsupported state?

It is well known that modifying a content database directly by running SQL queries results in an unsupported state. However, it is possible to develop custom RBS providers. Note that when an item is ...
3
votes
1answer
129 views

Does adding custom code to native SharePoint aspx files automatically result in an unsupported state?

I want to add some custom code to one of the native SharePoint's aspx files in the hive (14\TEMPLATE\LAYOUTS). Specifically, I wish to implement a Page_LoadComplete event that does some additional ...
2
votes
1answer
20 views

sharepoint development environment

Does Microsoft provide free online development environment for SharePoint 2010? If yes . Please can you share the link and how to access it Even if access is limited to one month or so...
2
votes
0answers
76 views

Is it possible to dynamically hide specific custom retention actions in the dropdown menu?

I'm dynamically creating custom retention actions for information management policies. My problem is that in the retention action dropdown menu, I would like to show only some custom retention actions ...
0
votes
2answers
19 views

Where should I put 3rd party assemblies needed by my project if GAC is not an option?

SharePoint makes it easy to deploy various resources via mapped folders in your Visual Studio project, e.g. Images mapped folder is where you put images needed by the project. My question is: where ...
0
votes
0answers
27 views

Why is file still locked after successful SPFile.ReleaseLock()?

I want to lock a file, perform some operation on it, then unlock it. This is what I have so far (I do this in an item event receiver for ItemUpdating): try { ...
0
votes
1answer
56 views

Apply Custom Master Page Only to New Subsite

I'm using Microsoft's Deploying Branding Solutions for SharePoint 2010 Sites using Sandboxed Solutions sample solution to start. I just want to: Create a subsite Apply custom master page only to the ...
0
votes
2answers
30 views

How to detect when a new item version is added in an event receiver?

Is there a way to detect (in C#) if a new item version was added in either ItemAdded or ItemUpdated event? I would only like to execute some code when either new item is added, or a new version of the ...
0
votes
1answer
44 views

Unable to add .exe file to SharePoint 2010 using Client Object model after it has been removed from blocked files list

Language: C# Framework: .Net 4.5.1 Environment: SharePoint 2010 - Windows Server 2008 R2 My software is used to upload files to sharepoint. It works perfectly well for the majority of files. However, ...
0
votes
1answer
34 views

Is a Standalone SharePoint 2010 Server Good Enough as a Test Environment for Production SharePoint Farm

I have inherited SharePoint 2010 at work and would like to test some features we are not utilizing. I would like a testing environment for SP but being limited on resources, I want to set this up on ...
1
vote
1answer
31 views

How to embed SPList to a custom application page?

I have a custom central admin list and would like to insert it to a custom application page in a way that would make it look exactly like it does if you access the list via its URL - i.e. it should ...
0
votes
0answers
30 views

Copying list items's attachments

I have to modify a .Net console application written in C#. The application references the following assemblies : Microsoft.SharePoint Microsoft.SharePoint.Client Microsoft.SharePoint.Client.Runtime ...
0
votes
1answer
85 views

Determine if field exists in client-side object model?

I want to check to see if a field exists in my program, but If I use : if (item[_strContainingFieldName] != null) { item[_strContainingFieldName] = fieldValue; } I receive an error stating ...
0
votes
1answer
63 views

Issue with SP.UI.ModalDialog.showModalDialog. Page is not being open

I have issue with SP.UI.ModalDialog.showModalDialog. I am working on SharePoint 2010 web-part. In that I need to open the page in SharePoint custom popup. So I have used ...
2
votes
1answer
91 views

Get ULS log records programatically

Is it possible to retrieve records from ULS log using C#/SharePoint API without having to manually parse log files? I would like to display logged messages on a custom web page, and I would like to ...
0
votes
3answers
456 views

How to use SP.UI.ModalDialog.showWaitScreenWithNoClose to display custom loading message?

I use a modal dialog to display my custom aspx page. However, the page takes some time to load, and I would like to provide custom loading message while the modal dialog is loading. I found out here I ...
0
votes
2answers
41 views

Do timer jobs always run under DefaultServiceAccount?

I'm curious whether or not all timer jobs will always run under the same farm service account, i.e. SPFarm.Local.DefaultServiceAccount as specified at installation. For example, if farm service ...
1
vote
2answers
180 views

Moving documents from one server library to another server library programmatically

I am a beginner in Sharepoint and given a task to write timer jobs. Once triggered, I want to move documents from one Sharepoint server library to another server library programmatically. So far my ...
1
vote
2answers
65 views

ItemUpdated not firing when document is added to non-default document library

I have an item receiver that implements ItemUpdated() to process an item after it has been uploaded to a document library. Everything works fine if I add documents to the default "Shared Documents" ...
0
votes
1answer
27 views

Disable drag and drop option for multiple file uploader [duplicate]

These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second ...
4
votes
2answers
126 views

How to get only custom fields from a list?

I am working with the Client Side Object Model. In a console application I am retrieving all fields from a custom list. The problem is the Clientcontext fetches me a bunch of internal fields I do not ...
0
votes
1answer
70 views

Can't delete SPWeb from PowerShell or C# Object Model

I have a very strange situation - two sub webs were created through some code but it errored out part way through the process and now I am left two webs I can't seem to delete. The strange part is ...
0
votes
0answers
55 views

How to change From email address from workflow 2010 using custom action?

I want to change the From Email address when I send email from my workflow. I have used the CodePlex reference. Code which I have use to change the From address is as below. MailMessage mail = new ...
0
votes
2answers
60 views

Add file to subsite with C# knowing only URL?

I would like to use C# to add a file to a library in a subsite. I believe SPWeb will only reference the site I am on. In an ItemAdded eventreceiver, I want to use something like SPFolder ...
0
votes
1answer
36 views

SPFile.OpenBinary method from URL

I would like to use this method to get the byte information from a document based on its URL so that I can copy it to a new location. I have only seen examples using file.OpenBinary(); where file is ...
0
votes
2answers
52 views

How to programatically get a link to custom timer job settings?

I have created a custom timer job and deployed it to all web applications. In a custom central administration application page, I would like to show links to this timer job (e.g. 2 links if there are ...
3
votes
1answer
160 views

Retrieve approvers from SPD Approval workflow programmatically

I have configured SharePoint OOTB Approval workflow on a library. In workflow I have added 3 stages of approval and 1st stage of approval is completed so workflow is in 2nd stage of approval. Now I ...
0
votes
0answers
61 views

Fire events on TIME changed in date picker

I am making a visual web part that has a date and time picker. Essentially, I would like the first of two date pickers to update the second date picker as long as the second one has not been modified ...
1
vote
0answers
71 views

How do I make a dynamically created SPList read-only in browser, but editable in code?

In code, I create a SPList. I write to this list programatically, but I would like the list to appear read-only for all users (perhaps excluding admins only) in browser only, i.e. I don't want to ...
0
votes
1answer
21 views

Where to store custom logs that will be shown to end users?

I have a custom job that can process various documents. I'd like to show user-friendly logs of the processing summary on a custom CA application page, e.g.: "[time] Document1.docx from site ...
1
vote
2answers
65 views

SharePoint2010 is it possible to set an alert on change to column?

I have a user that would like alerts when specific columns in a list are changed. Is this possible OOTB or does it require some C#? If it requires some custom code, does anyone have resources to use ...
0
votes
1answer
64 views

Sharepoint list to XML including the headings?

We store data regarding Scrum sprint retrospectives in a SharePoint list. I have to create a chart for visualizing this information (which is not part of this topic/problem), so I need to somehow ...
0
votes
1answer
35 views

SP 2010 Development Concepts

I'm building a custom addon for a SP 2010 instance. I've been able to get a Visual Web Part in visual studio deployed to my SP instance and debug it. As far as I can tell I have all the normal ...
1
vote
2answers
50 views

How to display charts dynamically other than by using MSCharts?

I would like to display a pie chart in a custom SharePoint application page. One option to do this is by using MSCharts and <asp:Chart> tag. However, getting this to work requires modification ...
0
votes
0answers
31 views

Calling sequential web requests asyncronously server side in SharePoint 2010

I have a SharePoint 2010 page that requires me to call 2 web requests sequentially, and then redirects a user to a website. This is what I have came up with, but have a feeling I am wrong ...
0
votes
2answers
62 views

Are farm admin privileges required to update SPContentDatabase property bag?

If I store custom data inside SPContentDatabase.Properties, must I be farm admin to be able to update it? E.g. SPContentDatabase contentDatabase = GetContentDatabase(); ...
1
vote
1answer
35 views

How to enable non-admin users to store custom application data at a farm level?

When a normal (non-admin) users click my custom-made ribbon button in a document library, I would like to write the document library's information to some persistent farm-wide store (or at least a ...
0
votes
1answer
109 views

How to deploy ItemAdded event receiver to the entire farm? [duplicate]

I have created an ItemAdded event receiver that is supposed to process new documents/files after they've been added to any document library in the farm - i.e., I'd like the event receiver to ...
0
votes
3answers
142 views

Collapsible asp.net control for SharePoint2010

I have a custom Instantiation form with a lot of CheckBoxes in SP2010. Now I've to put the CheckBoxes into different categories which should be collapsible, like you can see in the picture below. Is ...
0
votes
1answer
85 views

Can SPPersistedObject settings be updated by normal users if ran with elevated privileges?

I have a custom ribbon icon "Enlist" deployed to each document library. A normal (i.e. non-admin) user can click this icon; when he does, I would like to permanently save the document library ...
1
vote
1answer
92 views

What's the fastest way to develop custom native-looking SharePoint pages?

I'm trying to develop a couple of custom application pages for SharePoint 2010 that will be accessible from the central administration page as a part of my application, basically serving as a front ...
0
votes
0answers
16 views

Developer Dashboard for external application

I have web application used by internal and external users . I have enabled the developer dashboard . The developer dashboard is seen only for internal users . How can i set the developer dashboard ...
5
votes
3answers
104 views

SPList.GetItems(view) vs SPList.GetItems(query)

Which solution from the two is the most efficient one: 1. Using SPList.GetItems with a given view as a parameter 2. Using SPList.GetItems with a given query as a parameters and then retrieving from ...
0
votes
2answers
68 views

How to determine custom application page URL independently of the environment/farm?

I have deployed a custom ribbon button and when a user clicks it, I open a custom application page - I have deployed the page to _layouts mapped folder. To open the page (with JavaScript), so far I'm ...
3
votes
2answers
140 views

Where to store data needed by a custom timer job?

I have a custom ribbon button in each document library and when a user clicks it, I'd like to store some library-related data (URL, id ...) in a way that would make it available to a custom timer job. ...
0
votes
1answer
63 views

How can I differentiate an user from a workflow while in an ItemUpdating Event

Is there a way to differentiate an user from a workflow while in an ItemUpdating Event? To show the my problem here's the ItemUpdating method: public override void ...
0
votes
1answer
188 views

Trying to view custom application page in browser results in “404 FILE NOT FOUND” error

In VS2010 I created a new .NET 3.5 solution and inside a new project for SharePoint 2010 (empty project called "SPAppPageTest"); I deployed it as a farm solution. I added a new application page, ...
1
vote
1answer
62 views

Injecting dynamic list content into an alert template email

I have tried, and successfully failed, to determine a way to inject the emailed item's value from a universal custom column into the default alert emails generated by SharePoint, in both the subject ...