moss

Unit Testing and SharePoint Development

Hi, I am interested in writing unit tests for the SharePoint development work I am doing. Can anyone suggest practical approachs to implementing unit tests in MOSS? Note that any third party tools have to be free (but not necessarily open-source); the company I work for will not pay for additional tooling. In particular, any alternati...

sharepoint document visiblity based on user contribution to library

Hello All, We have a doc library, Requirement is that only the user who has contributed to the document should be able to see the document and other user who has access to the library should not see that. Can you please help me to achieve this. Update: I talked to my TL he said, we need multiple Views on the Doc Library. Any one with ...

How to programmatically get associated webparts of sharepoint list?

Using SPList I want to get all the webpart urls that associated with the list. Is it possible? ...

How do you remove/delete a column in a custom list that you added from existing site columns?

I have a custom list, and I've added a 'Page Image' field by clicking on the 'Add from existing site columns' link on the Settings page for the list. I would now like to remove the field, but clicking on the field name on the Settings page yields no 'Delete' functionality. How do you remove fields from a custom list in SharePoint that h...

MOSS Error Uploading File to Library and Custom Meta Data Not Being Updated

MOSS 2007 SP2 64 bit. Multi-server install. How do I figure out the where to find the document library upload error I am getting? I have document library with a custom workflow attached that will have a PDF document OCR'd during the upload. This library has some custom meta data fields from a content type that are exposed during the up...

Allow multiple values to BDC Column

I have added a column called Customer to my documents library, this is a business data column. What I want to do is relate a document to multiple customers by entering customer codes into this box. Currently I can add 'FLC' for example, but I want to put 'FLC, MFT, SAL' for a specified document as it relates to many customers. Any id...

Programmatically insert a List as a webpart in a webpart page in WSS 3.0

Hello, I tried searching on the net to programmatically insert a List as a webpart in a webpart page but was not lucky enough. Any thoughts or ideas how i could Programmatically insert a List as a webpart in a webpart page Many Thanks! ...

Content Deployment Error: The Remote Upload Web Request Failed

I am having issues with a content deployment. It was working fine on Friday morning. When we tried to run a deployment on Friday evening the content deployment failed with an error of "The remote upload web request failed". I've been Googling things for a while, it's not an issue with a file size or destination server name error. The...

MOSS 2007 Published Site Page Status

Greetings all, I have a question. On my MOSS 2007 dev box, I created a new sharepoint site using the Publishing -> Publishing Site template. Now, On this site, I can create pages, check them in, publish them, etc. What I want to do is create a scope that I can do searches on. However, one of the filters I want to apply to the scope...

MOSS - Programatically set SpecialPermissions

I have a MOSS workflow where on the first form, the user can choose a colleague to evaluate him. Say user A selects user B. After the form is submitted, a new task is created for user B to evaluate user's A. My problem is that I need to make sure the task is only accessible to user A, and not to user B, nor any other user in the system...

Save a Site Collection As A Site Template (.stp) File

Hi, I would like to be able to save a SharePoint 2007 site collection as a site template (.stp) file. Is this possible? Thanks, MagicAndi ...

Parse HTML meta tags on upload to SharePoint

SharePoint parses and synchronizes custom document properties with SharePoint properties for MS Office documents "out of the box". I need to configure MOSS 2007 to parse HTML meta tags and synchronize them to custom SharePoint properties in a similar fashion when HTML documents are uploaded to a library. Meta tags in the following for...

Filter a sharepoint list dynamically

I have a task list which contains tasks which are submitted on the end date of every project phase. I need a list view which displays the submissions for the most recent project phase. Currently, this is implemented by specifying the most recent project phase end date as a filter condition. Whenever the tasks for the new project phase ...

SharePoint - Invalid Field Name Error

UPDATE Worth noting that this is only happening when the site definition is called from SPWebApplication.Sites.Add, if I use the UI then this works fine. My code is impersonating the system account when calling this code. Am I right in thinking that the ApplyWebTemplate() method of SPSite is asynchronous? If this is the case then my ...

Customizing the advanced peoplesearch question

I am trying to customize the advanced peoplesearch, the particular field I want to change is Department, at our client these departments are set and I already made a content type which is a dropdown containing all the departments, I don't see a way to change the departmen field in advanced search from a textbox to a dropdownbox,... This...

Setting up Sharepoint/IIS to receive connections via SSL (https)

Here is our situation as it stands now... -We have a windows server 2003 with IIS 6.0 setup purely as a MOSS 2007 server. This server has a site developed by us that uses Sharepoint to store Infopath (xsn) forms. The website (ASP .NET) will figure out which form the user is requestin, access it from the Sharepoint site and then prompt u...

SharePoint Feature Activation - Value does not fall within the expected range

I have started writing a simple feature to create a site column, and a content type. If I try to activate the feature as such, it gives me the error Value does not fall within the expected range and nothing much more helpful. If I remove the ContentType tag, the feature activates just fine and I can see the newly created Account site col...

On MySite Creation in SharePoint, How Do I Add a Customized My Home Page?

Hi, I need to add a customized My Home Page, using a specified page layout, on the creation of a new My Site in SharePoint (2007). Can anyone give me any pointers on how to do this, preferably without modifying the Master page (as detailed here)? Thanks, MagicAndi ...

MOSS 2007: Alternate Access Mappings without the "www"

I am having some trouble with Alternate Access Mappings. I am not sure how to configure both the "www" address (www.mysite.com) and without the "www" (mysite.com) In Central Admin, I have set up the Default Zone with the 'www' and the Custom Zone without the 'www' In IIS 7, I have configured two bindings, one for each. This seems to ...

SharePoint CAML search on Modified By

What do I use in the value to return results using the following CAML query in MOSS2007? The query is currently not returning any results. I have tried using the Account Name and the name displayed in the list but to now avail. <Eq><FieldRef Name='Modified_x0020_By' /><Value Type='User'>domain\someusername</Value></Eq> ...