sharepoint2007

Exception when programmatically copying content type

Hi all: I'm getting exceptions when copying content type from one web to another: foreach (SPContentType destinationWebCt in destinationWeb.ContentTypes) { destinationWeb.ContentTypes.Add(existingWebCt); destinationWeb.Update(); } existingWebCt is the content type from another web e.g. /Site/Web. destinationWeb is the we...

Hiding a deprecated sharepoint web

Hi all: I want to hide a Sharepoint web that has been deprecated (via custom means) due to the release of a newer version, whether it would be making it invisible in the sites and workspaces, or via some special archiving function provided by Sharepoint. Basically I do not wish the users to be able to see the deprecated site. I was wo...

Customizing Document library web part

Hi, I am developing a website in Sharepoint 2007. I came across a bit tricky problem. I have a document library web part in a web part page. I am using the summary toolbar view. I dont want users to add new documents on first screeen where it shows folders. I want them to open the folders and add documents there. I cannot do a No toolba...

Sharepoint GetListItems using rowLimit parameter is not limiting the results returned

In SharePoint I am using the default view of a list. When I use GetListItems method I can pass into it the following: public XmlNode GetListItems ( string listName, string viewName, XmlNode query, XmlNode viewFields, string rowLimit, XmlNode queryOptions, string webID ) I am passing in "" for the viewName a...

How to get Content types

Hi, I'm developing a windows application, that talks to SharePoint via its built in web services, and i want to get all content types available on a SharePoint site, I'm trying to use Web.Webs WebsService = new Web.Webs(); WebsService.Credentials=credentials; WebsService.Url="url of the web service"; XmlNode listOfContentTypes = Webs...

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 display the name of the custom content type assigned for each one. I know how to create managed properties and map those, etc... but can n...

How to get unique values from a sharepoint list column?

Hi, 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... Thanks in advance. ...

Sharepoint Active directory forms authentication

Hi, I am devloping a sharepoint website in Forms authentication mode. I am trying to authenticate myself/ my company users against company's active directory. The ldap path I received from my technical team is LDAP://infinmumcfac.inf.com OU=Infotech,DC=inf,DC=com I got this piece of code from microsoft site. <membership defaul...

Sharepoint: Integrity of lookup fields after a list import

Hi there I got a question about the behavior of lookup fields when importing data. I wonder how the lookup fields behave when the list they point to is being replaced/imported. To explain the issue, I will provide a quick example below: As example, assume we have these two sharepoint lists: Product Types ------------- + Type Name + Co...

Problem with stsadm -o enumssp

I am having troubles Provisioning an SSP where it seems permanently stuck on "Provisioning in Progress". When I run the following command I receive an odd result. Does anyone know what this means? Command: stsadm -o enumssp -all Result: Value cannot be null. Parameter name: uriString ...

How to customize form web part to include multiple columns in search??

Hi, I have edited my form web part to look like this. I am a newbie to moss. As i understand, form web part allows only 1 column to be mapped to my list at a time. I need to configure to it have multiple columns mapped to my list view. Do I need to change any javascript function or use sharepoint designer. I have spent a week trying ...

How to achieve this site structure?

Hi, I need to develop a website that looks like this. In central administration however, in the operations tab, It shows Central Administration--> Operations. But I checked, operations is not a subsite. Then what is it. In my application, I always get Home--> Operations. To add to trouble,it changes the name at the top as Operations....

SharePoint The My Site of <user name> is scheduled for deletion.

Hi there, In my email today I got the following: The My Site of is scheduled for deletion. As their manager you are now the temporary owner of their site. This temporary ownership gives you access to the site to copy any business-related information you might need. To access the site use this URL: http://mysites.mycompany.com/perso...

Sharepoint always down on the weekend?

For some reason, our sharepoint site always goes down on Saturday. It's the stangest thing and I can't figure out why. I'm a total noob at sharepoint and have been thrown into being the go to guy for sharepoint with my current employer. I've tried bouncing IIS on Fridays to see if there is anything I can do before hand. Is there anyt...

Does sharepoint synchronize with Active directory to reflect name changes?

Recently we had a user whose last name changed and when she checked out our portal (sharepoint) it does not reflect the change. We thought it would synchronize with active directory and get her updated name but it does not seem to do so. Do we have to do anything special to synchronize this? Any help is much appreciated. ...

Crawl Oracle Portal from SharePoint

We have a customer who has both a SharePoint 2007 SP 2 and an Oracle Portal 10.1.4.2.0. They would like to search the content of the Oracle portal from SharePoint. Is this a supported configuration? We have tried the various authentication methods. The only one which we have been able to get to work is the cookie authentication sending ...

SharePoint and Forms Based Authentication Issue - Office Apps no longer work

We have several sites that use Forms Based authentication (FBA) within SharePoint. Many of them have been running for months without issues. Within the last week or two we have noticed the following behavior for users trying to access a Read Only Microsoft office document (currently only verified with the 2007 versions of Excel and Word)...

Coordinated logging in a SharePoint farm

We are deploying web parts to SharePoint 2007 and would like to include logging (log4net). The ideal solution would be to use a database appender to avoid the problems with knowing which actual server is executing the web part. This questions has been helpful: http://stackoverflow.com/questions/219668/sharepoint-and-log4net. I've got ...

Sharepoint: How to obtain the current site/web/list properly

Hi all What is the best way to obtain the current site/web/list ? Option 1 - Reusing existing objects SPSite site = SPContext.Current.Site; SPweb web = SPContext.Current.Web; SPList list = SPContext.Current.List; Option 2 - Creating new objects SPSite site = new SPSite(SPContext.Current.Site.ID); // ...

Programatically access a SharePoint document library?

How would I programatically access a SharePoint document library from another machine? I want to recursively scan all the folders and generate a list of files with a certain custom property. ...