sharepoint

updating a column on checkin through event handler

Hi, i have written the following event handler code to update a column in the document library, on checkin of a document: Select Case listEvent.Type Case SPListEventType.CheckIn sLog = sLog + "Newest Item is Checked-out" + vbCrLf Dim ApproveStatusBoolean As Boolean = True For Each oField In oItem.Fields If (oItem("ApproveSt...

Unable to deploy new SharePoint site template assembly version

I did a build of my SharePoint site template solution assembly and successfully deployed it to SharePoint, it was version 6.4.0.2032. I did some testing and found a couple problems with my code. I fixed the issues. Uninstalled my solution via "setup.bat /uninstall". Rebuilt my assembly to version 6.4.0.2033. I again installed my new temp...

Setting up the SharePoint+Silverlight Blueprint Colleague Viewer Web Part

I'm trying to get the Silverlight Colleague Viewer webpart to work on my test server. The silverlight player renders the Viewer but it fails when it attempts to access the WCF service. The error below is caught by IE 8. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR >1....

Evaluating Sharepoint vs ASP.NET as a development platform

I am evaluating Sharepoint (not MOSS) vs ASP.NET as a development platform for an upcoming solution for our team. We will be developing a solution for broad (we hope) deployment across a variety of environments. I am identifying categories to evaluate pros / cons for each platform choice. I have picked categories that are applicable ...

SharePoint: How to get a user's last logout or last session's end date/time

Hi, how could I determine the last login date/time of a user on a MOSS 2007 web application? Till now I didn't find this information within the object model. I've already thought about requesting the lastLogonTimeStamp form the AD/LDAP but this will be very imprecise. Another idea would be to write some code to store the login date/...

querying ldap to retrieve groups user is member of (in sharepoint)

I'm using Sharepoint in combination with Nintex. The possibility to query the ldap is available via Nintex, and basic querying actions work well! Now I am trying to get an array or collection of the groups the user is member of.. i've tried (&(objectCategory=group)(member=cn={itemproperty:ldapName},dc=MyDomain)) Unfortunately this doe...

WebPart security

What is best practice to ensure only the correct users can see a webpart in Sharepoint 2007? Security Groups, and Audiences have both been suggested to me. ...

Editing Word Document

Is it possible to edit and insert entries in a word document that is hosted on SharePoint? I need to fill in a reviewer's table based on who made the last change to the document. I know I would use an event receiver to do this, but how do I interact with the word document interactively? ...

Change "access denied..." text string for document library web part.

I have a MOSS publishing site and a document library with it's own unique permissions. On the site home page (default.aspx) I have a document library webpart that shows a list of documents. If the user does not have permissions to view the documents the web part currently displays the message "Access denied. You do not have permissio...

How can you make your custom property of a webpart in SharePoint 2007, sort to the top of the property pane?

In SharePoint 2007, is it possible to programmatically sort the custom property you created to the top of the property pane? So when someone edits your webpart it would show at the top, rather than at the bottom by default, so that the user wouldn't have to scroll to the bottom? Here's my code, for reference: private string _strMai...

ServerContext.Current is null

I am facing strange issue. I have wep-part that reads data from user's profile. Everything is fine than I use short server name say http://server but I keep ServerContext.Current returning null then I access the same page with fully qualified server name say http://server.zone.local where zone.local is DNS suffix of the zone. Did anyon...

Exporting an SPGridView to a document

I have a webpart which uses SPGridView to render tabulated data. I need to provide a button in the webpart, which upon clicking will export the SPGridView into a document, preferably, an Excel Sheet or a Word document. How do I export the data from an SPGridView? ...

Visual Studio Project GUIDS

Following on from this question... "how do you tell the visual studio project type from an existing visual studio project" How do i add project guids into my csproj file to enable me to add other types of form/controls. For instance I create a class project solution and want to be able to add web forms and web user controls to the pr...

Sharepoint - trying to get value of a task field into a workflow

I am making a sharepoint state machine workflow. The first state has a "create task with content type" as the task. The content type has a field called "isApproved". I am not using any infopath forms. I am trying to get the value o fthat field to evaluate if the document is approved or not. No matter what I do I am getting "object not se...

SharePoint 2007 Publishing site and Audience Targeting in Web Part

In a Publishing site I have web part that has to show news items from the list that has Audience Targeting field. I am using CAML query to retrieve small number of last news items. Is it possible to specify Target Audience in the CAML query ? If not, how should I do it ? Retrieve all results and than apply filter in a loop ? I am p...

Workflow that knows which fields were changed

I'm writing a workflow that needs to perform certain actions depending on which fields are changed when someone edit's an item. For example, if a user goes in and removes a role (job) from an item (staff member) then I need the workflow to realise that the role field was changed, deduce which role was removed (or potentially added) and t...

Is it possible to limit the lines of text displayed in a Sharepoint list view?

The clearest way to explain this is with an image: http://i42.tinypic.com/fc1gdk.png I want to only show the first two lines of the "Solution" field, as otherwise with a long solution, it becomes very hard to browse the list. Is this possible? I've looked at the list and view options, and nothing is apparent. ...

Is it possible to format a NumberField in a page layout?

I'm developing a SharePoint publishing site and setting up its content types and page layouts. I need to display the value for a Year field with type Number. The markup currently is: <SharePointWebControls:NumberField FieldName="Year" runat="server" id="Year" /> The problem with the default behaviour is that it shows each number with ...

Unwanted SharePoint context menu

I created a custom lookup field type which works fine. However, there is a context menu for every item in columns of this type. I didn't do anything on purpose to add this context menu. How to get rid of it? ...

MOSS 2007 Server hanging problem - AppDomainUnloadListener.RegisterSelf() & PublishingHttpModule.Init()

Hi, Recently Sharepoint server getting hung now and then; when I see the Logs, I found lots of entries like this, 04/17/2009 10:07:09.51 w3wp.exe (0x11C0) 0x0CF8 CMS Publishing 8zug Medium PublishingHttpModule.Init() calling AppDomainUnloadLis...