splist

Why is SPList's LastItemModifiedDate not the same as the modified date shown in the list?

I have a document library that I am accessing programmatically as an SPList. When I use the LastItemModifiedDate property of the list, the DateTime returned is {1/7/2010 1:37:41 AM} but when I browse to the document library (with my web browser) I can see the most recent modified date is 7/01/2010 12:37 PM (this is the correct local time...

SPList and SPSite name - different screen and file name - is it possible?

Hi, Is there a possibility to have different list or site display name (on screen) than the file name? I mean to display other name in left quick launch bar than the file names itself? For example I would name list like A on screen, and call it in my custom webpart like B. Thanks in advance for help! ...

Setting ForceCheckout on an SPList

I'm trying to set the ForceCheckout property on an SPList item and it's just not taking. I'm calling the Update() command as required. All it should take, in essence, is the following two lines. $myList.ForceCheckout = $false $myList.Update() Any ideas why this isn't working? It's remains $true no matter what. ...

How to block the possibility to add the same record to a SPList?

Hi, Is there a possibility to block chance to add the same data to SPList? I know that two records always are different regarding the ID field. I would like to validate other custom fields added previously by me, and don't allow of adding same field's value. Can anybody tell me how to implement this? I can guess that event receivers cou...

Re-inheriting permissions from parent SharePoint list

So I know how to break inheritance from a list (SPList.BreakRoleInheritance(true)), but how do you reinherit from it's parent programmatically? Thanks ...

Query Datetime field in SPList

Can u tell me how to compare the date as well as time stored in a SPList as a DateTime field with the current system time using a CAML query? ...

Is possible to inherit from SPWeb?

Hi, Is possible to inherit from SharePoint classes such like: SPWeb, SPList etc. or this classes are sealed? I couldn't find right answer. Chris ...

Programatically changing field order in Sharepoint 2007 list

I'm adding in two new fields into an already existing Sharepoint list programmatically through a feature. The fields are being added successfully but I have been unable to adjust the column order. This task is done simply through the UI by going to List Settings and then Column Ordering, but I have been unable to achieve the task progra...