<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Codeless Solutions for SharePoint</title>
	<atom:link href="http://wyly.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wyly.wordpress.com</link>
	<description>Bryon Wyly is a SharePoint Developer dedicated to finding the limits to out-of the-box SharePoint solutions</description>
	<lastBuildDate>Mon, 23 Nov 2009 16:54:10 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='wyly.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/bb498065ba50575dbdb373c81f2f454a?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Codeless Solutions for SharePoint</title>
		<link>http://wyly.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wyly.wordpress.com/osd.xml" title="Codeless Solutions for SharePoint" />
		<item>
		<title>6 Ways to easily &#8220;Juice&#8221; your SharePoint Pages</title>
		<link>http://wyly.wordpress.com/2009/11/21/6-ways-to-easily-juice-your-sharepoint-pages/</link>
		<comments>http://wyly.wordpress.com/2009/11/21/6-ways-to-easily-juice-your-sharepoint-pages/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 05:43:07 +0000</pubDate>
		<dc:creator>wyly</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wyly.wordpress.com/?p=114</guid>
		<description><![CDATA[Right now I am in Birmingham Alabama getting ready to give a couple of presentaions at the SharePoint Saturday here.  I have uploaded the outline to how to Jazz up your sharepoint pages with no more skill than copy and pasting.
Three items are already covered in my blog; Pie charts, SharePointCanvas.com, and Hiding/Displaying web parts.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=114&subd=wyly&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Right now I am in Birmingham Alabama getting ready to give a couple of presentaions at the SharePoint Saturday here.  I have uploaded the outline to how to Jazz up your sharepoint pages with no more skill than copy and pasting.</p>
<p>Three items are already covered in my blog; Pie charts, SharePointCanvas.com, and Hiding/Displaying web parts.  The other three are from other authors and I have provided links directly to their sites.  Please let me know if you are author on any of these sites and the links or credit due is not to your liking.</p>
<p>* note: I updated the Progress bar text to the code I use on my site, since the linked text did not work during the presentation.</p>
<p><a href="http://www.sharepointcanvas.com/spc/docs/Juice_your_SharePoint_page.doc">Juice_your_SharePoint_page.doc</a></p>
<p>Here is the link to the outline for creating a Master Calendar or Library</p>
<p><a href="http://www.sharepointcanvas.com/spc/docs/Creating_ Master_Calendar_Presented.doc">Creating_ Master_Calendar_Presented.doc</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wyly.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wyly.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wyly.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wyly.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wyly.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wyly.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wyly.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wyly.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wyly.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wyly.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=114&subd=wyly&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wyly.wordpress.com/2009/11/21/6-ways-to-easily-juice-your-sharepoint-pages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/162f5cdfa24ee2bd15cbc4021a8d2ab0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wyly</media:title>
		</media:content>
	</item>
		<item>
		<title>Quickly Hide CSS on a SharePoint Page</title>
		<link>http://wyly.wordpress.com/2009/09/10/cool-new-way-to-eidt-you-sharepoint-page/</link>
		<comments>http://wyly.wordpress.com/2009/09/10/cool-new-way-to-eidt-you-sharepoint-page/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 19:21:02 +0000</pubDate>
		<dc:creator>wyly</dc:creator>
				<category><![CDATA[SharePoint CSS]]></category>
		<category><![CDATA[Hide breadcrumb site action mysite navigation css display none]]></category>

		<guid isPermaLink="false">http://wyly.wordpress.com/2009/09/10/cool-new-way-to-eidt-you-sharepoint-page/</guid>
		<description><![CDATA[
Ever wish you could just make the top links disappear?  Maybe kill the quick launch or the top navigation?  How do you hide the global bread crumb, the site actions tab or the my links tag?
This site at http://sharepointcanvas.com allows you to uncheck all the elements you don&#8217;t want on your page then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=91&subd=wyly&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://sharepointcanvas.com"><img src="http://sharepointcanvas.com/spc/images/sharepointcanvas.jpg" alt="ScreenShot of hiding SharePoint Items with a CSS Builder" /></a></p>
<p>Ever wish you could just make the top links disappear?  Maybe kill the quick launch or the top navigation?  How do you hide the global bread crumb, the site actions tab or the my links tag?</p>
<p>This site at <a href="http://sharepointcanvas.com">http://sharepointcanvas.com</a> allows you to uncheck all the elements you don&#8217;t want on your page then it will print out the css for you.  Just copy and paste the css in a content editor web part or master page an viola! All you unchecked items are hidden from view.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wyly.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wyly.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wyly.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wyly.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wyly.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wyly.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wyly.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wyly.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wyly.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wyly.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=91&subd=wyly&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wyly.wordpress.com/2009/09/10/cool-new-way-to-eidt-you-sharepoint-page/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/162f5cdfa24ee2bd15cbc4021a8d2ab0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wyly</media:title>
		</media:content>

		<media:content url="http://sharepointcanvas.com/spc/images/sharepointcanvas.jpg" medium="image">
			<media:title type="html">ScreenShot of hiding SharePoint Items with a CSS Builder</media:title>
		</media:content>
	</item>
		<item>
		<title>Show/Hide Multiple Web Parts</title>
		<link>http://wyly.wordpress.com/2009/05/22/showhide-multiple-web-parts/</link>
		<comments>http://wyly.wordpress.com/2009/05/22/showhide-multiple-web-parts/#comments</comments>
		<pubDate>Fri, 22 May 2009 15:40:08 +0000</pubDate>
		<dc:creator>wyly</dc:creator>
				<category><![CDATA[SharePoint Dashboard]]></category>

		<guid isPermaLink="false">http://wyly.wordpress.com/?p=66</guid>
		<description><![CDATA[
You have 4 web parts on the page but when the page loads you only see the first web part, &#8216;Overdue Tasks&#8217;. A dynamically created menu of all the task web parts is on the left.

When you click on &#8216;My Tasks&#8217;, &#8216;Overdue Tasks&#8217; is hidden and &#8216;My Tasks&#8217; appears in its place

Clicking on &#8216;All Tasks&#8217; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=66&subd=wyly&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://wyly.files.wordpress.com/2009/05/tasklist1.jpg" alt="" /></p>
<p><em>You have 4 web parts on the page but when the page loads you only see the first web part, &#8216;Overdue Tasks&#8217;. A dynamically created menu of all the task web parts is on the left.</em></p>
<p><img src="http://wyly.files.wordpress.com/2009/05/tasklist2.jpg" alt="" /></p>
<p><em>When you click on &#8216;My Tasks&#8217;, &#8216;Overdue Tasks&#8217; is hidden and &#8216;My Tasks&#8217; appears in its place</em></p>
<p><img src="http://wyly.files.wordpress.com/2009/05/tasklist3.jpg" alt="" /></p>
<p><em>Clicking on &#8216;All Tasks&#8217; shows the All Tasks Web part</em></p>
<p><img src="http://wyly.files.wordpress.com/2009/05/tasklist4editview1.jpg" alt="" /></p>
<p><em>When you edit the page, you can see all 4 web parts and easily modify or reorder them.</em></p>
<p><strong>Technical Expertise and Permissions needed:</strong></p>
<ul>
<li>Create views for a list</li>
<li>Add and Modify web parts on a page</li>
<li>Copy/paste some code into a content editor web part</li>
</ul>
<p>Here I was again, trying to figure out how to show multiple views of the same list on my page. I had a task list and I wanted to show tasks for the current person (My Tasks), Overdue Tasks, High Priority Tasks and a Final view of all the tasks on the same page.</p>
<p>Problem is, there is a limited amount of real estate on the page to show all these views at once. I have in the past made multiple pages and placed one web part on each and made a menu that allowed me to go back and forth, the only problem is now I have to wait for a page load each time.</p>
<p><strong>Fix:</strong><br />
I need some javascript or jquery to d hide all the webparts and only show me the one web part I want to see. My solution also has to do the following:</p>
<ul>
<li>Be easy used by non-technical users</li>
<li>Work no matter how many web parts are included</li>
<li>Not hide the web parts in &#8216;edit page&#8217; mode</li>
</ul>
<p>Here is what I came up with:</p>
<p>I created views for Overdue Tasks, and High Priority in my task list. (All Tasks and My Tasks are created by default)</p>
<p>I created 4 web parts of the task list in one column on my page. I set there width to 600 px each gave each one a title with the word &#8220;Task&#8221; in it (my keyword). I set there chrome type to title only and I changed their view to one of the four views I wanted to show.</p>
<p>Next I added a content editor web part and added the following code:</p>
<pre class="brush: xml;">
&lt;script type=text/javascript&gt;
////////////////////////////////////////// User Chosen Parameters ///////////////////////////////////////////////
var displayFirst=false			// Show the first web part on load
var menuTitle=&quot;&quot; 				//Title of the top menu. If empty, spacing will be removed
var keyWord=&quot;Department&quot;		//The keyword in the title of all web parts used in this code.  ie any web part with the word 'Tasks' will be hidden and added to the menu
var menuType=&quot;DropDown&quot; 		//Enter 'List' or 'DropDown'
//--------------------------------------------------------------------------------------------------------------------------------------------------
&lt;/script&gt;

&lt;div class=content id=jLoadDiv&gt;&lt;/div&gt;

&lt;script type=text/javascript&gt;
if(typeof jQuery==&quot;undefined&quot;){
	var jQPath=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/&quot;;
	document.write(&quot;&lt;script src='&quot;,jQPath,&quot;jquery.js' type='text/javascript'&gt;&lt;\/script&gt;&quot;);
}
&lt;/script&gt;

&lt;script type=text/javascript&gt;
$(&quot;document&quot;).ready(function(){
  if(menuTitle!=&quot;&quot;)
  {$(&quot;#jLoadDiv&quot;).append(&quot;&lt;p class='ms-WPHeader'&gt;&lt;H3 class='ms-standardheader ms-WPTitle'&gt;&quot;+menuTitle+&quot;&lt;/h3&gt;&lt;/p&gt;&quot;)}
  hideZones(1,displayFirst);
});

function show(item)
{
 hideZones(0,false); //hide all web parts
 var webPart
 if(menuType==&quot;List&quot;){webPart=item.id}
 else if(menuType==&quot;DropDown&quot;&amp;&amp;item!=&quot;none&quot;){webPart=item}
 else if(menuType==&quot;DropDown&quot;&amp;&amp;item==&quot;none&quot;){return false;}
 document.getElementById(webPart).style.display=&quot;&quot;; //Show selected web part
}

function hideZones(writeMenu,displayFirst)
{
    var menu=&quot;&quot;
	var menuDD=&quot;&quot;
	if (displayFirst==false)
		{menuDD=&quot;&lt;option value='none'&gt;--- Select an Item ---&lt;/option&gt;&quot;}
    var listTitle = $(&quot;td:contains('&quot;+keyWord+&quot;')&quot;);//make an array of the titles of the web parts

    $.each(listTitle, function(i,e)
	{
		var listZone=listTitle[i];
		var wpnum
		if (listTitle[i].title.length!=0){
		//slice off the table title and select the web part number
		wpnum=&quot;MSOZoneCell_WebPartWPQ&quot;+listZone.id.substring(15);
        //If not in edit mode, hide the web parts
		if (displayFirst==false)
		{
		  document.getElementById(wpnum).style.display=&quot;none&quot;;
		}
		else
		{
		  displayFirst=false;
		}
		var Title=listZone.title.split(&quot; - &quot;)// get rid of the description by splitting on the &quot; - &quot; and only showing the first part
		menu=menu+&quot;&lt;li&gt;&lt;a href='javascript:show(&quot;+wpnum+&quot;);'&gt;&quot;+Title[0]+&quot;&lt;/a&gt;&lt;/li&gt;&quot;
		menuDD=menuDD+&quot;&lt;option value=&quot;+wpnum+&quot;&gt;&quot;+Title[0]+&quot;&lt;/a&gt;&lt;/option&gt;&quot;
		}
	});
    if (writeMenu==1&amp;&amp;menuType==&quot;List&quot;)
		{$(&quot;#jLoadDiv&quot;).append(&quot;&lt;ul&gt;&quot;+menu+&quot;&lt;/ul&gt;&quot;)}
	else if (writeMenu==1&amp;&amp;menuType==&quot;DropDown&quot;)
		{$(&quot;#jLoadDiv&quot;).append(&quot;&lt;select onchange='javascript:show(this.value)' id='webShowHide'&gt;&quot;+menuDD+&quot;&lt;/select&gt;&quot;)}
} //end function
&lt;/script&gt;
</pre>
<p>The code has three options:</p>
<p>var keyWord=&#8221;Tasks&#8221; &#8211; Put the keyword thats in all your web part titles here</p>
<p>var displayFirst=true &#8211; Leave this true if you want the first web part to show up on load</p>
<p>var menuTitle=&#8221;Whatever you want the title of your menu to be&#8221;</p>
<p>Viola!<br />
Now the code will go out and add any web part that has your keyword in the title to a menu and then hide it. When you click on the menu item all the web parts will be hidden except for that web part (view).</p>
<p>UPDATE:<br />
1 Fix has been added.<br />
The webpart description has been filtered out so it won&#8217;t show up in the menu</p>
<p>There is a new menu type at the type, since several people asked for a drop down instead of a list for the menu.</p>
<p>At the top of the code, change:<br />
var menuType=&#8221;List&#8221; &#8211; to show the menu as a list<br />
var menuType=&#8221;DropDown&#8221; &#8211; to show a drop down list with all your selected web parts</p>
<p><img src="http://wyly.files.wordpress.com/2009/05/dropdown_hideshow.jpg" alt="Drop Down Menu" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wyly.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wyly.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wyly.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wyly.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wyly.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wyly.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wyly.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wyly.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wyly.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wyly.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=66&subd=wyly&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wyly.wordpress.com/2009/05/22/showhide-multiple-web-parts/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/162f5cdfa24ee2bd15cbc4021a8d2ab0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wyly</media:title>
		</media:content>

		<media:content url="http://wyly.files.wordpress.com/2009/05/tasklist1.jpg" medium="image" />

		<media:content url="http://wyly.files.wordpress.com/2009/05/tasklist2.jpg" medium="image" />

		<media:content url="http://wyly.files.wordpress.com/2009/05/tasklist3.jpg" medium="image" />

		<media:content url="http://wyly.files.wordpress.com/2009/05/tasklist4editview1.jpg" medium="image" />

		<media:content url="http://wyly.files.wordpress.com/2009/05/dropdown_hideshow.jpg" medium="image">
			<media:title type="html">Drop Down Menu</media:title>
		</media:content>
	</item>
		<item>
		<title>Why doesn&#8217;t my new column show up when I add or edit my list?</title>
		<link>http://wyly.wordpress.com/2009/05/20/why-doesnt-my-new-column-show-up-when-i-add-or-edit-my-list/</link>
		<comments>http://wyly.wordpress.com/2009/05/20/why-doesnt-my-new-column-show-up-when-i-add-or-edit-my-list/#comments</comments>
		<pubDate>Wed, 20 May 2009 15:06:20 +0000</pubDate>
		<dc:creator>wyly</dc:creator>
				<category><![CDATA[SharePoint Project Template]]></category>
		<category><![CDATA[Content Type]]></category>

		<guid isPermaLink="false">http://wyly.wordpress.com/?p=57</guid>
		<description><![CDATA[Turning on management of Content Types so your newly created columns show up on the add/edit forms in SharePoint MOSS 2007.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=57&subd=wyly&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of the first frustrations I had when learning SharePoint was wrapping my head around content types.  A seemingly simple thing such as going to the MS Project Tracking template and adding a new column to the project list should mean that from now on, when I add or edit my list, I should see my newly created column just waiting to be filled, right?  Wrong!</p>
<p>The reason is this; this template uses a Content Type for the project list and if you ever run into an issue where a column you created is not showing up on the add new or edit page or is not an option for a filter or content query part, the most likely reason is that you are working on a list that is using a content type but the option of &#8220;Allow management of content types&#8221; is set to &#8220;No&#8221;.</p>
<p><strong>Fix:</strong><br />
Go to the list settings &#8211; under the heading &#8220;General Settings&#8221; select <strong>Advanced Settings</strong>.</p>
<p><img src="http://wyly.files.wordpress.com/2009/05/advancedsettings.jpg" alt="Turning on Management of Content types" /></p>
<p>The first option is to &#8220;Allow management of content types&#8221;, set this to yes.</p>
<p>Now when you create a column, a new option will appear: Add to all content types.  If this is checked, the column will now show up whenever you go to edit or a add a list item.<br />
<img src="http://wyly.files.wordpress.com/2009/05/addtodefault.jpg" alt="" /></p>
<p>What if you have already added a bunch of columns?  How can you now have them show up as options when adding and editing list items?</p>
<p>Now when you go to list settings you will notice a new heading above columns for Content Types.</p>
<p><img src="http://wyly.files.wordpress.com/2009/05/contenttypes.jpg" alt="" /></p>
<p>Simply click on the name of the content type (in this case Project) and then on  <strong>Add from existing site columns</strong>, this will allow you to add previously created columns to the lists Content Type.</p>
<p><img src="http://wyly.files.wordpress.com/2009/05/addnewcolumns.jpg" alt="" /></p>
<p>Hope this helps anyone struggling with this issue.  Just to know Content Types are very useful and there is a reason for not adding columns by default to your lists. Even though now it seems a bit awkward an unintuitive.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wyly.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wyly.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wyly.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wyly.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wyly.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wyly.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wyly.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wyly.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wyly.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wyly.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=57&subd=wyly&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wyly.wordpress.com/2009/05/20/why-doesnt-my-new-column-show-up-when-i-add-or-edit-my-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/162f5cdfa24ee2bd15cbc4021a8d2ab0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wyly</media:title>
		</media:content>

		<media:content url="http://wyly.files.wordpress.com/2009/05/advancedsettings.jpg" medium="image">
			<media:title type="html">Turning on Management of Content types</media:title>
		</media:content>

		<media:content url="http://wyly.files.wordpress.com/2009/05/addtodefault.jpg" medium="image" />

		<media:content url="http://wyly.files.wordpress.com/2009/05/contenttypes.jpg" medium="image" />

		<media:content url="http://wyly.files.wordpress.com/2009/05/addnewcolumns.jpg" medium="image" />
	</item>
		<item>
		<title>Make a pie chart that shows percents</title>
		<link>http://wyly.wordpress.com/2009/05/12/make-a-pie-chart-that-shows-percents/</link>
		<comments>http://wyly.wordpress.com/2009/05/12/make-a-pie-chart-that-shows-percents/#comments</comments>
		<pubDate>Tue, 12 May 2009 16:04:51 +0000</pubDate>
		<dc:creator>wyly</dc:creator>
				<category><![CDATA[Graphs & Pie Charts]]></category>

		<guid isPermaLink="false">http://wyly.wordpress.com/?p=31</guid>
		<description><![CDATA[ 
Update: The code I had originally posted was hard to copy and not figuring the percentage accurately. This has been corrected.
This is a quick update to Claudio Cabaleyro&#8217;s ground breaking blog on endusersharepoint.com to use jquery and google charts api to create pie charts of SharePoint List data.
Here is Cabaleyro&#8217;s code slightly modified to show [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=31&subd=wyly&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> <img src="http://wyly.files.wordpress.com/2009/05/graphbypercent2.jpg" alt="" /></p>
<p><em>Update: The code I had originally posted was hard to copy and not figuring the percentage accurately. This has been corrected.</em></p>
<p>This is a quick update to <a href="http://www.endusersharepoint.com/?p=1537">Claudio Cabaleyro&#8217;s ground breaking blog</a> on endusersharepoint.com to use jquery and google charts api to create pie charts of SharePoint List data.</p>
<p>Here is Cabaleyro&#8217;s code slightly modified to show the percent instead of the count of items from the list. Hope this helps anyone who has been looking for this solution.</p>
<p><em>Copy and paste the following code</em></p>
<pre class="brush: xml;">
&lt;script type=&quot;text/javascript&quot;&gt;
if(typeof jQuery==&quot;undefined&quot;){
var jQPath=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/&quot;;
document.write(&quot;&lt;script src='&quot;,jQPath,&quot;jquery.js' type='text/javascript'&gt;&lt;\/script&gt;&quot;);
}
&lt;/script&gt;
&lt;div id=&quot;jLoadMe&quot; class=&quot;content&quot;&gt;&lt;strong&gt;Item by percent&lt;/strong&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
if(typeof jQuery==&quot;undefined&quot;){
var jQPath=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/&quot;;
document.write(&quot;&lt;script src='&quot;,jQPath,&quot;jquery.js' type='text/javascript'&gt;&lt;\/script&gt;&quot;);
}
&lt;/script&gt;
&lt;script
type=&quot;text/javascript&quot;&gt;
$(&quot;document&quot;).ready(function(){
var arrayList=$(&quot;td.ms-gb:contains(':')&quot;);
var coord= new Array();
var labels= new Array();
var titles= new Array();
var total=0

$.each(arrayList, function(i,e)
{
var MyIf= $(e).text();
var txt= MyIf.substring(MyIf.indexOf('(')+1,MyIf.length-1); // Extract the ‘Y' coordinates
coord[i]=txt;
total=total+(txt*1)
var txt1= MyIf.substring(MyIf.indexOf(':')+2,MyIf.indexOf(&quot;(&quot;)-1); // Extract the labels
titles[i]=txt1;
//labels[i]=titles[i]+&quot;(&quot;+coord[i]&quot;; //update the total
//labels[i]=titles[i]+&quot;(&quot;+Math.round((coord[i]/total*100)*10)/10+&quot;%)&quot;; //update the total
});

for(i=0;i&lt;coord.length;i++)
{
coord[i]=Math.round((coord[i]/total*100)*10)/10
labels[i]=titles[i]+&quot;(&quot;+coord[i]+&quot;%)&quot;; //update the total
}

var txt= coord.join(&quot;,&quot;);
var txt1= labels.join(&quot;|&quot;);

// Adjust Chart Properties below – See Google Charts API for reference
var vinc= &quot;&lt;IMG src='http://chart.apis.google.com/chart?cht=p&amp;chs=300x120&amp;chd=t:&quot;+txt+&quot;&amp;chl=&quot;+txt1+&quot;&amp;chco=FF0000' /&gt;&quot;;
$(&quot;#jLoadMe&quot;).append(&quot;
&quot;+vinc+&quot;
&quot;)
});

&lt;/script&gt;
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wyly.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wyly.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wyly.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wyly.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wyly.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wyly.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wyly.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wyly.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wyly.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wyly.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=31&subd=wyly&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wyly.wordpress.com/2009/05/12/make-a-pie-chart-that-shows-percents/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/162f5cdfa24ee2bd15cbc4021a8d2ab0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wyly</media:title>
		</media:content>

		<media:content url="http://wyly.files.wordpress.com/2009/05/graphbypercent2.jpg" medium="image" />
	</item>
		<item>
		<title>Web Chart Part available on Codeplex</title>
		<link>http://wyly.wordpress.com/2009/05/11/web-chart-part-available-on-codeplex/</link>
		<comments>http://wyly.wordpress.com/2009/05/11/web-chart-part-available-on-codeplex/#comments</comments>
		<pubDate>Mon, 11 May 2009 20:27:30 +0000</pubDate>
		<dc:creator>wyly</dc:creator>
				<category><![CDATA[Graphs & Pie Charts]]></category>

		<guid isPermaLink="false">http://wyly.wordpress.com/2009/05/11/web-chart-part-available-on-codeplex/</guid>
		<description><![CDATA[
Here is an interesting Web Part available for free on Codeplex. You have to have Micrsoft .net 3.5 SP 1 and .net 3.5 Chart Controls so if you have access to the Sharepoint server(s) this would be a real easy solution to graphs for dashboards.
http://chartpart.codeplex.com/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=28&subd=wyly&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=ChartPart&amp;DownloadId=49458" alt="chartpart2.png" /></p>
<p>Here is an interesting Web Part available for free on Codeplex. You have to have Micrsoft .net 3.5 SP 1 and .net 3.5 Chart Controls so if you have access to the Sharepoint server(s) this would be a real easy solution to graphs for dashboards.</p>
<p><a href="http://chartpart.codeplex.com/">http://chartpart.codeplex.com/</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wyly.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wyly.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wyly.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wyly.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wyly.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wyly.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wyly.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wyly.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wyly.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wyly.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=28&subd=wyly&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wyly.wordpress.com/2009/05/11/web-chart-part-available-on-codeplex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/162f5cdfa24ee2bd15cbc4021a8d2ab0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wyly</media:title>
		</media:content>

		<media:content url="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=ChartPart&#38;DownloadId=49458" medium="image">
			<media:title type="html">chartpart2.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding Graphs, Bar and Pie Charts to SharePoint</title>
		<link>http://wyly.wordpress.com/2009/04/24/adding-graphs-bar-and-pie-charts-to-sharepoint/</link>
		<comments>http://wyly.wordpress.com/2009/04/24/adding-graphs-bar-and-pie-charts-to-sharepoint/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 17:45:47 +0000</pubDate>
		<dc:creator>wyly</dc:creator>
				<category><![CDATA[Graphs & Pie Charts]]></category>

		<guid isPermaLink="false">http://wyly.wordpress.com/?p=19</guid>
		<description><![CDATA[Here is a quick trick I learned today that solves an issue I&#8217;ve been having for awhile now.  How to quickly make charts and graphs that pull dynamically from SharePoint Lists.
Screen Shot of the finished product:

Claudio Cabaleyro posted this article on endusersharepoint.com on how to use jquery and google charts to pull info off of SharePoint [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=19&subd=wyly&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here is a quick trick I learned today that solves an issue I&#8217;ve been having for awhile now.  How to quickly make charts and graphs that pull dynamically from SharePoint Lists.</p>
<p><em>Screen Shot of the finished product:</em></p>
<p><img class="alignnone size-full wp-image-23" title="graphsscreenshot" src="http://wyly.files.wordpress.com/2009/04/graphsscreenshot.jpg?w=450&#038;h=258" alt="graphsscreenshot" width="450" height="258" /></p>
<p>Claudio Cabaleyro posted this article on <a href="http://www.endusersharepoint.com/?p=1537">endusersharepoint.com</a> on how to use jquery and google charts to pull info off of SharePoint Lists and display it as a Pie Chart.  I tried it out and it literally took me 1 minute to have my first pie chart.  I quickly saw some limitations that people may run into and in this article I will talk about some tweaks I did to Claudio&#8217;s code to do some very cool stuff.</p>
<p>First off, the code works by rooting for any table cell that has the class &#8220;ms-gb&#8221; and then checks to see if that cell has an &#8220;:&#8221; in it.  Here is the code</p>
<p>var arrayList=$(&#8220;td.ms-gb:contains(&#8216;:&#8217;)&#8221;);</p>
<p>This works fine except if you want to have multiple graphs on the same page, then the code would tally all your lists together regardless if they were related or not.  If you would like to have more than on graph here is how to edit that line of code.</p>
<p>var arrayList=$(&#8220;td.ms-gb:contains(&#8216;[name of column that's grouped]&#8216;)&#8221;);</p>
<p>Since my first list was grouped om the Category so I put Category in there instead of the colon.<br />
var arrayList=$(&#8220;td.ms-gb:contains(&#8216;Category&#8217;)&#8221;);</p>
<p>My second graph, I made another list and grouped it by Status, I copied and pasted the code a second time in the second instance I changed the code to:<br />
var arrayList=$(&#8220;td.ms-gb:contains(&#8216;Status&#8217;)&#8221;);</p>
<p>Now at least you can have multiple graphs as long as the column names that are doing the grouping are different.  I also made an update to the second div tag id to prevent there being two identical id&#8217;s from being on the same page.  On the second div <em>&lt;div id=&#8221;jLoadMe&#8221; class=&#8221;content&#8221;&gt;</em> I changed to <em>&lt;div id=&#8221;jLoadMe2&#8243; class=&#8221;content&#8221;&gt;</em> at the end where it dumps the information I updated <em>$(&#8220;#jLoadMe&#8221;).append</em> to <em>$(&#8220;#jLoadMe2&#8243;).append</em></p>
<p>Since I did not one of the lists to actually show up I went to layouts and checked the hidden box, and the pie chart continued to work fine.</p>
<p>Other notes:</p>
<p>I went to google charts at <a href="http://code.google.com/apis/chart/">http://code.google.com/apis/chart/</a> and spent some time learning how to customize the charts a little bit.</p>
<p>To change the color all you have to do is add &amp;chco=#[Hexadecimal color number], the &amp;chs=250&#215;100 tells the width and heigth of the cart image and you can change the piechart to a non-3d chart with the cht=p here is what my code looked like when it was done.</p>
<p>var vinc= &#8220;&lt;IMG src=&#8217;http://chart.apis.google.com/chart?cht=p&amp;chs=250&#215;100&amp;chd=t:&#8221;+txt+&#8221;&amp;chl=&#8221;+txt1+&#8221;&amp;chco=0000FF&#8217; /&gt;&#8221;;<br />
 $(&#8220;#jLoadMe&#8221;).append(&#8220;&lt;p&gt;&#8221;+vinc+&#8221;&lt;/p&gt;&#8221;)</p>
<p>Here is what the chart looked like:</p>
<p><img class="alignnone size-full wp-image-20" title="bluegraph" src="http://wyly.files.wordpress.com/2009/04/bluegraph.gif?w=253&#038;h=139" alt="bluegraph" width="253" height="139" /></p>
<p>I hope the rest of you find this solution as useful as I did.  As I said, I had a dynamic charts of my SharePoint Lists up in minutes!</p>
<p>UPDATE!<br />
Here is the code that I used to do the two pie charts side by side:</p>
<pre class="brush: xml;">

&lt;script type=&quot;text/javascript&quot;&gt;
if(typeof jQuery==&quot;undefined&quot;){
var jQPath=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/&quot;;
document.write(&quot;&lt;script src='&quot;,jQPath,&quot;jquery.js' type='text/javascript'&gt;&lt;\/script&gt;&quot;);
}
&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
var chartkeyword = [];
var chartcolor = [];

////////////////////////// Customizations /////////////////////////////////

chartkeyword[1]=&quot;Status&quot; 	//name of the first column that's grouped
chartkeyword[2]=&quot;Category&quot;	//name of the second column that's grouped

chartcolor[1]=&quot;FF0000&quot;		//Color of Pie Chart 1
chartcolor[2]=&quot;0000FF&quot;		//Color of Pie Chart 2

var charts=2

&lt;/script&gt;
&lt;table width=100%&gt;&lt;tr&gt;
&lt;td&gt;&lt;div id=&quot;jLoadMex1&quot; class=&quot;content&quot;&gt;&lt;strong&gt;

&lt;!------------- Name of Chart 1 --------------------------&gt;
Add a Name Here

&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;div id=&quot;jLoadMex2&quot; class=&quot;content&quot;&gt;&lt;strong&gt;

&lt;!------------- Name of Chart 2 --------------------------&gt;
Add a Name Here

&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
$(&quot;document&quot;).ready(function(){

for(var i=1;i&lt;=2;i++)
{
makeChart(i)
}
});

function makeChart(i)
{
	var arrayList=$(&quot;td.ms-gb:contains('&quot; + chartkeyword[i] + &quot;')&quot;);
	var coord= new Array();
	var labels= new Array();
	$.each(arrayList, function(i,e)
	{
		var MyIf= $(e).text();
		var txt= MyIf.substring(MyIf.indexOf('(')+1,MyIf.length-1); // Extract the 'Y' coordinates
		coord[i]=txt;
		var txt1= MyIf.substring(MyIf.indexOf(':')+2,MyIf.indexOf(&quot;(&quot;)-1); // Extract the labels
		labels[i]=txt1+&quot;(&quot;+txt+&quot;)&quot;;   //add also coordinates for better read
	});
	var txt= coord.join(&quot;,&quot;);
	var txt1= labels.join(&quot;|&quot;);
	// Adjust Chart Properties below - See Google Charts API for reference
	var vinc= &quot;&lt;IMG src='http://chart.apis.google.com/chart?cht=p&amp;chs=320x120&amp;chd=t:&quot;+txt+&quot;&amp;chl=&quot;+txt1+&quot;&amp;chco=&quot;+chartcolor[i]+&quot;' /&gt;&quot;;
	$(&quot;#jLoadMex&quot;+i).append(&quot;&lt;p&gt;&quot;+vinc+&quot;&lt;/p&gt;&quot;)
}

&lt;/script&gt;
</pre>
<p>Change the keywords at the top of the code to the name of the categories you are grouping by&#8230; Good Luck!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wyly.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wyly.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wyly.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wyly.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wyly.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wyly.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wyly.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wyly.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wyly.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wyly.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=19&subd=wyly&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wyly.wordpress.com/2009/04/24/adding-graphs-bar-and-pie-charts-to-sharepoint/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/162f5cdfa24ee2bd15cbc4021a8d2ab0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wyly</media:title>
		</media:content>

		<media:content url="http://wyly.files.wordpress.com/2009/04/graphsscreenshot.jpg" medium="image">
			<media:title type="html">graphsscreenshot</media:title>
		</media:content>

		<media:content url="http://wyly.files.wordpress.com/2009/04/bluegraph.gif" medium="image">
			<media:title type="html">bluegraph</media:title>
		</media:content>
	</item>
		<item>
		<title>Create a Related Documents Data View</title>
		<link>http://wyly.wordpress.com/2009/03/30/create-a-related-documents-data-view/</link>
		<comments>http://wyly.wordpress.com/2009/03/30/create-a-related-documents-data-view/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 18:32:52 +0000</pubDate>
		<dc:creator>wyly</dc:creator>
				<category><![CDATA[SharePoint Project Template]]></category>
		<category><![CDATA[Budgeting and tracking Multiple Projects Template]]></category>
		<category><![CDATA[Fantastic 40]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[SharePoint Template]]></category>

		<guid isPermaLink="false">http://wyly.wordpress.com/?p=3</guid>
		<description><![CDATA[Customizing the Budgeting and Tracking Multiple Projects Template

This is the final product of this blog&#8230; a related documents data view that functions and looks like the related tasks, issues and milestones on the Budgeting and Tracking Multiple Projects Template.

At my organization, we have found the Budgeting and Tracking Multiple Projects Template extremely useful. For those [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=3&subd=wyly&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Customizing the Budgeting and Tracking Multiple Projects Template</p>
<p><em><span style="font-size:x-small;"><img class="alignnone size-full wp-image-4" title="finaldataview" src="http://wyly.files.wordpress.com/2009/03/finaldataview.jpg?w=450&#038;h=314" alt="finaldataview" width="450" height="314" /><br />
This is the final product of this blog&#8230; a related documents data view that functions and looks like the related tasks, issues and milestones on the </span></em><strong><span style="color:#000000;"><em><span style="font-size:x-small;">Budgeting and Tracking Multiple Projects Template.</span></em><br />
</span></strong><br />
At my organization, we have found the <strong>Budgeting and Tracking Multiple Projects Template</strong> extremely useful. For those of you have not seen this template I urge you to go to <a href="http://www.wssdemo.com/application/default.aspx">http://www.wssdemo.com/application/default.aspx</a> and view an example of this handy template. <em>The link is in the left nav 2cnd one after the heading <strong>Template Type: Server Admin</strong></em>.</p>
<p>In a nutshell the template allows you to track all you projects as you normally would. When you click on a detail view of the project, you also get a <strong>related tasks</strong>, <strong>related issues</strong> and <strong>related milestones</strong> data views on the same page. Any tasks, issues or milestones you add on this page will be associated with that particular project and will rollup onto a nice looking dashboard.</p>
<p>However&#8230; like anything, SharePoint gets you 95% there and leaves you to your own devices to accomplish the last 10 feet.</p>
<p>I was asked by a business user to add a <strong>related documents</strong> view. Made sense to me, so now you have all your tasks, issues, milestones and documents on one convenient page. Perhaps people would like to add a <strong>related links</strong> or <strong>related announcements</strong> or <strong>calendar</strong> items, so I set out to figure a way to add these items with one goal in mind, make a <strong><span style="color:#ff0000;">no</span></strong> <strong>.net code</strong> solution that a user with SharePoint designer could do. Here is the fruit of my labors.</p>
<p>First you must have the <strong>Budgeting and Tracking Multiple Projects Template</strong>. It is one of the Fantastic 40 Microsoft templates for SharePoint. If you don&#8217;t already have it, you will need a farm administrator to install it for you. If you have these permissions and want to do it, <a href="http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb407286.aspx">here are the templates and instructions</a>.</p>
<p>Second you must have SharePoint Designer and the permissions to use it, other than that you are good to go!</p>
<p>Finally, you can do this on the detail view of any list, not just the above template.</p>
<p><strong>Step 1: Create a new Document Library</strong><br />
I called mine Project Documents, call yours whatever you would like. Go into <em>Settings</em> then <em>Advanced Settings</em> and click on Yes to <span><em>Allow management of content types.</em> This allows you to add a new column to the Document Library Content type.</span></p>
<p><strong>Step 2: Add a new lookup column to the Document Library</strong><br />
It makes no difference what you call this field, but I called mine Project. You will want to point it at the Item column on the Projects List. Now go back into your new library and add a few documents and select a couple of projects in your newly created lookup column that they belong to.</p>
<p><strong>Step 3: Open up the DispForm.aspx page in the Lists-Projects Directory</strong><br />
Make a small text edit to make sure you have the right page, and now go get a cup of coffee or another favorite beverage, because the next part is a little complex if you’re not used to looking at code.</p>
<p><strong>Step 4: Click below the Related Milestones Data View and insert a new Data View</strong><br />
In your data source, choose your document library you just made and pick the fields you would like to display. I recommend the minimum of the fields &#8220;item&#8221; and &#8220;url path&#8221;</p>
<p><strong>Step 5: Add a Query string parameter called &#8220;projectname&#8221;</strong><br />
Click on the arrow in the data view box and select parameters from the menu Click &#8220;New Parameter&#8221; Pick &#8220;Query string&#8221; for Parameter Source and &#8220;projectname&#8221; for Query String variable.</p>
<p>Now click on the arrow again and this time select Filter.  Pick the <em>Name (for use in forms) </em>field when it equals <em>[projectname].</em></p>
<p><strong>Step 6: Add a div tag around the title</strong><br />
The title of the page is the name of the item you are looking at in detail. For example if you click on the Project called &#8220;Upgrade Servers&#8221; The title of the detail page will be at the top of the page &#8211; <strong>Projects List: Upgrade Servers</strong>. If we select this title in design view, we will see that the this title field is an asp tag called</p>
<p><span style="font-size:x-small;">&lt;sharepoint:listitemproperty id=&#8221;ID_ItemProperty&#8221; runat=&#8221;server&#8221; maxlength=&#8221;40&#8243;&gt;&lt;/sharepoint:listitemproperty&gt;</span></p>
<p>Add a div tag around this asp tag like this:</p>
<pre class="brush: xml;">
&lt;span style=&quot;font-size:x-small;&quot;&gt;&amp;lt;div id=&quot;projectname&quot; style=&quot;display:inline&quot;&amp;gt;
&lt;div id=&quot;projectname&quot; style=&quot;display:inline&quot;&gt;
&lt;SharePoint:ListItemProperty id=&quot;ID_ItemProperty&quot; MaxLength=40 runat=&quot;server&quot;/&gt;
&lt;/div&gt;
</pre>
<p>This div tag allows you to grab the title of the item you want to filter your related documents on.</p>
<p><strong>Step 7: Add the following Javascript Code</strong><br />
Add this code directly after an existing javascript code snippet on the dispForm.aspx page</p>
<pre class="brush: xml;">
&lt;script type=&quot;text/javascript&quot;&gt;

function querySt(ji)
{
	hu = window.location.search.substring(1);
	gy = hu.split(&quot;&amp;&quot;);
	for (i=0;i&lt;gy.length;i++)
	{
		ft = gy[i].split(&quot;=&quot;);
		if (ft[0] == ji)
		{
		return ft[1];
		}
	}
}
var projectname = querySt(&quot;projectname&quot;);
var checked = querySt(&quot;projectname&quot;);
var url=window.location

if (!projectname &amp;&amp; !checked)
{
	projectname=document.getElementById(&quot;projectname&quot;).innerHTML
	checked=1
				url=url+&quot;&amp;projectname=&quot;+projectname+&quot;&amp;checked=&quot;+checked
	window.location = url
}

&lt;/script&gt;
</pre>
<p>Now select a project on the main page.  Only the documents that have that project listed in the lookup field <em>Project</em>, should appear.  Test to make sure it works</p>
<p><strong>Step 8: Fix up the view to look the way you want</strong><br />
This is perhaps the most tedious and time consuming part of adding a related list, getting it to look the way you want.</p>
<p align="left">Select the table, click on the arrow for the data view and click edit columns. I used the columns Item, Modified and Modified by.</p>
<p align="left">Find the following in the related documents view<br />
xsl:value-of select=&#8221;@Title&#8221;/&gt;<br />
and replace with</p>
<pre class="brush: xml;">
&lt;a href=&quot;{@FileRef}&quot;&gt;
&lt;xsl:value-of select=&quot;@Title&quot;/&gt;
&lt;/a&gt;
</pre>
<p align="left">This will display the item as a link to the document.</p>
<p align="left">Make two new table rows right after the start of the table and add the title &#8220;Related Documents&#8221; to the second row.</p>
<pre class="brush: xml;">
&lt;table border=&quot;0&quot; width=&quot;100%&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td class=&quot;ms-WPHeader&quot; colspan=&quot;99&quot;&gt;
&lt;xsl:text xmlns:ddwrt=&quot;http://schemas.microsoft.com/WebParts/v2/DataView/runtime&quot; ddwrt:nbsp-preserve=&quot;yes&quot; disable-output-escaping=&quot;yes&quot;&gt;&amp;amp;nbsp; &lt;/xsl:text&gt;
&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;
&lt;td class=&quot;ms-WPHeader&quot; colspan=&quot;99&quot;&gt;
&lt;h3 class=&quot;ms-standardheader ms-WPTitle&quot;&gt;Related Documents&lt;/h3&gt;&lt;/td&gt;
&lt;/tr&gt;
</pre>
<p align="left">Add the following code right before the closing table tag for the &#8220;upload new document link&#8221;.</p>
<pre class="brush: xml;">
&lt;tr valign=&quot;top&quot;&gt;
&lt;td colspan=&quot;99&quot; class=&quot;ms-vh&quot;&gt;
&lt;a href=&quot;Enter the url of your new item for the library here&quot;&gt;
Upload a new Document...
&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
</pre>
<p align="left"> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wyly.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wyly.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wyly.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wyly.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wyly.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wyly.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wyly.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wyly.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wyly.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wyly.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wyly.wordpress.com&blog=7164086&post=3&subd=wyly&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wyly.wordpress.com/2009/03/30/create-a-related-documents-data-view/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/162f5cdfa24ee2bd15cbc4021a8d2ab0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wyly</media:title>
		</media:content>

		<media:content url="http://wyly.files.wordpress.com/2009/03/finaldataview.jpg" medium="image">
			<media:title type="html">finaldataview</media:title>
		</media:content>
	</item>
	</channel>
</rss>