sharepoint2007

How to delete the cache of SPNavigationNodes in Sharepoint 2007?

I have a website in Sharepoint. As you know,in settings users can order the sites and pages as they want in exploration, and then you can get these items with this order with: SPWeb web = CurrentSite.OpenWeb(currentSite); SPNavigation nav = web.Navigation; SPNavigationNodeCollection nodeColl = nav.QuickLaunch; The problem I am havi...

Why would a web part fail on constructor the first time it's being added to a page?

Hello, This question is a bit specific (MOSS2007) and I don't high hopes for getting an answer, but maybe luck will smile upon me. I have a web part that works except the very first time it's being added to a page. It throws an exception inside a constructor when I'm trying to open a connection to a SQL server. The demand for the SqlCl...

SharePoint ListItem Error: "Value does not fall within the expected range"

Hi I am developing using the SharePoint namespace and I ran into the following error when I try to retrieve a Title field from the list items. "Value does not fall within the expected range" I know however that the field exists because I printed out all the fields. string value = (string)listItem[listItem.Fields["Title"].Id]; Console....

Creating a custom field that requires unique values

I am implementing a custom list definition that contains several columns. A requirement to one of the columns is, that it can only contain unique values. If a user enters a value that is already present in another list item, a validation error must be shown. Are there any options for doing this OOTB, perhaps in the list definition or in...

Is there a reliable way to find out last accessed date in MOSS 2007?

Site Usage report in Site Administration does not help. I also tried querying the SQL Db to read daylastaccessed but that would not help. 'GetUsageData' method of the Object model only reads data for last 1 month and the "Most Recent Day" value is not accurate. Also I want a report of the last 6 months. The search crawler too modifies t...

Item-Level Permissions (Edit only their own but, read everyones)...

I have a list which I've set item-level permissions on. I set it to allow users to read all items and only edit their own items... The issue is that if I do this then I can still edit all items... If I change it so that I can only read my own and only edit my own then it works as expected... Anyone have any thoughts on why this would...

SharePoint - simplest solution and feature config to register a server control?

I would like to know what the XML is for the simplest feature and that will register a Server Control in the GAC, and add it the safe controls section of the web.config for the SharePoint site. My assembly: MyServerControl.dll (MyServerControl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3249363c0f6f8c59) I can manually add it to...

Read List Items From Two Different Lists in MOSS 2007

Duplicate of Read Data from 2 Lists into the Third List in MOSS 2007 I have two custom lists displaying invoice data one for each state, my boss wants to have a third list which will have to read one (column)/listitem from each of the first two lists, I'm a newbie to SharePoint 2007, any tip as how to approach this will be greatly ...

SharePoint user's AD group membership

I've been tasked with creating a SharePoint web part for our new web site. One of the things it needs to know is which AD groups the current user belongs to (each site user will belong to one or more special security groups within the domain.) Is there a part of the SharePoint API that exposes this information, or do I need to query AD d...

Using JQuery autocomplete and external Json url in sharepoint 2007

I am trying to implement autocomeplete box in a custom webpart in sharepoint 2007. When i use a static file in same domain (for textbox with id f1) everything works fine but when I use a remote url that gives a json output (for textbox with id f2), it gives a Permission Denied error in javascript. In the final page following is the HTML ...

Sharepoint choice field

I need a choice field (in a site column) to reference a list I am importing into sharepoint. This list will very infrequently be updated to add additional choices. How would I create this column? Programmatically? Well see it is a lookup per say... just trying to figure out how to code it... I'm assuming I need to import the list fir...

Some SharePoint pages serve as http in https environment

I have a WSS 3.0 system using SSL where every page is supposed to be served as https. Almost all pages do come out as https, but in certain cases I click on a link and that brings up an http version of a page (which does not load). In those cases I have to put the 's' in by hand to get the page to load. Places where this happens are: /...

How to add a custom built webpart to a custom view aspx page in list definition project

I have developed a list definition project and created a custom view aspx page to be the default view of the list. I would now like to add a custom webpart to be displayed in the custom view aspx page. Any ideas of how it can be done? ...

ItemAdding never fired

Hi, I have a custom content type with two event handler attached : ItemAdded and ItemAdding. The first one (ItemAdded) is fired without problem. But the second one is never fire. I've attached the event using API et declarative way. But nothing change. Do you have already get the same issue ? ...

Formatting hyperlink as a picture in a custom list schema

Hi, In my custom list XML I added a few URL fields. one of them has to be displayed as a picture just like when you select "Format URL as: Picture" in the fields settings of the UI. In the customList's schema.xml I haven't found any place where to override the html markup for a URL type. Any help or clue is welcome :) Thanks, teebo...

To Create an Employee directory

We are researching the various options that exist in our environment to create an Employee Directory. We have a SharePoint portal, AD and recently moved from Lotus Notes to Exchange. Our current employee search is a custom Notes DB that has since been retired. Since moving to SharePoint an year ago, we've used a custom list using ShareP...

Failed to determine definition for Feature with ID... - unknown GUID

I am in the process of developing a Feature to install a WebPart with associated List and List Instance. On deployment of the list the following message is logged: Failed to determine definition for Feature with ID 'cdca545a-333a-4b3f-ba15-ac3cdbb12312'. Skipping this feature for element querying consideration. (line breaks added for ...

Sharepoint List added to Create -> Custom Lists on Feature deployment.

I am building a SharePoint Feature to deploy a simple WebPart and a custom list within the "Web" scope. When the solution is deployed my list is immediately available in Site Actions -> Site Settings -> Custom Lists. If you try and create an instance of the list I receive "File Not Found" If you activate the feature a second copy of th...

Looking how to Implement Document Conversion in MOSS 2007

We've been tasked with creating a MOSS workflow that on it's final step will convert a document (most likely from word 2003 or 2007) to PDF and watermark it with the current date. So far I haven't seen a definitive way to do this. Have looked at using the MS Word Interop dlls, but we will not be installing Word (or Office) onto the ser...

One Sharepoint Feature or many inter-dependant features

I have a small Sharepoint Feature project in VS2008 with STSDev 2008 which comprises of a WebPart, a List and a List Instance (of the aforementioned List). The WebPart depends on the existance of the List as does the List Instance. Would I be better creating one feature that deployed all three components, or packaging up the three compo...