sharepoint2007

How to have http module on fire events only for specific page types

I have an http module on a sharepoint site and this module instantiates a custom class and add it to the session and does other initial things for my site. However, I'm noticing that the http module is being called for all request types (.aspx, .js, .png, .jpg). Is there any way to have an http module only be called for .net specific pa...

Trimming DateTime format to Just Date format in CAML Query

I am trying to build a CAML query for SharePoint 2007 environment, to get items from a calendar list. Want to query items with a given 'From date' and 'To date', the calendar list contains 'EventDate' and 'EndDate' in Datetime format. I am only interested in the date part of the datetime field. How can I trim the "EventDate" DateTime fi...

Can we move SharePoint up in the site hierarchy?

I have SharePoint with the local intranet link as http://shserver/Sites/LAPP/HR/LA. I want to move the site LA to the following location http://shserver/Sites/LAPP/LA. Is this possible through some tool or the only way is to recreate the site altogether in the new url location. ...

Sharepoint Conditional fields in Edit.aspx

I would like to display certain meta data fields in the edit form based on the value of a fields. Example: Users upload a document to the Doclib to be approved by there manager. They are allowed to change the meta data Name,Case No, Location until the item is approved by the manager. Once the item is approved I would like to set Name a...

Using fields from a 'lookup-ed' sharepoint list

I have two Sharepoint lists: - Assignments - Activities The activities list has a lookup field to the assignments list as activities (e.g. monthly review of X) are related to an assignment. My question is, how would I display other fields from Assignments in a view of Activities using standard Sharepoint 2007 (we have restrictions ...

Unit testing Event Handlers in SharePoint?

Is it even possible? So far, I found that we can buy TypeMock to mock the SharePoint objects and then use any free Mocking framework (Moq?) to do the rest of the job. What do you think? It seams that without TypeMock, it's impossible to do unit test within SharePoint. To properly test our events, we need to give the event a SPItemEve...

Possible to override site creation in Sharepoint?

We want to customize the "My Site" templates for different roles, say Students and Teachers. So basically we want to have one Site Def. for each and when they press "My Site" we want to create a new site using a different template depending on the role of the user (Student vs. Teacher). Does anybody know if this is even possible? Or any ...

Sharepoint Webpart Security Exception

I have a custom sharepoint web part that is throwing the following exception: System.Security.SecurityException: Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed. at Microsoft.SharePoint.SPS...

MOSS 2007 content import failure

I have received a content export of a MOSS 2007 site which I need to get replicated in my environment but I am having problems importing it using stsadm. The export was done using stsadm though a command similar to: stsadm -o export -url http://localhost -filename C:\Export I'm using the import command such as: stsadm -o impor...

How do I know you have logged in a Sharepoint WebPage?

We use Sharepoint as CMS for our webpages at work. I know how to create controls that can be only visible if you have logged in in SharePoint with: <Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl1" runat="server" PermissionsString="AddAndCustomizePages"><br /> <Sharepoint:CssLink ID="CssLink1" runat="server"/><br /> <...

Sharepoint as template application

We have a site that needs to (as part of our process) generate a document (e.g. Word docx document) that is derived from data within our application merged with a template document. This document can be edited at run time by the user after it is generated. We know we are looking at a CMS like system (since the users will need to be abl...

Need Help publishing a browser enabled InfoPath form to a Sharepoint 2007 Server

Hey everyone, I’m trying to publish an InfoPath form to a SharePoint document library, and have the form be viewable in a web browser. The problem is that in the InfoPath publishing wizard tells me that although the form is browser compatible, that it cannot be browser enabled because of one of the following: The Server is not runnin...

Sharepoint password change

Hi All: Here is my problem: I am a Sharepoint newbie, but ironically I am a Sharepoint Administrator right now? In my company we have around 200 employees. I created accounts for all of them, but I need to help them change their passwords as they prefer to use their favorite passwords. I was just wondering: is there any way they can ch...

Sharepoint Search Service Crashed after patch KB956716

Our networks guys installed this patch over the weekend to our single server sharepoint front end: KB956716 http://www.microsoft.com/downloads/details.aspx?familyid=a7fda284-273c-42ab-8188-433beaacca86&amp;displaylang=en http://support.microsoft.com/kb/956716 After which our search service stopped working. When attempting to do a se...

SharePoint: Media Player Custom Field Control

I'm trying to implement the Media Player custom field control described in this MSDN article: http://msdn.microsoft.com/en-us/library/aa981226.aspx I created a custom site column (of type Link) in a custom content type and followed all the instructions to deploy the solution into SharePoint and add the control to a Page Layout. Howeve...

SharePoint Permission Levels in Production for Developers

Hi, We are trying to clean up our SharePoint (MOSS 2007) environment. As of right now, our developers, System Administrators and Content Administrators all have "Full Access" rights to the root site (and just about everything underneath it) in our production environment. I think that is a terrible practice and feel confident that our...

Share Sharepoint lists across sub sites

I've got a situation where I want to have a master list at the top level of a Sharepoint site, and then allow the sub-sites to see the master list. I've tried working with Content Types, and either I'm slow and just can't get the concept, or it doesn't seem to apply. Anyone have any luck? ...

SharePoint 2007 Approval Workflow - Any other person can approve requirement

How can I use SharePoint's Content Approval to enforce the rule that any two people in a group can make a change? We have a policy library that any two individuals can update (a modifier and an approver). If I do a group parallel approval, the modifier can approve their own work (I believe). Unfortunately, I don't have access to Visu...

Where is the Content Source Name in the SSP Search Database

I need to locate the table that contains the Content Source Name (along with the ContentSourceId) in the SSP Search Database (OR anywhere else that it gets stored in). I may be able to access this via the SharePoint Object Model, but I want it via the db table access (This is not a good practice according to Microsoft). We looked in all ...

Introduction to SharePoint Designer 2007 object model using VBA

I'm finding it really difficult to find an introduction to the object model used within Microsoft SharePoint Designer 2007. For some reason, the online help if full of "Page not found". I suspect it's similar to the object model used in Internet Explorer DOM. The reference manual is in MSDN online (but not in my local copy) but as with m...