moss

How do I set a default Target Audience on a calendar event in Sharepoint?

I’ve got some concerns with an approach I’m taking to centralize a calendar in MOSS. The scenario is that there is 1 calendar for the Enterprise and Events are filtered via audience targeting. It’s fairly straight forward to turn audience targeting on in a calendar, my concern comes when the client wants to auto populate that event wit...

RenderingTemplates for EditProfile.aspx - Which RenderTemplate uses the MySite?

I am working on Replacing Default text editor in MOSS. So I found good blog for change in regular sites, but not in MySites collections. Looking for RenderingTemplate for Richtextbox(ProfileEditor) in EditProfile.aspx page. EditProfile.aspx has ProfileEditorXXXX. I know DefaultTemplates.ascx will render templates for regular sites colle...

Open document in edit mode from approval workflow email.

A MOSS 2007 Approval WorkFlow has been created for a standard Document Library (containing Word files). When the email alert goes out to the perspective user, the user clicks on the link within the email to review the document. The document opens as read only. Is there a way to open the document in edit mode? To be clear: Opening the do...

Insert SPWebConfigModification at beginning of httpModules node

We've built a simple IHttpModule for our SharePoint deployment that catches exceptions and emails the developers the contents using the following foundation: public class ExceptionReporter : IHttpModule { //snip public void Init(HttpApplication context) { context.Error += new EventHandler(context_Error); } ...

Staple Sharepoint 2007 feature to custom site templates

I have a branding feature that works great and staples to everything but custom site templates (as noted at the bottom comment on this MSDN article it's not possible to staple to custom templates out of the box). stapling.xml staple all site defitions to BrandingChildSiteInitializer <FeatureSiteTemplateAssociation I...

Verify SP2 Install for MOSS?

I have 12.0.0.6421 showing in Central Admin, which would seem to indicate that SP2 was installed. However, when I run an STSADM command to backup a site collection, I do not see the message informing me that it's "setting the site collection to be-read only for the duration of the backup" as described here: http://bobfox.securespsite.co...

What are the killer uses of Content Types for Lists (not Document Libraries)?

I've seen a lot of blogs, articles and discussions across the web that lead me to believe that custom Content Types are must-use functionality in a SharePoint site - especially where no-code customization of SharePoint/MOSS sites are concerned. However, after a few hours of directed research on the subject, the uses of Content Types (fo...

Sharepoint accessing "User Information List" via a webservice

I am trying to get the contents of "User Information List". This list can only be acessed as an admin user. I have a method that logs in as the admin user and then does the following: var xmlDoc = new XmlDocument(); var query = xmlDoc.CreateElement("Query"); query.InnerXml = "<Where><Eq><FieldRef Name='ContentType' /><Value Type='Choice...

SharePoint Custom fields and AfterProperties

I have created a custom field in SharePoint that inherits from the SPFieldDateTime: public class ExpiryDateField : SPFieldDateTime { public ExpiryDateField(SPFieldCollection fields, string fieldName) : base(fields, fieldName) { } public ExpiryDateField(SPFieldCollection fields, string typeName, string displayName...

How does a MOSS web front end route search requests to query servers?

Does the web front end accept a search request coming from my own program? If yes, how does the request get routed to a particular query server, given that I have multiple query servers? Is any particular algorithm used (e.g. round-robin)? ...

Sharepoint Web Service GetListItems not returning all rows

I am using the GetListItems web service and it is only returning about 50% of the results stored. Is there a limit to how much data can be returned? Is there anyway round this? ...

Feature not installing, don't know why

I have a project that's built on SharePoint Smart Templates. I don't have a web part, so I deleted the cs file. Instead all I have is a blank feature. <?xml version="1.0" encoding="utf-8" ?> <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Id="{6447a5a5-c6c7-4aee-b7c5-b7417e30c03f}" Title="My Content Types" ...

Migrate SharePoint SubSite to a Different Site Collection Programmatically

Hi, Is it possible to move a MOSS subsite and content to a different site collection using the SharePoint API? For example, I would like to archive a subsite, by moving it from /teamsite/subsite1 to /teamsite/archive/subsite1. I am using MOSS 2007. Thanks, MagicAndi. ...

Upload Image in List

Hi all, In my sharepoint site i have a list where user can enter his/her profile related information such as first name, last name, Age, sex... Along with these information i want to let the users to upload their images as well So when i creat a view for this list i can able to show their Image along with other information. So can anyon...

SharePoint timer jobs not getting invoked.

I have a timer job which has been deployed to a server with multiple Web front ends. This timer job reads it's configuration from a Hierarchical Object Store. This timer job is scheduled to run daily on the server. But the problem is that this timer job is not getting invoked daily. I have implemented event logging in the timer job'...

SharePoint: How to add an attachment to a list item programatically?

I have the following code: SPList list = web.Lists[this.ListName]; SPListItem item = list.Items.Add(); now what I want to do is: FileInfo[] attachments = attachmentDirectory.GetFiles(); foreach (FileInfo attachment in attachments) { // Add the attachment from file system to the list item... ...

Anonymous access to a SharePoint site root

I have configured anonymous access on a SharePoint site for "Lists and Libraries". I then enable anonymous access to the individual lists/libraries as per my requirements. This works great, but I cannot access the root site URL where I expect to be redirected to the welcome page: Access to http://servername fails with Access Denied...

MOSS Publishing pages and WSS Pages

Hi Can anyone tell me why a masterpage applied to a MOSS publishing site does not get applied to any non publishing pages within the same site - very strange behaviour? ...

Elevated privileges in timer jobs

Can we use SPSecurity.RunWithElevatedPrivileges in SharePoint timer jobs? Under whose identity will the timer job run under elevated privilegs? Any gotcha's and must know facts regarding this will also be appreciated. ...

Registering SharePoint Event Receivers that are already registered

I am writing a web part against a list. The first thing I do in the web part is verify that my custom event receivers are registered on the list. If they are not, I register the programmatically. I have noticed that if I try to register an event that is already registered, I get no errors and no “Extra” events are registered. My ques...