sharepoint2007

SharePoint 2007 Object Model: How can I make a new site collection, move the original main site to be a subsite of the new site collection?

Here's my current setup: one site collection on a SharePoint 2007 (MOSS Enterprise) box (32 GB total in size) one main site with many subsites (mostly created from the team site template, if that matters) that is part of the one site collection on the box What I'm trying to do*: *If there is a better order, or method for the followi...

Connecting Web Parts

I'm having two connected web parts, the consumer has a button that when I click refreshs the page, which in turns kills the connection. I need to use the passed value from the provider in the btn_Click event. How can I do that?. Is this possbile?. ...

What is the best method for Migrating or Restoring Project Server (PWA) to a new environment for testing?

I have attempted bringing up a new farm and performing a stsadm backup/restore with no success. I have also tried doing a stsadm export/import with similar results. I need to migrate/copy PWA to another server for testing purposes and I am at a standstill. What is the best method to accomplish this? ...

Nesting a SharePoint Webpart inside of a User Control

I know it's usually the other way around, but I have some extenuating requirements that must be met (read as "No one bothered to do the research and now I have to bail them out") I have a standard user control (ascx) that is to be imported into a SharePoint 2007 website. Due to a design constraint, a sharepoint web part that is also nee...

Programmatically added SummaryLinkWebPart doesn't display Links

Hi All, I am using below code to Add SummaryLinkWebPart to a Page and also adding few links to that wehbpart. I can see the webpart now on the page but it doesn't have any links inside it. Does anyone know what is wrong with the code? SPLimitedWebPartManager wpm = web.GetLimitedWebPartManager("Pages/default.aspx",PersonalizationScope.S...

Can SPSiteDataQuery search both List and Libraries?

I have the following code: SPSiteDataQuery query = new SPSiteDataQuery(); query.ViewFields = "<FieldRef Name=\"UniqueId\" />"; query.Webs = "<Webs Scope=\"SiteCollection\" />"; query.Query = "<Where<Eq><FieldRef Name='MyCustomField' /><Value Type='Boolean'>1</Value></Eq></Where>"; query.Lists = "<Lists BaseType=\"1\" />"; DataTable resu...

sharepoint 2007 webpart designer for visual studio

Is there a designer for SharePoint 2007 WebParts in Visual Studio? I downloaded Visual Studio 2010, and see there is one for SharePoint 2010... but right now we are writing parts for 2007. Alternatively, what is the overhead for using the ASP.NET developer, and porting the results to a SharePoint WebPart? ...

SharePoint Webpart and ASP.NET User Control

I am developing SharePoint Web Parts for MOSS 2007 on Visual Studio 2008. Up until now, I've been adding all my controls by hand to the code behind... but an earlier post suggested I could use the designer to create an ASP.NET User Control, then add it to the webpart, and everything is happy... See figure 5 for an example. However, I c...

I need to get the values of Sharepoint Field Choice Column in Sharepoint 2007 without accessing a list

Hi, I want to do this but without accesing the list "items", that is to say, to access the column perhaps with the root site or a contenttype, not depending on a list that can be created or not inside the Sharepoint app. SPFieldChoice choice = (SPFieldChoice)items.Fields[namefield]; foreach (string choiceName in choice....

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 for it to be a public repository, no versioning. Each report will carry a unique name. I'm a seasoned vba programmer, but using Sharepoin...

Customizing the welcome email in SharePoint

I can customize the footer of the welcome email coming from SharePoint when a user is added to a site by editing the data name="ServerEmailFooter" element in core.en-US.resx. The question is, can I get anything dynamic in there, like the email of the owner who added the user, or any owner of the site? So far I've seen <GetVar> and <Lis...

Sharepoint 2007: Adding a link to left nav bar?

I have a document library in a sub site. How do I add a link to that library into the root site's left navigation bar? Dynamic or static links are fine. ...

Sharepoint 2007: Move a document library to other site

How can I move a document library from one site to another on the same server. Both source and destination sites are under the same root site. ...

Sharepoint Wiki Link name

Is it possible in the Wiki to have a link name, but different file name. For example, [[Canada]] would link to Canada_a_NicePlace.aspx without having to create a http:// link? I'm looking for a solution for non-techies to have short links to big filenames. ...

Sharepoint 2007: How to define the content type of a listitem using webservices

I'm create a list item via ASP.Net to be published automatically on Sharepoint. However, I cannot find how to define the content type via the CAML query. ...

How do you remove a site from Sharepoint Designer?

I would like to use Sharepoint Designer 2007 as an html editor. I have a web site with a lot of files in a folder on my hard drive. I do not want Sharepoint Designer to make a web site out of this. I just want to use Sharepoint Designer to edit the html files, locally. If I ever make a mistake and click on a tool for Sites, such as summ...

Maximum number of web parts/web part zones per page? (Microsoft SharePoint 2007)

I've already found the max number of web parts per page: Customizable - in web.config file, <configuration><SharePoint><WebPartLimits MaxZoneParts="XX" /> 50 (default) - http://technet.microsoft.com/en-us/library/cc262787.aspx 100 (recommended max) - http://technet.microsoft.com/en-us/library/cc287743.aspx However, I've been unable t...

Programmatically copying custom content type and columns from one web to another

Hi all: I'm experiencing a very stubborn problem when copying custom content type and its columns from one web to another within the same site. Basically, this is the code that I have: foreach (SPField field in existingWeb.Fields) { if (!destinationWeb.Fields.ContainsField(field.Title)) { destinationWeb.Fields.AddField...

Auditing logging on only one SharePoint 2007 Document Library or List

Hi all, I would like to know if it is possible to get audit logs on only one document library or list. I wouldn't like to do it at site collection or server farm level. Also, is it possible in the audit logs to get information for the case of editing, what the original information was before editing and the new information? Thanks in ...

MOSS 2007 BDC Profile Import fails for a few users

We have set up a BDC Profile Import for Sharepoint 2007 and it works well for 99% of the users. A handful fails with the "Exception occured when calling into BIL connector for import from non master data source" message in the crawl log, though The ULS logs reveal the following information: Exception Profile Import: Exception occured w...