Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Discussion Lists issue in WSS 3.0

  Asked By: Rachel    Date: Mar 24    Category: Sharepoint    Views: 2276

There was a set of discussion lists created on a WSS 3.0 site. The issue we saw
was that when a column was added to the discussion list AFTER it was created and
the new column was modified, the FLAT view that shows the discussion thread
throws the first post down to the bottom of the list and the person who modified
the post is listed, NOT the creater of the post.

It turns out that the FLAT view shows the modified by/modified (date) in
ascending order.

SO, I ended up writing a small program to set the modified by/modified (date)
back to the original poster. It's a small console app that seemed to do the job
nicely. If someone knows a better method let me know!

foreach (SPList list in web.Lists)
if (list.BaseTemplate.ToString() == "DiscussionBoard")
discussionitems = web.Lists[list.Title];
foreach (SPListItem folder in discussionitems.Folders)
if (folder.Fields["Modified
By"].GetFieldValueAsText(folder["Modified By"]) != folder.Fields["Created
By"].GetFieldValueAsText(folder["Created By"]))
folder["Modified"] = folder["Created"];
folder["Modified By"] = folder["Created By"];



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Discussion Lists issue in WSS 3.0 Or get search suggestion and latest updates.