SPListItem Hierarchy not Navigable through API

Wednesday, 30 August 2006 04:11 by tariq

In WSS v3, the concept of folders has been introduced into lists, and a folder is also a Content Type, which basically means that you could define your your custom columns/fields against a folder as a content type to track metadata of interest. For example within a Book list, you could have Genre as a Content Type derived from Folders, which could contain a series of book items.

I am not going to argue that  genre is more appropriate to be a field against the book item rather than a folder, but bare with me for the moment.

Now using the API per given book item, there is no direct means of finding the containing folder.

It would be ideal if the SPListItem object had the method

SPListItem.GetContainingFolder() : SPListItem

but it hasnt.

So my only guess right now is to CAML query the list based on Content Type where the Title of the folder should contain the folder part of the book item's url path field which suspect wont give accurate results.

Or query the WSS DB directly

Do you guys have any other ideas?

Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

SPD Poem

Thursday, 24 August 2006 11:25 by tariq

Nope, I am not a bit literary buff, but if I were to write a poem on SharePoint Designer it would consist of the following phrases.

Start

Open Site,

Work, work, work, Save

Work, Save, Crash

Start

Work, work, work, Save,

work, work, Close site, crash

Start

Work, Work, Save, Crash

 

Painfully tolerating Beta 2 till the technical refresh comes out.

Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Where am I?

Thursday, 24 August 2006 04:49 by tariq

I see all these trackbacks about TechEd Oz 2006, and people claiming to be in Sydney and loving it :)

So where am I? Yes I am in Sydney, but not at TechEd (maybe next year). Yeah! I am here for a project, but am looking forward to meeting some of you guys at the User Group meetings.

Sight Seeing - I've been to 'The City' - Circular Quay and Darling Harbour so far. btw Darling Harbour at night is a absolutely beautifull with the lights reflecting off the water. I was kicking myself for not bringing my tripod along with me. Its just awesome.

I am looking for other places I can visit guys, specially for photography. Any thoughts?

Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Code Guru Article on Writing a SharePoint 2007 WebPart

Wednesday, 23 August 2006 14:02 by tariq

I've seen quite a few blog post on the topic of writing a SP 2007 WebPart.

But heres one at CodeGuru

http://www.codeguru.com/csharp/.net/net_asp/webfor...

Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

OSS 2007 Column Names - Rant1

Monday, 21 August 2006 12:30 by tariq

Ok this is just a Rant - no thought put into it.

OSS 2007 (not sure about WSS v 3) comes with a whole heap of site columns. Now that is a good thing, but for me lately they have become a bit of a bother.

Why you might ask? Because all of the good column names are already taken.

So for example if I wanted to Create a Column called Location for one of my content types, which is a lookup and picks values from another list, I cant, because its already taken.

<waves clenched fist in air/>

Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Sharepoint Designer - Is the DVWP Broken?

Monday, 21 August 2006 07:29 by tariq

I wanted to try out DVWPs with OSS 2007, so I fired up SharePoint Designer and chose DataView -> Insert DataView from the menu, clicked on a DataSource like a SharePoint list (even tried a DB) in the task pane and double clicked (or Show Data from the context menu).

What I get is the error below

Free Image Hosting at www.ImageShack.us

"The server returned a non specific error when trying to get data from the datasource"

Is anyone else seeing this in SharePoint Designer 2007?

Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Test Post from Windows Live Writer

Monday, 14 August 2006 11:15 by tariq

I am trying out Windows Live Writer.

It looks pleasing.

Its got a nice and easy interface.

http://www.windowsxlive.net/?p=87

Its not bad, does all the basic stuff, except for one. No shortcut key for insert picture from the web, even worse no toolbar option for it.

Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed