sharepoint

How to get current Item in Custom Form Action Sharepoint Designer

On custom edit page of list item, I want to do the following - On clicking Form Action Hyperlink [DataView Control], custom form action will fire to update a item hidden field [Status]. I already tried the following - Passing @ID to the work flow but didnt work - Create a duplicate ID column and updated it with the ID on Item Creatio...

sharepoint spweb and spsite disposal

I've been using the following code in a .NET 1.1 SharePoint 2003 environment and it works great: try { site = SPControl.GetContextSite(Context); web = site.OpenWeb(); ... } catch (Exception export) { output.Write("...

Should my connected web parts support IWebPartField, IWebPartRow and IWebPartTable?

I've been writing some simple webparts, and they communicate via a custom interface type. That's working fine. I've got one ConnectionProvider, with a variety of ConnectionConsumers. I see that the OOTB SharePoint webparts provide many standard connections, apparently through IWebPartField and IWebPartRow (IWebPartTable seems less supp...

SQL Express 2005 to SQL 2008 Workgroup for Sharepoint WSS 3.0

I am trying to migrate sharepoint wss 3.0 databases from SQL Express 2005 to SQL 2008 Workgroup edition. I have backed up the database, but not sure how to best attached/restore them to the new version and get up and running again. Thanks ...

Get logged in user details in sharepoint c# webpart

Hi, After much wrangling I have a development environment for building sharepoint webparts in c#. I'm completely new to SP development, so I haven't quite found the various API docs, so I'm hoping someone can help get me started. Eventually, I want to write a simple web part that allows its user to display different content depending ...

Sharepoint page level security

Hi, Another SharePoint question from myself! I've created a subsite and from within Sharepoint designer I've created a new aspx page, all nice and simple so far. I can't seem to find where I can change the security on this new page, only site admins can view the page and everyone else gets access denied. It doesn't seem to inherit the...

Is it possible to create an API for SharePoint?

Hello, i could not find any idea of how to implement API over the SharePoint(MOSS) framework. Could anyone give me a tip please? What i want to do is create a client application to communicate with the SharePoint. wanting to implement something like following. Client send post request to API implemented on SharePoint, API receive a re...

what triggers "new" when document is published in a document library

Whenever I upload a document in the document library, it says new. What is the timeframe of the "newness" of that document. Also, can that timeframe be controlled? ...

Custom Programming on a SharePoint Server site

Which route should I take? A) Using a SharePoint 2010 Visual Studio Project B) Building a normal asp.net website and incluing my pages using the "Web Part Page" web part in SharePoint Basically I'll be doing some workflows, like filling out travel expenses forms, with approval and feedback. ...

Sharepoint-Information management policy problem

I made a custom content type and I am trying to make it expire/automatically delete, and its not working. Does it only work when the date changes or what? I have read the information posted on the microsoft site, but I can't figure out how to make them automatically delete. Any information would be greatly appreciated. Thanks and hav...

SharePoint Web Services. Using UserPofileService.GetUserProfileByName. After SP upgrade... failing.

The below web services code has worked properly for me for over a year. We have updated our SharePoint servers, and now the below code throws an exception (at the bottom line of code) "Object reference not set to an instance of an object" UserProfileWS.UserProfileService userProfileService = new UserProfileWS.UserProfileService(); ...

SharePoint Web Part on Masterpage not displaying on SubSite

Hi all, Scenario: - A out-of-the-box DataFormWebPart on masterpage connected to a top-level site List. - A subsite using that same masterpage from top-level site. - Error happens when accessing the sub site as below Stack Trace [InvalidOperationException: Operation is not valid due to the current state of the object.] Microsoft.Shar...

In Sharepoint, how do I update the name of a folder in a document library using the web service API?

I'm using the UpdateListItems method of the Lists web service, and I can update an item in just about any kind of list, and folders in non-document library lists, but I can't seem to update the name of a folder in a document library. I must use the web services API, as sharepoint is not local. If my update batch looks like this: <Ba...

Sharepoint | webpage search for document library

Dear All, I totaly new to sharepoint, I would like to create a simple webpage, inside WSBS2008, to search a specific document library. The search should identify the filename of the files and retrive a list of them How should I do it? Can anybody help me starting with this? BR Gameiro ...

Web Part Error: This page has exceeded its data fetch limit for connected Web Parts

Hi Experts, I have a display form with two custom list forms and both are connected to each other and they display the results according to the filter. But when ever I sort on any field, it gives the following error: Web Part Error: This page has exceeded its data fetch limit for connected Web Parts. Try disconnecting one or more Web P...

SharePoint weekly summary alert with calculated columns

I have a SharePoint list that accepts incoming email and has two calculated columns based on the Email Subject. Immediate alerts, RSS etc all work fine but the Weekly Summary Alert has #VALUE! for all the calculated columns. Is there a reason for this? Can I get it to show that actual calculated value? ...

Creating and publishing excel file in MOSS 2007 using data from SQL Serer

Hello, I need help in this matter: We have a template of Excel file in which all calculations are already set. User can request a 'report'. Idea is to create a button on our site (SharePoint portal). After clicking on it a new Excel file is generated. This means to get actual data from database (SQL Server 2005 SP2), import them into te...

Sharepoint get User information

I have MOSS server and users authorization is going trough AD. I want to programmaticaly get some current user information, like e-mail, phome number. I made the following steps: 1) create dll with [assembly: AllowPartiallyTrustedCallers] 2) i have the class PhoneBookCL that inherits System.Web.UI.WebControls.WebParts.WebPart and I try...

How to add ACTIVE DIRECTORY user to Sharepoint group

Hi all. I got an exception when executing this snippet code SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(siteUrl.Trim())) { using (SPWeb web = site.OpenWeb()) { try ...

SharePoint / WSS3.0 : Creating static webpart connections at runtime

I've created several master / detail webparts that need to be connected. We have a requirement the the webparts self discover and connect to other connectable webparts on the page. I've acheived this in a standard ASP.NET page with the following code: protected override void OnLoad(EventArgs e) { WebPartManager manager = WebPa...