Blog Home  Home Feed your aggregator (RSS 2.0)  
My DasBlog! - Thursday, July 21, 2005
newtelligence powered
 
# Thursday, July 21, 2005

Mart Muller did a great post about adding a reply programmatically to a discussion board. Just like my last post about programmatically adding history to an issue in an issue list also this is not described clearly in the documentation of SharePoint. The following code is used:

SPListItem newItem = discussionList.Items.Add();
newItem["Title"] = "Title of item";
newItem["Body"] = "Body Text";
newItem["ThreadID"] = [ThreadID of original thread];
newItem["Ordering"] = [Ordering of original thread] + DateTime.Now.ToString("yyyyMMddhhmmss");
newItem.Update();

Mart's article:

http://blogs.tamtam.nl/mart/SharePointTipAdding
ADiscussionReplyItemInAThreadProgramatically.aspx

Article about adding history to an issue in an issue list:

http://net.bloggix.com/PermaLink,guid,aa4c6b98-2039-432b-af80-b8baf901fdf2.aspx


Thursday, July 21, 2005 12:42:32 PM (GMT Daylight Time, UTC+01:00)  #    Comments [1]   C# | SharePoint  | 
For one of our Tam Tam projects we needed a history. Users can alter some topic text through the use of the r.a.d.editor control in a WebPart. After every change the new version of the text is stored into a history . These versions are shown in another WebPart containing for each version a link. By pressing such a link the user can see that version back into the first WebPart.

We decided to use an issue list in the background. The following code examples will show you how to add a new item, and changes on that item into the issue list.
Thursday, July 21, 2005 10:33:38 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]    | 

If you create a WebPart containing a multiline TextBox, the TextBox does not size automatically with the width of the WebPart. Requesting the Width of the WebPart is not an option because its not yet in the clients browser. So the following example shows a way of sizing the TextBox to 100% in the WebPart. tbRemark is a TextBox with the TextMode set to TextBoxMode.MultiLine.

protected override void RenderWebPart(HtmlTextWriter output)
{
   output.WriteLine("<style>.StyleRemark { width:100%;height:100; }</style>");

   output.WriteLine("<TABLE id=\"Table1\" cellSpacing=\"1\" cellPadding=\"1\" width=\"100%\" border=\"0\">");
   output.WriteLine("<TR><TD>");

   tbRemark.Text = Remark;
   tbRemark.CssClass = "StyleRemark";
   tbRemark.RenderControl(output);

   output.WriteLine("</TD></TR>");
   output.WriteLine("</TABLE>");
}

Thursday, July 21, 2005 8:51:58 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   C# | SharePoint  | 

CaveDigital has published a very cool WebPart which makes it possible to preview your published InfoPath forms. After installation of the WebPart you have to add it to a Form Library. Each published InfoPath Form gets an menu option "Preview XML Form" which shows a preview in the CaveDigital WebPart.

Way to go CaveDigital :)

Thursday, July 21, 2005 8:28:42 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Third-Party  | 
# Wednesday, July 20, 2005

Be sure to visit all the options undfer "Configuration" in the Admin Menu Bar above. There are 16 themes to choose from, and you can also create your own.

 

Wednesday, July 20, 2005 8:00:00 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   dasBlog  | 
# Tuesday, July 19, 2005
Today i had a head breaking issue. I needed two discussion boards placed on a WSS site using the ONET.XML template. Whatever i tried it resulted into another view of the same discussion board instead of a seperate discussion board. Then i saw it (together with a collegea)...
Tuesday, July 19, 2005 10:02:06 AM (GMT Daylight Time, UTC+01:00)  #    Comments [2]   SharePoint  | 

Paul Brenk has posted some usefull code which shows us how to deserialize a string containing XML to an object using a StringReader and a XmlTextReader object. It also shows us how it handles a XML-array using serialization attributes.

http://blogs.tamtam.nl/paulb/DeserializingAnXmlstringAndXmlArrays.aspx

Tuesday, July 19, 2005 7:25:56 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   C#  | 
# Monday, July 18, 2005

Mark Harrison did a post containing some usefull links to documentation for the new Business Scorecard Manager 2005. It seems that this tool is not gonna be a free tool like the previous version and that the licenses are not that cheap. :( We have to see...

Business Scorecard Manager 2005 documentation includes the following:

Scorecard Manager Server Planning and Administration Guide
The Planning and Administration Guide contains information that system administrators use to install, configure and manage a Business Scorecard Manager server deployment.

Business Scorecard Builder Help Documentation
The Business Scorecard Builder Help includes conceptual and procedural information that users need to build scorecards using the Scorecard Builder application.

SharePoint Web Part Help
The SharePoint Web Part Help is written for end users who use Business Scorecard Manager scorecards and reports in SharePoint.

Business Scorecard Manager API Reference
The Application Programming Interface (API) reference provides developers with the complete reference for the Business Scorecard Manager 2005 Beta 2 API

Article by Mark Harrison:
http://markharrison.co.uk/blog/2005/07/documentation-for-business-scorecard.htm

Monday, July 18, 2005 6:21:50 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Microsoft | SharePoint  | 
# Thursday, July 14, 2005

When you change the application pool for a WSS site and you request the WSS site in a browser you could get a 403 error telling you that access is denied. By adding /default.aspx at the end of the url it works again.

This problem is caused by changing the application pool for the WSS site and not for its Application folders.

To solve the problem just change the application pool for its Application folders to the same as the WSS site. The Application folders I had to change were _layouts, _vti_bin and _wpresources.

Thursday, July 14, 2005 2:58:45 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 

"The purpose of the SharePoint Utility Suite is to provide a packaged collection of Tools and Utilities showcasing the rich Object Model that is delivered with the SharePoint Product and Technologies SDK (which includes Windows SharePoint Services 2.0 and SharePoint Portal Server 2003). This package includes code and tool examples that SharePoint Developers and SharePoint Administrators might find useful."

http://www.microsoft.com/sharepoint/downloads/components/detail.asp?a=724

Thanks to Paul Schaeflein and Jessica Gruber

Thursday, July 14, 2005 6:57:10 AM (GMT Daylight Time, UTC+01:00)  #    Comments [2]   SharePoint  | 
Copyright © 2012 Alexander Meijers. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: