Blog Home  Home Feed your aggregator (RSS 2.0)  
My DasBlog! - Wednesday, August 17, 2005
newtelligence powered
 
# Wednesday, August 17, 2005

When you add one or more new templates to your SharePoint environment you normally have to call iisreset.exe to let SharePoint recognize the new templates. On a development machine its not so bad to do this, but on a live environment it also shuts down other sites and Portals. You could also do the following:

Make sure that your Portal has its own Application Pool and recycle the pool will have the same effect. Your new templates are now recognized.

Wednesday, August 17, 2005 11:28:27 AM (GMT Daylight Time, UTC+01:00)  #    Comments [2]   SharePoint  | 

In some cases you need to nest a CDATA inside another CDATA like when you use a ContentEditorWebPart in the ONET.XML by creating a template definition. A CDATA is used to let the parser skip the information found between the brackets in case you don't want that part to be parsed.

For example:

<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">
   <![CDATA[
      <WebPart xmlns:xsd="" xmlns:xsi="" xmlns="">
        <Title>Title</Title>
        <Assembly>Microsoft.SharePoint, ...</Assembly>
        <TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
     
        <ContentLink xmlns="" />
        <Content xmlns=""> 
            <html><b>Hello there</b></html>    
        </Content>
      </WebPart>
   ]]>
</AllUsersWebPart>

This example will fail because it tries to parse the html inside the <Content> tag. So you could do the following:

<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">
   <![CDATA[
      <WebPart xmlns:xsd="" xmlns:xsi="" xmlns="">
        <Title>Title</Title>
        <Assembly>Microsoft.SharePoint, ...</Assembly>
        <TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName> 
        <ContentLink xmlns="" />
        <Content xmlns=""> 
            <!CDATA[
               <html><b>Hello there</b></html>  
            ]]>  
        </Content>
      </WebPart>
   ]]>
</AllUsersWebPart>

Also this is not gonna work. The parser actually thinks that the part it should not parse stops at the first ]]> found. The solution is relative simple but in some cases it can be time consuming.

<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">
   <![CDATA[
      <WebPart xmlns:xsd="" xmlns:xsi="" xmlns="">
        <Title>Title</Title>
        <Assembly>Microsoft.SharePoint, ...</Assembly>
        <TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
        <ContentLink xmlns="" />
        <Content xmlns=""> 
            &lt;html&gt;&lt;b&gt;Hello there&lt;/b&gt;&lt;/html&gt;  
        </Content>
      </WebPart>
   ]]>
</AllUsersWebPart>

By rewriting characters that cause the parser to think that it is xml will solve your problem. That means that the sign < will be &lt; and the sign > will be &gt;

The following sources are available on the internet:

http://www.peej.co.uk/articles/cdata

http://xml.silmaril.ie/authors/cdata/

http://weblogs.asp.net/bsimser/archive/2005/03/29/396135.aspx

http://www.dpawson.co.uk/xsl/sect2/cdata.html

Wednesday, August 17, 2005 10:07:55 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 
# Monday, August 15, 2005
The SPWebCollection returned by the member SPWeb.Webs is a not sorted list of SPWeb objects. So i wrote a class which makes it possible to return a sorted list of SPWeb objects based on the property of a SPWeb. It is basically very simple and uses some standard .NET interfaces for enumerating and comparing.

SPSortedWebCollection col = new SPSortedWebCollection(currentWeb.Webs, "Number");

foreach(SPWeb child in col)
{
...
}
Monday, August 15, 2005 10:05:09 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   C# | SharePoint  | 
# Monday, August 08, 2005

Reading through my RSS feeds i came accross a post pointing out that Microsoft has released a number of applications for WSS. These applications are from abscense and vacation schedule to Help Desk support. Here are some of them listed:

  • Absence Request and Vacation Schedule Management
  • Change Management
  • Employee Timesheet and Scheduling Management
  • Help Desk Dashboard
  • New Product Development
  • Project Team Site

http://www.microsoft.com/technet/prodtechnol/sppt
/wssapps/default.mspx

Monday, August 08, 2005 7:13:46 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 
# Friday, August 05, 2005

It seems that SharePoint is really important for Microsoft! Bill Gates has taken the lead of PM manager himself on the windows SharePoint services v3 User Experience.

That's great news!! :)

http://blogs.msdn.com/bowerm/archive/2005/08/03/447378.aspx

Friday, August 05, 2005 1:16:23 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 

It took some time to get everything up and running at my new employee, so there is time to start blogging again. I needed some search functionality in WSS while SPS was not installed. I found the following tool:

Tim Heuer already mentioned in a post about this tool found at the website of SharePoint Experts. Its a search tool which makes it possible to search through multiple WSS sites without even SharePoint Portal Server installed. Even the costs are not that high :)

Here some of the features mentioned at their website:

Search multiple sites simultaneously
Results are returned from the current site, and all children of the current site

No new UI necessary
Search queries are entered using default search box

No complicated install
Just back up one file (to be safe!) and drop in our replacement!

Template-based results
Customizable XSL templates format the results

Server-side script interface
Call PowerSearch™ from any web app by passing URL parameters, and receive XML results (planned feature for next release)

SOAP Web Service interface
Integrate PowerSearch™ results into any site design using FrontPage and the XSLT Data View web part, or easily include results in your Windows Forms applications (planned feature for next release)

Custom filters and limits
Use the XSLT Data View to apply custom filters and limits to search results, such as "records modified in the past week" (planned feature for next release)

PowerNav™-aware
Future releases of PowerNav™ will extend your ability to customize PowerSearch results

http://www.sharepointexperts.com/software_powersearch_wss.htm

http://timheuer.com/blog/archive/2004/08/12/1155.aspx

Friday, August 05, 2005 10:00:37 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 
# Monday, July 25, 2005
AJAX is a very cool technique. No more rountrips to the server. Real-time updating is at hand. The interactivity and user experience grows dramatically. AJAX (asynchronous Java-script + XML) is fantastic, AJAX is new, AJAX is hot!!!! But what is it? Imagine a search engine which gives you instant feedback on the number of results that match your query... Imagine a data entry application that validates upon entry... Imagine a poll on a website which automatically updates any changes...

Monday, July 25, 2005 3:50:03 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]    | 

It seems we have a new blogger in town :)  Welcome!! His name is Maxim Tarassenko and he wrote a "how to" article about implementing OWS Web Controls to simplify SharePoint Development.

"In order to simplify SharePoint development, it is possible to use standard web controls implemented in Microsoft SharePoint assemblies and used by SharePoint team throughout the whole SharePoint system. These are for example OWS web controls contained in Microsoft.SharePoint.dll and available both in Windows SharePoint Services as in SharePoint Portal Server."

 

http://www.dotnetblog.de/PermaLink,guid,9e6c6910-2b91-40cc-94c4-83697913b685.aspx

Monday, July 25, 2005 2:55:33 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 

Modonovan posted an article which explains how to use the IRuntimeFilter to hide or show WebParts in the Portal. as stated in the article:

"By implementing IRuntimeFilter you are essentially creating a rule or a set of rules that determine if a web part should be displayed or not. For example:

  • SharePoint Portal Server (SPS) uses a IRuntimeFilter for audiences. A user will setup the audiences that are allowed to see a web part (using the advanced section in the web part’s toolpane), then when a user visits the web page the filter runs and determines if the web part should be shown or not. If a virtual server is extended with SPS then the Microsoft.SharePoint.Portal.Audience.AudienceManager filter is installed by default.
  • You could create a custom IRuntimeFilter that determines if a web part should be displayed based on the WSS role the user is a member of. This is what the sample code in this document does
  • You could create a custom IRuntimeFilter that determines if a web part should be displayed based on any arbitrary property or rule(s) that you come up with."

I often use some kind of check in my code behind to find out which roles the current user has and then based on the information i show or hide the WebPart. This solution presented by Modonovan is far better. :) Thanks!!

http://blogs.msdn.com/modonovan/archive/2005/07/07/436394.aspx

Monday, July 25, 2005 2:39:41 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   C# | SharePoint  | 
Virtual Earth by alexander

It seems that Microsoft started their own virtual earth as an attack on Google Maps. As stated on the blog of the Virtual Earth team:

"Why Would I use VE? isn't it just like Google maps?
 
A lot of bloggers are taking their first look at VE and wondering why thy would use it instead of Google maps and Google Local. Why? Because our amps go to 11. Seriously, I guess it’s really a matter of taste and utility. At Virtual Earth our goal isn’t just to build an impressive feature list. More importantly to us, we want to enable our users to carry out everyday useful tasks REALLY well. Sure, we’ve built monster features like Autolocate and Autorefresh into VE, but it’s the user scenarios they enable that will keep people coming back to MSN Virtual Earth day after day. Let’s take a quick tour of how we have enabled you to carry out some of these most common tasks."

http://spaces.msn.com/members/virtualEarth/

http://virtualearth.msn.com/

Monday, July 25, 2005 7:29:25 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Microsoft  | 
Copyright © 2012 Alexander Meijers. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: