sharepoint

How can I display a total for a calculated column in a SharePoint list?

I have a column, B, that is calculated based on another column, A. At the top of the list, I'd like to display the sum of B. When I look in the Totals section in the Create/Modify a Column screen, I only see column A (actually, I only see all the non-calculated columns), so I can't choose to sum column B. Is there a way to display a tot...

Sharepoint custom workflow activity fails silently; FaultHandler not being called (or failing)

I have a custom Sharepoint workflow activity created in Visual Studio that works and logs properly in my test environment but fails in production with a generic "Error Occurred" message in the Workflow History list. In order to debug the activity (since remote debugging against production is a last resort), I implemented step-by-step lo...

Free alternate to sharepoint portal ?

Hey Guys, Would anyone like to recommend free alternative to SharePoint Portal ? We want to create a internal portal site for Content Management with features like Permissions, History etc. ...

Sharepoint 2007: Insert a list item with hyperlink field via web services

I need to know how to insert a list item with a hyperlink field using the oob web services. I already have the code to do the insert, just not sure about the hyperlink. Here is a standard text field (just part of the code): + @"<Field Name=""Annotation"">" + this.messageEnvelope.DM.Annotation + "</Field>" Now how can I insert a hy...

add custome template in shrepoint site

Hi, I have a dotnet implemented site. I want to create same site template in sharepoint. what i have to do. Please if possible tell me detail steps. waiting for reply......its too urgent ...

VB.Net command line (console) program with parameters for SharePoint

Hi, I would like to create a console program in VB.net that would allow parameters. What i would like to do is in the code below add parameters so the webpart page can be created from the Run menu. e.g. C:.......\MyProgram.exe "Design" --This would then create the Design webpart page. I tried looking at the internet but was not very su...

Complex mapped properties in Sharepoint

Is there any way to set a more complex mapping in a sharepoint profile? What I'm trying to do is set it so that a user's picture is set as the equivilent of String.Format("http://sharepoint/Photos/{0}_{1}.jpg", givenName, sn) But the properties only seem to support a simple 1-1 mapping of AD to profile attributes. ...

Overriding Render on Sharepoint page.

I have overriden Sharepoint page's Render method to cut out some script tag from the html sent to client browser like this: protected override void Render(HtmlTextWriter originalWriter) { string content = string.Empty; using (StringWriter stringWriter = new StringWriter()) { using (HtmlTextWr...

Disable NEW options in document library

I need to disable new item creation (new document) and Connect to Outlook in a specific document library. I would like to remove the button completely if possible, but will settle for disabling it by eliminating the "Create a new document" dropdown as well as the on-click function of the New button itself. The code provided here does...

Changing the Sort order on BDC Actions in SharePoint

We have a number of Actions defined in a BDC (Business Data Catalog) definition in SharePoint, and need to change the order they are displayed in the UI. Within the Action defintion, there is a Position field, which we are specifying, however, the UI wants to display everything in Alphabetical order, which isn't what we are after. An e...

Change Master Page on per theme basis

I have designed a number of sharepoint (2007) themes, half of them use one MasterPage and the other half use another. Is it possible to switch the Master Page based on the Theme in use? ...

How can a web part know it's EditorPart is open

I've created a web part with a custom editor part. Now I want to make changes in the behaviour of the web part if the editor part is open. I can almost get it to work by setting a flag in the CreateEditorParts() method except that also fires when the user clicks "OK", "Apply" or "Cancel". The page will render without the editor part op...

WSS GetListItems Not Returning Folders without Inherited Permissions when Calling with GUID

WSS 3.0 List Service I am running GetListItems() on a Picture Library (name Pictures) using the follow CAML query: <Query> </Query> <ViewFields> <FieldRef Name="EncodedAbsUrl"/> <FieldRef Name="Title"/> <FieldRef Name="ContentType"/> </ViewFields> <QueryOptions> <Folder>Pictures\Uploads</Folder> <ViewAttributes Scope="Recur...

Problem uploading file from from VB.net to Sharepoint( WSS 2.0)

Hello Experts, I am trying to upload some files from local machine to Sharepoint document library. The file I am trying to upload is c:/uploads/route.pdf My sharepoint site URL is http://companyportal:9191/Sites/Travel I have a document library called Travel docs under Shared Documents. The actual URL for the document library is http:...

Microsoft.sharepoint.dll for WSS 2.0

I have a VS.net project where I need to add a reference to Microsoft.sharepoint.dll where can I find the dll. I am running my web application on XP Professional box and I cannot install WSS 2.0 on my machine. I need to programmatically access a sharepoint site which is on WSS 2.0 from aSP.net application. Please help Thanks ...

Creating profitable sharepoint webparts

At my day job, we are currently porting our portal to Sharepoint MOSS 2007. Like it or not, there is alot of big companies following suit. After working with the consulting company that setup ours (and buying their EXPENSIVE crappy webparts), I wanted to know some annoyances in MOSS 2007 that would make good commercial webparts. Or would...

how to include my asp.net website under sharepoint ?

I i have the asp.net web site with c# + sql server 2008 connectivity + css + javascripts + ajax . I have a solution. i want to run this site under sharepoint . What i have to do for integrate this ? ...

Why does OnLoad / CreateChildControls order change at postback?

The web part lifecycle is described like this: On Page Load Constructor OnInit OnLoad ConnectionConsumer method is called if web part is connectable CreateChildControls ... On 1st Postback (PostBack click handler sets ViewState via public Property) Constructor OnInit CreateChildControls On...

welcome.ascx not rendered by render method on Sharepoint masterpage

Hi all, I have the following problem: writing this method on a sharepoint default masterpage (blueband.master) protected override void Render(HtmlTextWriter output) { StringWriter w; w = new StringWriter(); HtmlTextWriter myoutput = new HtmlTextWriter(w); base.Render(myoutput); myoutput.Close(); m_sXHTML = w....

SharePoint - An unexpected error has occurred.

In SharePoint I am getting the following when I go to my new web part page: Error An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issu...