sharepoint2007

How to get current user using WSS 3.0 & Membership provider inside ItemDeleting event receiver method?

Hi, I need to get current user name in my Wss 3.0 application. What is more I would like to do this inside ItemDeleting method which is inside event receiver for SPList. I've tried SPContext and HttpContext objects but they doesn't work. I have to add that I'm using Membership Provider and SQL Role provider. I'm not using Active Directo...

How to add link to error message within ItemDeleting event receiver method?

Hi, I have an SPList event receiver method like: ItemDeleting(ByVal voHttpContex As HttpContext, ByVal voProperties As Microsoft.SharePoint.SPItemEventProperties) To block unwanted operation i uset this code: voProperties.Cancel = True voProperties.ErrorMessage="This is my error message." After executing above code error message w...

How to get started on Infopath 2007 and Wokflow in MOSS 2007 ?

Hi, I am kind of new to SharePoint and have so far mostly worked with WebPart development. After two week or so i will have to work on an assignment where i need to know InfoPath and workflow can some one point me to some articles or help to get me started on that ? Also ,It would be good to know which topics I should cover while i am...

SharePoint 2007: How to upload multiple files to a List Item?

Hi, I know that a Document Library in SharePoint 2007 has a multi-file uploader (an ActiveX control that -- and only if you have Office 2003+ installed) but how would I use this same feature with a normal (non-document-library) List item? Uploading files to a normal List item involves clicking the "upload" link and browsing/uploading f...

Copy list from one Sharepoint site to another site

I have a 2007 SharePoint site called Beta. On Beta, I have a custom List called MapData. This is a custom list of data that a webpart reads from. Data has been typed into Beta to make sure the webpart works correctly. In production, called Prod, I have that same List called MapData except it has old values. How can I copy the data f...

LookupFieldEditor.ascx in SharePoint 2007/2010

I have searched for LookupFieldEditor example but I could not find any sample code or markup using this control. I want to know how should I use it in a web page in my SharePoint site. ...

Sharpoint: Present list contents in Website

I want to dynamically create "nice" website representations of SharePoint lists: Each line of a list should get its own Website the user can browse through. ie: List: V1 | V2 | V3 -------------- a1 | a2 | a3 b1 | b2 | b3 => Website 1 a1 a2 a3 Website 2 b1 b2 b3 And those webistes should get automatically updated when the...

Sharepoint 2007 File Upload , Page cannot be Displayed

Hi everyone Having a bit of strange Sharepoint 2007 issue , especially for a Monday. Here's the scenario: Users within organisation cannot upload files to ANY doc Lib. User is able to click upload, browse, select the file without any problems. As soon as he/she clicks OK, they immediately get a standard IE error : Page cannot be displ...

Is it possible to use RoleManager features through a sharepoint custom timer job?

Hi... I've developed a custom timer job using the SPJobDefinition class. The idea is to extend the existing Alert Me notifications, by allowing to send notifications to the members of a Role using the asp.net role provider framework. After a lot of trial and error, I'm beginning to think it might not even be possible to use the RoleMan...

IE Never finishes loading SharePoint page when JavaScript is disabled

I am working on a solution that loads SharePoint pages in a copy of IE. When the page finishes loading an event is triggered that executes some code in the application that wraps IE. Now this all works fine and well, until JavaScript is turned off in the browser, a requirement for this solution (Don't ask). Naturally I don't expect the ...

Get current data from SPGrid

Hi, I'm building a little SharePoint app, using the SPGrid to display data. I allowed filtering on the SPGrid, and finally I would like to export the data of the grid to some file. So I added a button to the WebPart for the export. So far everything's ok. Originally (before I added filtering to the SPGrid) I would run a query to get a...

LINQ to XML problem with SharePoint Web Services

I am using SharePoint Web Services to get some list items out of SharePoint for a project i am working on. I am using using LINQ to XML to parse the resulting XML to be put into a datasheet. The problem i am running into is when trying to parse an item that isn't required in SharePoint... var fields = from item in results.Descendants...

Specific change-info in a sharepoint list/listitem

Hi... I'm trying to create a replacement Alert Me notification feature for sharepoint. I've done most of the hard work. I just need to know the best way to get the changes in a timespan. I know about the SPChange class, and the list.GetChanges() method. However the only information I can from this is what has been done like "Update"/...

Using SharePoint's Data Query Webpart to link two lists

I have two SharePoint Lists: A & B. List A has a column where the user can add multilple references (displayed as hyperlinks) for each entry to entries in B A: B: ... | RefB | ... Name | OtherColumns.... ----------------- ----------------------- ... | B1 | ... B1 | ......

Custom text field with syntax highlighting for c# in a sharepoint list

Hi, i need a text field in a sharepoint 2007 list that displays C# code with syntax highlighting. Do i have to develop it on my own or knows somebody a control that meets my needs? Thanks a lot ...

Get the length of a sharepoint list column in a calculated column?

How to get the length of a list column in another column? e.g. I want to get the total number of characters in the column "Name" of the list, so I have created a calculated column called "Name Length" and applied the formula LEN(Name) to this computed column, but this column shows 0 for all the items in the list. Am i using the wrong for...

How to deploy document library custom list forms?

I have created two forms, one for creating a new item in a documnet library and one to display an item from the library. These forms are placed in the forms folder of the document library and i have used the List Form Web part using SharePoint Designer 2010 to create them. Now I want to port them to a production environment; so what woul...

sharepoint wspbuilder single aspx page

Im trying to implement a single aspx page with several externals dll's. Following Zimmergren's tutorial I run into a couple of issues early in the process. After creating my blankfeature1 is it suppose to be automatically populated? Mine shows empty. Im also scoping the assembly to the bin, after I configure that and build the wsp I don...

Getting fields from a list on Sharepoint page

I'm very new to Sharepoint, I have an aspx page on a Sharepoint site that shows a list of fields, including First Name, Last Name, etc. I'm have a console app, in Visual Studio, I'm using for testing communication and data transfer capability between between one web service and another; namely Sharepoint and another web service. My go...

Sharepoint: Add List from another site

I am trying to add a List on the root site to a sub sub site. Tried with Sharepoint Desginer but get the could not be opened error message. ...