sharepoint

Custom NewForm.aspx not showing changes to DataFormWebPart

I've create a custom list with schema.xml, custom DefaultTemplates.ascx [copy of the DefaultTemplates.ascx render template "ListForm"], and custom variations of the NewForm.aspx, EditForm.aspx, and DispForm.aspx. I've hooked up the forms in the schema.xml and clicking "New" on the default AllItems view does go to NewPage.aspx as I would ...

Extracting a version of a List in Sharepoint based on date

Hi All I wonder if anyone is aware of a way of extracting a list in Sharepoint based on a version's date. For example, we have a list and over time different people are editing and adding records. Say we want to see the list's contents on a particular day, so that newer items and recent edits are excluded. In other words view the lis...

Createing a Document Workspaces for Workflow in Sharepoint

I need to create a workflow that routes a document to a reviewer and upon approval creates a document workspace in SharePoint 2007. Setting up the workflow for the the approval of the document is simple, but I'm unsure of how to create the document workspace upon approval. I want the document workspace to be created programmatically once...

User able to see data associated with their regional office in sharepoint

Hi, I am new to sharepoint. My system has various users and each one is assigned to a regional office. I only want users to be able to see data that is associated with their regional office. I only want the users to be able to manipulate or view objects from their own region. How can I do this in sharepoint. Can somebody please help...

MySQL for persistence for SharePoint (WSS)

Hello. This question has been asked many times in many forums but I haven't seen a confident conclusive answer. So I'll try my luck again. I want to know whether and how is it possible to use MySQL as the persistence node (configuration and content) for SharePoint. As of now, I am only interested to know about WSS (I guess same would ...

Can I embed a 3rd party widget in a Sharepoint site, passing along authentication info

Hi there, I am the developer of a 3rd party widget (included via an iframe with javascript) and a potential client wants to integrate it into their Sharepoint intranet. In order to work properly, I need to at a minimum have a username passed through to my JS code (which I in turn pass as a parameter to the iframe's URL), so that I can d...

Modify installed SharePoint feature

I have written a sequential workflow in SharePoint on our development environment. After testing, we decided to deploy this workflow as a feature on the staging environment. We did the following: copied the strongly named assembly to the GAC using gacutil copied feature.xml and workflow.xml to WebServerExtensions/12/templates/features/...

Sharepoint upgrade/migrate lists in production environment

Assume you deploy a Sharepoint solution, which consists of multiple WebParts and multiple Lists. Now in a later version of this solution, you want to extend/modify these lists, like add or remove columns. How do you deploy such changes to a production environment? Meaning, how do you apply these changes to a production environment where...

[SharePoint] - Asynchronous methods in a webpart

Hi all, I have been coding for some days on a webpart now. The point of this webpart is to clean up a given document library. I have 16 000+ msg files in there and I have to validate the To and From headers of each msg file against some given rules. All is well, except for the fact that this process takes forever. All possible values ...

XML document within Sharepoint webpart codebehind

Hi, I am loading an XSLT file in c# sharepoint webpart code as below: string path = context.Request.MapPath("/_layouts/RSSWeatherXSL.xsl"); XslTransform trans = new XslTransform(); trans.Load(path); // loading xsl file The XSLT file is rather large around 134 lines. I need to reference images within the XSLT the path to wh...

How to deploy and activate SharePoint solution in SharePoint Server 2010 using web services?

In SharePoint 2010, site templates (.stp files) are deprecated. Instead, solutions (.wsp files) are used to achieve the same effect, but also beyond that. Uploading .stp file and using it was straight forward in MOSS and WSS. However, in SharePoint 2010, it is necessary to upload a solution and to activate it before using it. I need th...

Customize Current Navigation Via SharePoint API

Hi, I have a requirement to remove a number of the default nodes (i.e. People and Groups, Sites) in the left hand current navigation bar using the SharePoint API. Can anyone give me any guidance on how to achieve this? Thanks, MagicAndi ...

Update sharepoint list view programatically

Hi All, I have an aspx page with inline code in which I am trying to update the view programatically by setting view's Query property to my CAML query. When I run with administrator user everything works perfect view get updated successfully but when I logged in with a user who belongs to visitor group and having read only access then I...

Getting Error : "/SiteDirectory/_layouts/testlists.aspx" contains reserved name. Please try another one.

Hi, I am trying to access sharepoint list and error: ""/SiteDirectory/_layouts/viewlists.aspx" contains reserved name. Please try another one." Code view : private void button1_Click(object sender, EventArgs e) { //String parameters to enable site and list access const string siteUrl = "http://Myserver/"; /...

Delete Publishing Pages from SharePoint Publishing Web

Hi, How can I delete pages from a publishing web using the SharePoint API? Thanks, MagicAndi. ...

No-code solution for calendar view of SharePoint news items

MOSS provides you an excellent option to create a "news" site in your portal. It adds some "Archive" functionality, but it is very limited - a list of all articles published in that particular site. My users would like to see something better, a real archive of published articles, browsable by publishing date. What I've tried so far, ...

Is it possible to use SharePoint web services to retrieve all items in a folder with a given ID?

I'm using the GetListItems method of the SharePoint List web service. I would like to get all items in a given folder, with a given ID (not path). The method allows you to pass in QueryOptions xml, which lets you set the Folder path. However, since paths can change, this is not that useful to me, and it would be much better to be able to...

Sharepoint Webpart Properties / Rich text box ?

Is it possible to make a String in a web part properties editable with a rich text box (to be able to use the Bold, etc.) ? UPDATE / SOLUTION The 1st class is the "Custom property" that should appear in the toolbar using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft...

Sharepoint item updating event - cancel event back to editform page?

I have an event receiver for a content type to validate some data in the ItemUpdating event. If I cancel the event (some of the data isn't valid for example), I set the properties cancel to true: properties.Cancel = true; properties.ErrorMessage = "..."; SharePoint cancels the updating event ok, but shows the standard SharePoint error...

Edit Existing List Item in MOSS 2007

Hello, With Sharepoint if I add a new list item, I can then click on that item to view. Then click on it again to edit, and it works fine. However, if I click on an existing item (that was added last week for instance) then I can view no problem. If I then click on edit I just get an empty page. (When I say empty, I mean that the par...