Tagged Questions
0
votes
3answers
153 views
Web part to record performance metrics?
I'm trying to write a web part that will log some performance metrics to the database when the user loads the page that the web part is placed on. Although I can write to the database with no problems ...
0
votes
1answer
253 views
Is there a way get lookup fields in random lists associated with a specific list programmatically?
I have a sharepoint list, for example it is named as SourceList. I also have several lists which are associated to SourceList via lookup fields. I don't know the names or number of these lists\ they ...
2
votes
1answer
743 views
User Profile Pictures from Sharepoint 2010 - C#
What are the ways by which we can download all profile pictures of all users from sharepoint 2010.
I want to develop a code which can be run from a remote machine.
Does this can be done using ...
2
votes
2answers
314 views
Application to copy a SharePoint Group
As per this entry: Cloning a sharepoint rolegroup I'm trying to create a console application to copy a SharePoint group, including its permissions.
Based on the answer from Tjassens I've reached the ...
0
votes
3answers
254 views
Populating Drop down on the basis of User Group
I am developing the SharePoint Portal in 2010 where i will be using a Dropdown with values in it. These Values will depend on the group to which the user belongs.
For Eg.
If Drop Values are A, B , ...
1
vote
0answers
1k views
Value does not fall within the expected range
I am using Microsoft.Sharepoint.Client namespace, and I am trying to give a ListItem
RoleAssignment based on GROUPS available in Web.
ClientContext clientContext = new ClientContext(deptUrl);
Web ...
1
vote
1answer
661 views
Adding existing security group to a subsite
I created several groups using the following code:
SPWeb currentSite = SPContext.Current.Web;
currentSite.EnsureUser(groupOwner);
...
0
votes
2answers
513 views
How to keep log of all search keywords on Sharepoint 2007 site
We have sharepoint site and we are using sharepoint 2007.
We want to keep track of all search keywords which are used by end users to search any document.
How it could be done.Can we use Sql table to ...
1
vote
2answers
420 views
How to keep log of all users who are visiting site or page on site Sharepoint 2007
We have sharepoint site and we are using sharepoint 2007.
We want to keep track of all users who are accessing the site and pages of the site.
We are checking sharepoin site usage report but we are ...
0
votes
1answer
155 views
Nasty Logical Error
I am trying to download all the document library in all the subwebs of a web and code is given below, but for some reason its not creating a proper directory structure, when i tried to debug i got an ...
1
vote
3answers
1k views
Querying sharepoint data
I have a requirement to retrieve data from share point (I guess it is 2010, but will check with admin if relevant) and generate an excel report/chart. Say we have a bug tracking system in share point. ...
0
votes
2answers
1k views
How to show Sharepoint Site Usage Statistics in a page?
What's the best way of showing site usage statistics in a page? I know I can view the stats from /_layouts/SpUsageSite.aspx and from designer also, but if I want to show this information in a ...
0
votes
3answers
4k views
Sharepoint 2007/2010 hiding list or library items (i.e. rows)
I wanted to know if there's a way to hide list or library row items based on the content of a specific column.
Here is a use case scenario:
I have a list or library of any kind, I have a column ...
0
votes
1answer
591 views
SharePoint 2010: Reordering list fields
I am trying to reorder list fields using the function below.
But for some reason, after executing this function, when I go check the field order in the List Settings, it doesn't seem to have been ...
0
votes
0answers
731 views
Sharepoint security based on metadata tags
just a general question regarding permissions in Sharepoint. Is there an open-source, free alternative or manual method of accomplishing what the Titus Metadata Security tool does as far as creating ...
3
votes
2answers
625 views
Sharepoint Coding standards
I just came accross this table:
Please let me know what difference in poor-->better for the last 5 items.
0
votes
2answers
49 views
Background service that checkes change in a file
I haven't done any coding of this kind and would like some pointers how to start. The service will eventually do several things and perhaps someone has already thought of it made it happen.
The big ...
0
votes
1answer
349 views
Is it possible to programmatically retrieve the Sharepoint contact lists that a user has added to their outlook?
I have a custom addressbook built into a c#.net app. My users have gone into Sharepoint and have connected/linked the contact list there into their outlook. They would like for these Sharepoint ...
0
votes
2answers
342 views
SharePoint: Common mistakes [closed]
Recently I figured out one terrible thing I was not supposed to do when doing SharePoint development:
using (var spSite = SPContext.Current.Site)
{
// do something
}
After some hair pulling I ...
2
votes
2answers
359 views
Sharepoint service to copy subsites from private site to another site
I have this two sharepoint web application that resides on the same server with different site collections and contents. What I wanted to do is to develop a service that will just be scheduled to run ...
3
votes
1answer
2k views
Sharepoint 2010 SPListTemplate how to get list of fields?
I need to get all fields from my list template?
How can i do this?
var web = site.OpenWeb();
var template = web.ListTemplates["SomeTemplate"];
template ... ???? -There is no method to get fields.
3
votes
1answer
2k views
SharePoint user info User Information List and People Column Type
I am retrieving the user information from a number of site collections through the SharePoint web services.
http://mysitecollection.com/_vti_bin/usergroup.asmx
Using the ...
0
votes
1answer
147 views
Sharepoint basics and any useful resources?
Sorry about having 3 questions in one but they are closely related and should be simple for someone familiar.
I'm used to coding Java/Obj C/PHP and am finding trying to modify a template somewhat ...
2
votes
1answer
301 views
list.asmx is giving authorized error in sharepoint using js
When i logged in with Administrator, I am able to access my list data with list.asmx web service.
But when i logged in with other user who is not primary administrator of the site, i got 401 ...
2
votes
0answers
558 views
Time out when creating a site collection
I am trying to create a site collection programmatically.
It has worked for about 6 months, but after the servers have been updated (various patches) it doesn’t work anymore (we have 3 servers: 1 ...
1
vote
1answer
320 views
SharePoint custom field control intermittently reverts back to text field
This is maybe a long shot, but I have a custom field control that renders a colorpicker field for a custom SharePoint list. The field control inherits from the BaseFieldControl.
Most of the time ...
0
votes
1answer
1k views
Sharepoint 2010 Search - Auto add property to QueryString
Have a bit of a difficult question which as far as I can see, no one has really managed to fix yet.
Here's the scenario. Sharepoint 2010 EnterPrise Search Centre.
I've created a custom Search ...
0
votes
2answers
973 views
SPContext.Current.Web is not latest
I am creating a list with a deployed list template. with the following code:
SPSite site = new SPSite("http://servername");
SPWeb web = site.OpenWeb();
web.Lists.Add(listName, listName, ...
0
votes
1answer
332 views
Why does my Sharepoint IRM module fail to re-initialze intermittently?
I have a Sharepoint IRM module that works most of the time. However, most mornings when I come in and try to exercise it it fails to work. An IISReset will generally get it going again.
The Windows ...
0
votes
1answer
86 views
Getting started with Sharepoint 2007 development
We have an ASP.NET website that we use internally to do some project tracking and various work. We would like to integrate some pieces of it to co-exist with Sharepoint2007 WSS.
Basically what we ...
0
votes
1answer
277 views
MissingRequiredFields property on SPListItem always returning true after intial validation
I am updating some list items through code.
Here is an example of what I am trying to do
SPListItem item = GetListItem();
item["Field1"] = GetField1ValueFromControl();
item["Field2"] = ...
0
votes
1answer
658 views
How to get current user using WSS 3.0 & Membership provider inside ItemDeleting event receiver method?
I need to get current user name in my Wss 3.0 application. What is more I would like to do this inside ItemDeleting method which is inside event receiver for SPList.
I've tried SPContext and ...
1
vote
2answers
1k views
Specifying Item Level Permissions using Sharepoint List Event Handler but to a list on which user has Contribute rights
I have a List to which users have contribute rights
I have a Event Handler which changes the Item Level Permissions on adding or Updating events on list by
2.a ...
0
votes
2answers
85 views
What are some recommendations for books, when talking strictly about programming against the Object Model API for SharePoint 2007?
I've read quite few books regarding programming for SharePoint 2007, but in reading these books*, and referencing the online MSDN documentation there still seem to be large gaps/flaws/errors in what ...
2
votes
1answer
5k views
Upload a .pdf file to a Sharepoint Document Library using Access vba
Within an Access 2007 application, I'm creating a static report in .pdf format. I want to create it, then export the static report (not the data itself) to a Sharepoint Document Library. The intent is ...
0
votes
1answer
418 views
What is the best way to migrate documents into Sharepoint (MOSS) 2007?
I'm working with a customer that needs to migrate documents from their current document management system (not Sharepoint) into Sharepoint MOSS 2007 retaining document history and metadata. I've ...
2
votes
3answers
489 views
How to track folder permission event?
This is about folder level permissions. We have a document library with break inheritance. While adding folders, sub folders through code, again we coded for break inheritance.
Now the requirement is, ...
0
votes
1answer
773 views
How to get unique values from a sharepoint list column?
I have a column of date datatype. The user may type in any date. I need to check in the code for unique year values in the column. Is there any C3 direct syantax is tere or I need to use CMAL query... ...
0
votes
1answer
582 views
How to display “ContentType” name in search results?
I have a MOSS site where I have created custom content types and activated those on a document library. Now I want to use a custom XSL stylesheet with search results to pull back those documents and ...
2
votes
3answers
2k views
Copy folders when copying list items from source to destination
This is my code to copy files in a list from source to destination. Using the code below I am only able to copy files but not folders. Any ideas on how can I copy the folders and the files within ...
1
vote
2answers
1k views
Determine the SharePoint Application Pool Account Using Sharepoint API?
Is there a way of determining the user login used for the Application Pool identity using the SharePoint API?
Thanks, MagicAndi
1
vote
1answer
276 views
Is calling the SharePoint Web Services from a Silverlight application secure?
In a public internet scenario, is it possible to call the SharePoint Web Services from within a Silverlight application (hosted in the same site)? Is this secure?
The SharePoint site is a ...
0
votes
2answers
2k views
SharePoint Document Library 404 Error
Help-
Any idea what would cause sharepoint's doc library's tree view navigation to break?
What-
We have a sharepoint site that uses the template Document Center to hold all of our docs. In the ...
1
vote
4answers
461 views
Save Sharepoint Data outside of Lists
What is the best way to store your Data outside of SharePoint. I want to use the default Edit/View options in SharePoint (though I do plan on extending their functionality). I need to store the data ...
0
votes
1answer
1k views
Retrieving SharePoint Services Site Column Data
I am new to SharePoint Services and I hit a wall with one of my tasks. I need to retrieve data from a Site Column. How do I get about that? So far I only see APIs that can retrieve lists and not site ...
0
votes
1answer
687 views
Trouble with SPFieldLinkCollection.Reorder: Isn't working as documented
I am working with a custom list I've built in SharePoint. I have a feature which has an event handler that kicks off when the feature is activated. That event handler calls (I can debug and watch it ...
2
votes
2answers
898 views
Add Site and Page Description to SharePoint Search Index
As part of a SharePoint solution, the functionality for users to create new web sites and publishing pages (programmatically) via a button click has been added. I need to ensure that the Description ...
1
vote
1answer
989 views
How to set a SPFieldDateTime's value?
I'm trying to duplicate a SPFieldDateTime's value into another SPFieldDateTime in an event handler and I have to admit, I'm stumped. There are no obvious fields I can set in an SPFieldDatetime and ...
0
votes
2answers
598 views
how to add a new Task in a SharePoint Tasks List [programatically]
I am trying to add a new task to an existing SharePoint Tasks List using Visual Studio 2008 and SharePoint API, my code is:
using System;
using System.Collections;
using System.Configuration;
using ...
0
votes
1answer
1k views
Sharepoint SPWeb rename - Exception SPException - The security validation for this page is invalid
When attempting an SPWeb rename I receive the following SPException:
Exception SPException - The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and ...