sharepoint

Web Part Feature and Reading XML File

I have deployed a custom Web Part as a Feature. I used STSDEV to create the Feature and supporting config files. I ran into some problems trying to add a simple XML file to contain values that I need to read. Where do I place the XML file within the Feature project and what do I need to do to access that file? After several attempts at t...

How do you extract a value from a field of the associated item in a custom Sharepoint workflow?

I'm creating a custom WSS workflow in Visual Studio 2008 and have a 'create task' activity. When creating the task I want to be able to reference some of the field values from the list item that is associated with the workflow and for the life of me I can't seem to determine how to get at the values within the fields on that item. I know...

Is there any way to change the index of menu items in a SharePoint menu?

When the "New" menu item on a Document Library expands the default seems to be to list the document templates for that list and the "New folder" as the final element (if "New folder" has not been disabled). I have added a new custom menu item but it is displayed after "New folder" and I would like it to be shown at index 0 in order to b...

can log4net be configured to run under its own identity?

I'm thinking about using log4net in a MOSS(SharePoint) 2007 project, but I need to know if the logging can easily be configured to log using a certain username + password. ...

How to check if MOSS Standard or MOSS Enterprise is installed?

How is it possible to check if MOSS Standard or MOSS Enterprise is installed? ...

Workflow Auto Cleanup timer job does not run

I am testing a couple of workflows for their workflow history cleanup time intervals. The workflow History needs to be retained for a specific number of days. I have implemented the solutions recommended here My problem is that, now I need to test my code to see if the workflow history is getting cleaned up after the exact number of da...

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. ...

Really strange IE 8 Beta 2 behaviour

PLEASE DON'T CLOSE -- IT'S PROGRAMMING-RELATED (BUT NO CODE INCLUDED) I develop MOSS sites, and I need to make sure my sites are compatible with IE 7,8 and FireFox. I have an external testing site (Windows 2003, IIS 6) and when I browse to this MOSS site, I can authenticate without any problems using IE8. When I browse to my local i...

How do I access the data passed back from a workflow association form?

How do I access the data passed back from a workflow association form? Scenario: When an admin associates a workflow with a sharepoint list I want to display a infopath form that allows variables to be set that apply to all instances on that list. The association form comes up as I would expect and it submits the data entered back to th...

How to Create a Managed Path through SharePoint Object Model

This is a question for a WSS/SharePoint guru. Consider this scenario: I have an ASP.Net web service which links our corporate CRM system and WSS-based intranet together. What I am trying to do is provision a new WSS site collection whenever a new client is added to the CRM system. In order to make this work, I need to programmatically ...

Clean document roles in a Doc Library

Hello guys... I have been developing an event handler to clean up the RolesAssignments of the new item of a document library in MOSS. I’ve searched for a method that could clean all the RolesAssignments efficiently, although the best way I found seams to be loop through the RolesAssignments and delete one by one. ¿Is there another way ...

ApplyWebConfigModifications not working in the Farm

So, I am trying to deploy a Web Application feature that updates the web.config using the WebConfigModifications collection. There is lots of information on doing this including all the issues you run into so I am very confident in the code but no matter what I try the config elements are not added to the web config. This works fine in t...

How do you insert a query value as a parameter in sharepoint designer?

I am trying to create a Data Source in SharePoint Designer that connects to a SharePoint List via XML Web Services. I have created the Data Source and connected to the list in question. I can view all the data using GetListItems, and I want to filter it using the query parameter. The query parameter takes an XmlNode, and when I put th...

SharePoint A-Z groupby in CAML

Hi I'm using the content query web part and have exported it to a webpart file to allow me to change the queryoverride and groupby elements. I want to group the results alphabetically, so I thought that I can maybe use a function to grab the first letter of the title of the list items and then group by this, it might do the trick. Prob...

MOSS Domain Configuration

Hi, We are having some issues getting SharePoint to work as we want it to. We have an enterprise MOSS configuration on our domain and have the entry http://intranet pointing to it on port 80. We also have another site collection and have pointed an internet domain name http:/nww.oursector.nhs.uk at it. We have done this to allow those...

How to upgrade a long running SharePoint Workflow already in production

I have been tasked with helping the deployment of a Phase 2 of a previous SharePoint deployment. The original deployment has custom workflows that have been updated in phase 2. Is there a "How-To" for this type of situation? Some of the pitfalls we have seen requires you to mark the original workflow to not accept any new instances, th...

Storing Feature Configuration within Sharepoint

Hello, i have a Sharepoint feature that essentially extends Lists with a new feature, using a List receiver. For each list the feature is attached to, i need to store some configuration. Now, the first thing that came into my mind is the obvious solution: Have a global list. That works of course, but I wonder if there is some way to st...

Sharepoint stripping HTTP Headers

I have a custom sharepoint app whose security model depends on an HTTP header. When a request is made from the mobile device, an http header called HTTP_RIM_DEVICE_EMAIL is added to each request. I grab the http header via the following method: private static string GetValueFromHeader(string headerName) { HttpRequest...

Best project format for VS2005 + SharePoint deployment?

First, let me use one sentence to let out some frustration: My god, developing for SharePoint is a f-ing mess! OK, sorry, let me focus in on 1 specific scenario. I've developed (VS2005) some functionality that works if I deploy it as a DLL on a SharePoint (MOSS2007) server. Now I'm trying to identify the best way to package it as a d...

Sharepoint site takes a while to load first thing in the morning

Our team has built a site using Sharepoint and a few custom webparts. We've noticed that the site takes a while to load when first accessing the site in the morning. Subsequent accesses are fine. We suspect that Sharepoint is reindexing its lists, etc. Has anyone else seen this problem with Sharepoint? Does anyone have a suggested ...