0
votes
2answers
17 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 ...
0
votes
0answers
4 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
20 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
40 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
19 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
38 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
24 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
34 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
32 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
22 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
36 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
25 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
33 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
57 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
0answers
13 views

Possible with Webpart under libraries in the current navigation

Is it somehow possible to drag my "webpart" up in the quick launch and put it under libraries? I've been building a webpart that looks like a list and I can move it around in Site Settings -> ...
0
votes
1answer
69 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
67 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
11 views

Developer Dashboard for extended application

I have extended web application used by internal and external users . Recently the external users are facing performance issues ,so i enabled the developer dashboard . My concern is the developer ...
5
votes
3answers
74 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
45 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
84 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
47 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
61 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
0answers
49 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 ...
2
votes
1answer
106 views

Programmatically trigger “New document” action in a document library

I've been asked to check if it is possible to trigger the creation of a new document linked to a content type. Like, to make it simple, you have a webpart, a button, you click it, and it opens the ...
0
votes
1answer
268 views

Failed to retrieve the COM class factory for component with CLSID SP.SPRequest

On SharePoint 2010, we have one service running at SharePoint WFE which is using the SharePoint server API. If the SharePoint and our service are not used for couple days, we may get the following ...
3
votes
1answer
41 views

How to use Application Pages for a content type's form

I want to use a custom application page for my workflow task view/edit form, I searched the internet and find it is possible to set url for content type's edit/view form, my code to update task's form ...
1
vote
2answers
60 views

Pass Values to Event Receiver

I have an event reciver which sends an email when a listitem is being deleted. When the user clicks on the item, a popup prompt is displayed on the page and the user is requested to give a reason for ...
1
vote
2answers
72 views

How to retrieve email address from user ID?

I'm developing an Event Receiver in C# and I would like to retrieve the email address from a user ID. How can I do that? Thanks
1
vote
1answer
57 views

Potential memory leak with SPListItem?

I have created a Timer Job that iterates through a list of 100,000 items and finds the ones that are older than 120 days and "moves" them to a new site collection for archival. I am using a ...
0
votes
1answer
37 views

Root site collection token in appending html

I have following code builder.AppendFormat("<img style='border:0; left:-0px !important;position:absolute;' id='AddQuickTagImg_{0}' alt=\"{1}\" src='<% $SPUrl:~sitecollection/Style ...
3
votes
1answer
136 views

Check- in & check-out files using client object model

As the title says, how can I Check- in & check-out files using client object model?
1
vote
2answers
47 views

Update metadata on n amount of files at the same time programmatically, using SPListItem update methods or SPWeb update batch?

I need to update meta data on multiple files that exist on my SharePoint 2010 site. When starting the method that will update the metadata i do not know how many file that will need to be updated, ...
0
votes
2answers
192 views

Use server object model check if SPListItem field is a SPUser or SPGroup

I am making a TimerJob that duplicates ListItems from one SiteCollection to another. In order to do this I need to copy the Users and Groups over to the other site. I am having trouble identifying ...
3
votes
1answer
41 views

Sharepoint 2010 on a Sharepoint 2013 farm? Beneficial?

Here is an article that shows how to present SharePoint 2010 on a SharePoint 2013 farm: http://nikpatel.net/2012/10/13/understanding-sharepoint-2010-experience-in-sharepoint-2013/ If I do the process ...
1
vote
1answer
467 views

Check box in gridview should update the splistitem check box

I am a newbie in visual studio. I have a Sharepoint list which contains the following fields group name, user, section and active(which is a check box) . I have a grid view visual web part which will ...
0
votes
1answer
135 views

'Url' for SharePoint item in SocialDataService.GetTags(url)

I am calling the 'SocialDataService.GetTags' web service method to try and obtain the Tags for a specific SharePoint item in a list or for a SharePoint document in a Document library. For the ...
0
votes
1answer
185 views

ProcessBatchData error

I am trying to run a batch process to insert items into a list. I am running into an error "Cannot complete action. Please try again." which I believe means that there is something wrong with my batch ...
0
votes
1answer
56 views

SharePoint 2010 Foundation with Search Server Express 2010 VS SharePoint 2013 Foundation

I am wondering if I install SharePoint Foundation 2010 with Search Server Express 2010, will I have a product as good as SharePoint Foundation 2013's search features? I am looking to make my ...
0
votes
1answer
68 views

Additional page head delegates with 2 scripts

I have a question regarding the additional page head delegate control. Basically this delegate controls helps to register some scripts in my case. But i have 2 different additional page head delegate ...
0
votes
0answers
29 views

Change master page on runtime from catalagos

I have a question regarding setting master page at runtime, at this time i have deployed master page in the layouts directory, and in the run time, due to some cases i have, ...
0
votes
1answer
162 views

“Invalid file name” error creating folder programmatically

I get the following error when trying to create a folder: Invalid file name. The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have ...
0
votes
0answers
31 views

Why I can't access to “these permissions” in my custom workflow activity?

This is my code definition. <RuleDesigner Sentence="Add %1 to Object %2(Output log to %3)"> <FieldBind Field="Permissions" Text="these permissions" Id="1" ...
0
votes
1answer
423 views

How do I programatically change the form template for an existing list

I've started creating all my SP lists in-code, because I find it to be way more reliable than using schemas. I can ensure lists on-the-fly, change existing fields during development, etc. And if ...
1
vote
2answers
87 views

AssociatedGroups collection of SPWeb?

I'm having a hard time understanding the purpose of adding an SPGroup to the AssociatedGroups collection (or its respective property bag item) of a site other than the group(s) appearing in the quick ...
0
votes
3answers
270 views

Finding all items in a list - slow performance?

I've created some code that identifies all of the site collections on a farm and then loops through all of the sites and lists within those collections . It's not ideal, but I've been tasked with it, ...
0
votes
0answers
24 views

Best practice for listing all files in a document library?

The Microsoft Best Practices for SharePoint guide recommends not enumerating entire SPList.Items collections or SPFolder.Files collections. I have the need to generate a list of all files in the ...
0
votes
1answer
69 views

How do I get a current content from URL field (or title field) in a workflow programmatically and convert to string?

I get a wrong value from field. private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e) { SSPFieldUrlValue fieldValue = new ...
1
vote
2answers
61 views

Best practice for taking SharePoint data and putting it into an SQL database?

I need to do some reporting across site collections. In order to do this I intend on writing a service layer that crawls SharePoint and puts information about document libraries and files into an SQL ...
1
vote
1answer
81 views

Displaying a users calendar from Outlook, in SharePoint

I'm wondering if this is possible? Could this be potentially done by writing a web part to go to Exchange?