sharepoint

Using a sharepoint document library, how can I create 'permalinks'?

I want to be able to link to sharepoint documents without having to refer to the document name which may change. Is there anyway to programmatically add a unique key to the meta-data and then somehow use this in a link? ...

How to reference two versions of an API ?

Hi I have a need to reference two different versions of the Sharepoint API dll. I have a webservice that needs to run under both Sharepoint 2 and Sharepoint 3, but also needs to work with new features provided by the Sharepoint 3 API (Checkout and Content Approval) What is the best way to acheive this - I'm currently leaning towards h...

Does the SQL Server 2008 search problem affect SharePoint search?

Does anyone know if the problems that have been affecting Stack Overflow with regards to SQL Server 2008 Full Text Search performance have implications for the search in SharePoint? As far as I understand it SharePoint search uses SQL Server full text search. ...

How do you instantiate a SPWeb Object from a console app?

I am trying to write a console app that simply lists the number of lists at the sharepoint root. I tried doing it by using the following code, but the object SPContext.Current is null. Any ideas of how to get the web object? SPWeb web = SPContext.Current.Site.OpenWeb("http://localhost") ; ...

Permissions for IIS account

Hi I have a webservice running under sharepoint, on a bog-standard Server2003/IIS6 setup. This webservice needs to open and read a file from a share on another machine in the same domain. At the moment I am getting a System.UnauthorizedAccessException: Access to the path '\strand\DROPBOXES\MattTrinder\SharepointShared\bd116dfa-be0e-4...

SharePoint: Make a list field hidden programmatically

I'm trying to hide the "Title" field in a list. This doesn't seem to work: SPList myList; ... SPField titleField = myList.Fields.GetField("Title"); //titleField.PushChangesToLists = true; <-- doesn't seem to make a difference titleField.ShowInEditForm = false; titleField.ShowInDisplayForm = false; titleField.ShowInNewForm = false; title...

In sharepoint disabling a individual list item from being updated

What im wondering how to do is when someone edits a list item and it goes through my event code that is fired when a change is made and save is hit, i dont want anyone to be able to edit that list item itself while its still processnig that request. So i was wondering if while in that event i can disable the individual item from being ed...

Assigning multiple users to a workflow task in sharepoint

Has anyone able to assign multiple users to a sharepoint workflow task using the CreateTask activity? ...

Registering an event handler for a single list

I have a sharepoint event handler which I want to activate for a single list, not all the lists in the site. How do I go about this? ...

Sharepoint: How do I filter a document library view to show the contents of a subfolder?

A number of business areas I work with use a folder structure to organise their Sharepoint housed documents (not ideal I know, but we're stuck with it). I would like to use a web part page to present a number of views of their document libraries based on the subfolders that the documents appear in, but this is proving more difficult t...

How to get notified about changes on SharePoint groups.

Hi, I'm actual looking for a way to get notified about any changes on a SharePoint group. First I though I would be able to this by attaching a event handler to some kind of group list. But unfortunately there are no such list representing SharePoint groups. My second attempt was to bind a event handler to the content type SharePointG...

Deploy a resource file to App_GlobalResource folder on activation

Does any one know the best way to deploy a resource file to the App_GlobalResource folder of the web application when a feature is activated? ...

Reach Session in a UserControl loaded in a WebPart

I have a WebPart in MOSS 2007 that sets a variable in Session. Later, when loading a Webpart that loads a UserControl, the Session is NULL (not just the variable) The Webpart that loads the UserControl have access to Session properly. The Webpart "lives" within a ClassLibrary DLL, the UserControl are part of a WebApplication. It seems...

Getting the NT-ID of a user in SharePoint

What is the simplest way to get the NT-ID of a user in a C# application? I would probably need to get it only having a name of the user, or maybe an email address. ...

Best ways to Improve Sharepoint 2007 Performance?

OK we are at the end of our rope here, and I’d really appreciate feedback from the SO community. Our basic issue is slow performance by our MOSS-based intranet-- Some environment info: We have a MOSS standard edition for a collaboration based site. The sitedb is 29 Gb we have two VMWare based front end servers. (2x 32bit CPUS ...

How to create and require completion of a subset of several tasks Workflow Foundation?

I have a process that requires approval from any two out of a group of four or five people. I'd like to create a task assigned to each person, and after two of those tasks are complete, delete the remaining tasks and move on with the workflow. Is there a way to create multiple tasks with a single CreateTask activity? Also, I'm still fai...

Sharepoint Workflow Development (2 part question)

Hello everyone, I'm trying to develop some SharePoint workflows for the company I work for, and I'm not too familiar with the ins and outs of the technology. Normally when I want to familiarize myself with something, I just play with it, look at the properties, find all the methods, etc. When I fire up Visual Studio and try to creat...

SharePoint - Adding users from Active Directory in a custom administration form

I have a project where I need to add users to a SharePoint portal, but when I add them, I also need to set addition parameters inside a separate database. I want to add a custom administration screen where the administration can set these values when they add the user rather than forcing them to first add the user then go to a separate ...

Howto add dynamic search parameters to Sharepoint search?

So our scenario is this: We have multiple Sharepoint sites that are created dynamically on a "as requested" basis. Basically there's a new site for each new project. Now, for every site we want to add a search clause that says that only contents with a metadata tag value equal to the sitename should be found. Quick example: There are 2 s...

Is there a good way to store an array in a MOSS custom content type?

I need to store an array in a custom content type in MOSS. This will always be hidden, only used programmatically. Throughout the lifecycle of the list item, I will be adding values to the array. My array may look like this after a while: value1,1 | value1,2 | value1,3 | value1,4 value2,1 | value2,2 | value2,3 | value3,1 | value3,2 ...