sharepoint-api

SharePoint Event Handler

I'm having an issue with an event handler in SharePoint. I have a list of items (List A) which has an event handler attached to it with code for ItemAdded and ItemUpdated. When either of these events triggers, I want another list (List B) to be updated with the minimum value of all similarly names items in List A. Think almost like Mi...

Workflow lock "edit item"

Is it possible to disable "edit item" in a Sharepoint List when a custom workflow is running? Maybe a property in the workflow that can be affected? Thanks, David Esteves ...

How to get current user using WSS 3.0 & Membership provider inside ItemDeleting event receiver method?

Hi, 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 HttpContext objects but they doesn't work. I have to add that I'm using Membership Provider and SQL Role provider. I'm not using Active Directo...

How does FullTextSearchQuery work with SharePoint 2010 and FAST Search Server?

I just installed a testing environment with SharePoint 2010 and FAST Search Server as the default search service application. Started with some test content and executed a few searches using the std. SharePoint GUI - everything fine so far. Now I want to execute a more complicated query using the Microsoft.Office.Server.Search.Query.Ful...

MissingRequiredFields property on SPListItem always returning true after intial validation

Hi, 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"] = GetField2ValueFromControl(); item.Update(); if (!item.MissingRequiredFields) { SuccessRedirect(); } else { Error("Fields missing"); } In th...

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 would really need to do is be able to add items to a list in one of the Sharepoint sites. I'm not sure where to begin. I've looked online a b...

customizing an xsl property of @publishingPageImage

I and my colleagues have been trying to format/change image sizes in a publishingpageimage field from a Page image dataview. Is this possible in anyway to set a size for the image without cropping the image. Please i really do need ur help on this, anyone? Thanks. ...

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 event log shows the following error most mornings at around 01:45 (GUID blanked for this post). Information Rights Management (IRM): Protec...

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, listTemplate); web.Update(); SPList List = Web.Lists[listName]; I am able to access the list with the web object which is used to create it. But, SPC...

Automate creation of a SharePoint list without writing any code

As part of the configuration of my product (after installation), I need to create a few Sharepoint lists on the SharePoint site specified by the user. Digging around, it seems that i need to write custom code to do this, either using the server-side API as described at http://sarangasl.blogspot.com/2009/11/create-sharepoint-list-program...

SPWebConfigModification class will not update Central Admin application's web.config file.

Using SharePoint 2010 I am trying to use the SPWebConfigModification class to make some basic changes to web.config files on applications in the farm, including the Central Administration web.config file using web application scoped features with feature receivers handling the addition/removal of the modifications: public override void ...

How to add a People Picker SPField to a SPList in SharePoint?

Looking for a snippet of code. ...