<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8705297068966115777</atom:id><lastBuildDate>Thu, 12 Nov 2009 09:31:58 +0000</lastBuildDate><title>SharePoint Kings</title><description>SharePoint Kings,Technosavy guys hunting SharePoint Challenges...
MOSS 2007, Windows Workflow Foundation, Project Server  and Other Related Technologies.</description><link>http://www.sharepointkings.com/</link><managingEditor>parth2651@gmail.com (Parth Patel)</managingEditor><generator>Blogger</generator><openSearch:totalResults>278</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SharepointKings" type="application/rss+xml" /><feedburner:emailServiceId>SharepointKings</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FSharepointKings" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FSharepointKings" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FSharepointKings" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/SharepointKings" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FSharepointKings" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FSharepointKings" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FSharepointKings" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-7833992240002040828</guid><pubDate>Tue, 20 Oct 2009 05:16:00 +0000</pubDate><atom:updated>2009-10-20T11:00:51.507+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Coloring Events in SharePoint calendar</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hcV4dWRKFx2J1zKX1GJYbzA57Ac/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hcV4dWRKFx2J1zKX1GJYbzA57Ac/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hcV4dWRKFx2J1zKX1GJYbzA57Ac/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hcV4dWRKFx2J1zKX1GJYbzA57Ac/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;We all are familiar with coloring events in Outlook calendar. Question is can we have the same deal with SharePoint calendar and the answer is yes we can have. In this article, I am going to share few tips on how to achieve this functionality. &lt;br /&gt;&lt;br /&gt;To achieve this, first create one field in Calendar list. For example, give it a name “Category”. Your each event is divided in some category.  Give it as choice column and enter following categories for selection choice.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_zOVGRm4VkbY/St1HuRaKnHI/AAAAAAAAAG0/iDpzFYAhV38/s1600-h/CreateCategory.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/St1HuRaKnHI/AAAAAAAAAG0/iDpzFYAhV38/s400/CreateCategory.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5394546788932426866" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So, your each event is divided in these two categories. So now, go ahead and add two entries in calendar. One of Sports and other is of important meeting category.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_zOVGRm4VkbY/St1H10Qu0WI/AAAAAAAAAG8/ttIunJeCZsE/s1600-h/ShowCategory.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/St1H10Qu0WI/AAAAAAAAAG8/ttIunJeCZsE/s400/ShowCategory.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5394546918547181922" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Also create one more calculated column called “CatTitle”&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_zOVGRm4VkbY/St1IGgH6d2I/AAAAAAAAAHE/6zU1k1rjH90/s1600-h/CreateCaclulated.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/St1IGgH6d2I/AAAAAAAAAHE/6zU1k1rjH90/s400/CreateCaclulated.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5394547205199263586" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And change the calendar view to this&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_zOVGRm4VkbY/St1IhQVgyJI/AAAAAAAAAHM/ZNTEzYb48xU/s1600-h/CalendarView.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/St1IhQVgyJI/AAAAAAAAAHM/ZNTEzYb48xU/s400/CalendarView.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5394547664817801362" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And now we will add one content editor web part below calendar web part. So Edit the page and add one content editor web part and add the following line of code. This will color the different events.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script&amp;gt;&lt;br /&gt;&lt;br /&gt;var SEPARATOR = &amp;quot;|||&amp;quot;;&lt;br /&gt;&lt;br /&gt;var nodes, category;&lt;br /&gt;&lt;br /&gt;nodes = document.getElementsByTagName(&amp;quot;a&amp;quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for(var i = 0; i &amp;lt; nodes.length; i++)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if(nodes[i].innerText.indexOf(SEPARATOR) != -1)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  UpdateCalendarEntryText(nodes[i]);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  var foundNode = nodes[i];&lt;br /&gt;  var trap = 0;&lt;br /&gt;&lt;br /&gt;  while(foundNode.nodeName.toLowerCase() != &amp;quot;td&amp;quot;)&lt;br /&gt;  {&lt;br /&gt;     foundNode = foundNode.parentNode;&lt;br /&gt;&lt;br /&gt;     trap++;&lt;br /&gt;     if(trap &amp;gt; 10)&lt;br /&gt;     {&lt;br /&gt;        break; // don't want to end up in a loop&lt;br /&gt;&lt;br /&gt;            }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  var colour = GetCalendarColour(category);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  if(colour != &amp;quot;&amp;quot;)&lt;br /&gt;&lt;br /&gt;     foundNode.style.background = colour;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function UpdateCalendarEntryText(anchorNode)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;var children = anchorNode.childNodes;&lt;br /&gt;for(var i = 0; i &amp;lt; children.length; i++)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;  if(children[i].nodeType == 3 &amp;amp;&amp;amp; children[i].nodeValue.indexOf(SEPARATOR) != -1)&lt;br /&gt;  {&lt;br /&gt;     var parts = children[i].nodeValue.split(SEPARATOR);&lt;br /&gt;&lt;br /&gt;     category = parts[0];&lt;br /&gt;     children[i].nodeValue = parts[1];     &lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  else&lt;br /&gt;     UpdateCalendarEntryText(children[i]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function GetCalendarColour(desc)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;var colour;&lt;br /&gt;&lt;br /&gt;switch(desc.toLowerCase())&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;  case &amp;quot;sports event&amp;quot;:&lt;br /&gt;     colour = &amp;quot;#3399FF&amp;quot;;&lt;br /&gt;     break;&lt;br /&gt;&lt;br /&gt;  case &amp;quot;important meeting&amp;quot;:&lt;br /&gt;     colour = &amp;quot;#FF33FF&amp;quot;;&lt;br /&gt;     break;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;  default:&lt;br /&gt;     colour = &amp;quot;&amp;quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return colour;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_zOVGRm4VkbY/St1JZC7FJOI/AAAAAAAAAHU/C69xTMFIULo/s1600-h/Result.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/St1JZC7FJOI/AAAAAAAAAHU/C69xTMFIULo/s400/Result.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5394548623289951458" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I would like to thank &lt;a href="http://planetwilson.blogspot.com/2007/09/sharepoint-2007-colour-color-calendar.html" target="_blank"&gt; Mark Wilson&lt;/a&gt; for this wonderful trick.&lt;br /&gt;&lt;br /&gt;That's it. your job is done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-7833992240002040828?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/XP-sp9xzGU0/coloring-events-in-sharepoint-calendar.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_zOVGRm4VkbY/St1HuRaKnHI/AAAAAAAAAG0/iDpzFYAhV38/s72-c/CreateCategory.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/10/coloring-events-in-sharepoint-calendar.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-1577240718089455782</guid><pubDate>Thu, 15 Oct 2009 10:22:00 +0000</pubDate><atom:updated>2009-10-15T15:56:25.189+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Hiding field in SharePoint through JavaScript</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JXZM52_PXVAVskP4e-uEcdknbRo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JXZM52_PXVAVskP4e-uEcdknbRo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JXZM52_PXVAVskP4e-uEcdknbRo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JXZM52_PXVAVskP4e-uEcdknbRo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Many times we require to hide specific field in new form, disp form and edit form. This time we will do it with the help of javascript. We can do the same thing with the help of SharePoint API. However we will cover here that how to achieve the same with the help of JavaScript.&lt;br /&gt;&lt;br /&gt;Let us go to calendar and click on new. You will now be on Newform.aspx. We can see here one field named “WorkSpace”. If we don’t want user to create any workspace here, then we can hide this field with the help of JavaScript code.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_zOVGRm4VkbY/Stb4SEd4EfI/AAAAAAAAAGk/8GQGZVF8g7s/s1600-h/Hide1.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 289px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/Stb4SEd4EfI/AAAAAAAAAGk/8GQGZVF8g7s/s400/Hide1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5392770593143132658" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To hide a specific field, insert one content editor web part on the page and then just copy and paste the following code. Insert this web part below the new form web part. &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;function HideField(title){&lt;br /&gt;var header_h3=document.getElementsByTagName(&amp;quot;h3&amp;quot;) ;&lt;br /&gt;&lt;br /&gt;for(var i = 0; i &amp;lt;header_h3.length; i++)&lt;br /&gt;{&lt;br /&gt;    var el = header_h3[i];&lt;br /&gt;    var foundField ;&lt;br /&gt;   if(el.className==&amp;quot;ms-standardheader&amp;quot;)&lt;br /&gt;    {&lt;br /&gt;        for(var j=0; j&amp;lt;el.childNodes.length; j++)&lt;br /&gt;        { &lt;br /&gt;            if(el.childNodes[j].innerHTML == title || el.childNodes[j].nodeValue == title)&lt;br /&gt;            { &lt;br /&gt;                var elRow = el.parentNode.parentNode ;&lt;br /&gt;                elRow.style.display = &amp;quot;none&amp;quot;; //and hide the row&lt;br /&gt;                foundField = true ;&lt;br /&gt;                break;&lt;br /&gt;            }&lt;br /&gt;        }        &lt;br /&gt;    }&lt;br /&gt;    if(foundField)&lt;br /&gt;        break ;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;HideField(&amp;quot;Workspace&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;After you’ve inserted this code, just look at the result shown below.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_zOVGRm4VkbY/Stb4euFFdmI/AAAAAAAAAGs/L6IGJwP_iWc/s1600-h/Hide2.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/Stb4euFFdmI/AAAAAAAAAGs/L6IGJwP_iWc/s400/Hide2.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5392770810471872098" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That’s it. Your job is done. You can apply the same code in disp and edit form as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-1577240718089455782?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/U1l9tU6a9Nc/hiding-field-in-sharepoint-through.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_zOVGRm4VkbY/Stb4SEd4EfI/AAAAAAAAAGk/8GQGZVF8g7s/s72-c/Hide1.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/10/hiding-field-in-sharepoint-through.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-6576040375339363602</guid><pubDate>Mon, 12 Oct 2009 17:32:00 +0000</pubDate><atom:updated>2009-10-12T23:05:02.306+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Sharepoint administration</category><title>Sharepoint’s “!New” indicator duration.</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LsbmnXajxDScJimDZLWlpck_two/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LsbmnXajxDScJimDZLWlpck_two/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LsbmnXajxDScJimDZLWlpck_two/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LsbmnXajxDScJimDZLWlpck_two/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi folks,&lt;br /&gt;&lt;br /&gt;Here we are explaining a way, how to change “!New” indicator time span.&lt;br /&gt;&lt;br /&gt;Below is the command to change the time of “!New” label of SharePoint Item&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;stsadm.exe -o setproperty -pn days-to-show-new-icon -pv &lt;&lt;Number of days&gt;&gt; -url [Your Virtual Server's URL]&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;To turn off the “!New” icon, set the number of days to zero&lt;br /&gt;&lt;br /&gt;Here is the &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;825510&amp;Product=spts" target='_blank'&gt;MSDN KB&lt;/a&gt; link for the same.&lt;br /&gt;&lt;br /&gt;The change is for ALL list items (not just documents) on the virtual server&lt;br /&gt;Good thing is it does not required IISRESET&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-6576040375339363602?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/3BpA9SxpBeM/sharepoints-new-indicator-duration.html</link><author>noreply@blogger.com (SharePoint Kings)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/10/sharepoints-new-indicator-duration.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-5936865663475236347</guid><pubDate>Sat, 10 Oct 2009 04:43:00 +0000</pubDate><atom:updated>2009-10-10T10:18:52.930+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Sharepoint Errors and Resolutions</category><title>'∩╗┐' is not recognized as an internal or external command</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5t4R_pgJe5X7SYpx4-YTWpRhsOs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5t4R_pgJe5X7SYpx4-YTWpRhsOs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5t4R_pgJe5X7SYpx4-YTWpRhsOs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5t4R_pgJe5X7SYpx4-YTWpRhsOs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;I face a problem when i create .bat file in Visual studio it add an extran non-ASCII character in my bat file and i am getting error '∩╗┐' is not recognized as an internal or external command,&lt;br /&gt;it is because it is UTF-8 format &lt;br /&gt;&lt;br /&gt;so to fix it Use notepad++ and paste your .bat code in it and go to Format Menu select ASCII format and save it it will work like charm :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy SharePointing....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SharePointKings&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-5936865663475236347?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/v-Mx_UzK9Jc/is-not-recognized-as-internal-or.html</link><author>noreply@blogger.com (Jayesh Prajapati)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/10/is-not-recognized-as-internal-or.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-1307055826285899525</guid><pubDate>Tue, 06 Oct 2009 17:26:00 +0000</pubDate><atom:updated>2009-10-06T23:12:38.238+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Sharepoint Errors and Resolutions</category><category domain="http://www.blogger.com/atom/ns#">MOSS Search</category><title>Office SharePoint Search Service hangs does not start</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sOuON1O6bY1w0-l2gfB7ujczLMo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sOuON1O6bY1w0-l2gfB7ujczLMo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sOuON1O6bY1w0-l2gfB7ujczLMo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sOuON1O6bY1w0-l2gfB7ujczLMo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;I have faced one strange problem i was restarting Office SharePoint Search Service on my farm environment and suddenly it got hanged it is showing me in starting state there is no stop,start or restart option in services.msc console. I have restarted my machine but still error was as it is.&lt;br /&gt;I tried following command also&lt;br /&gt; &lt;br /&gt;stsadm -o osearch -action start &lt;br /&gt;stsadm -o osearch -action stop&lt;br /&gt;net stop oSearch&lt;br /&gt;net start oSearch&lt;br /&gt;nothing was working for me it shows me operation time out as osearch service is in starting state.&lt;br /&gt;&lt;br /&gt;I fixed it by &lt;br /&gt;psconfig -cmd services -install&lt;br /&gt;and configure SharePoint search again and it works for me.&lt;br /&gt;&lt;br /&gt;warning: follow above instruction at your risk on production environment :)&lt;br /&gt;&lt;br /&gt;SharePointKings&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-1307055826285899525?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/HM6_tqgb2jc/office-sharepoint-search-service-hangs.html</link><author>noreply@blogger.com (Jayesh Prajapati)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/10/office-sharepoint-search-service-hangs.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-3534329534416453784</guid><pubDate>Sun, 04 Oct 2009 10:32:00 +0000</pubDate><atom:updated>2009-10-04T16:21:18.687+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">MOSS Customization</category><title>MOSS 2007 Master Page DOCTYPE Issue</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7nKyr3HRAFEw9F-zYtKNwkm-KDg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7nKyr3HRAFEw9F-zYtKNwkm-KDg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7nKyr3HRAFEw9F-zYtKNwkm-KDg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7nKyr3HRAFEw9F-zYtKNwkm-KDg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;       Today i would like to discuss an issue which i think most of us would have faced when we try to add a declaration in the top of the master page like:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/loose.dtd&amp;quot;&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This is a standard declaration you will see on any aspx page and we all know why it is required.&lt;br /&gt;&lt;br /&gt;But when you add this declaration in a SharePoint master page...you are inviting trouble..why..simply because of the reason that SharePoint master page is XHTML non-compliant.&lt;br /&gt;You will ask me why you need a DOCTYPE in a master page?&lt;br /&gt;Reason being the fact that i am using a AJAX modal pop up in the master page and we all know what happens when you add a ajax control in a master page without a doctype declaration..The page looks weird and the structure breaks from many places.&lt;br /&gt;&lt;br /&gt;The only solution i know in this case is to choose from one of the following options:&lt;br /&gt;&lt;br /&gt;1. Remove the AJAX modal pop up and hence the DOCTYPE declaration and use some other pop up . A javascript pop up may be&lt;br /&gt;2. Keep the DOCTYPE declaration and modify the style of the elements whose structure is broken as an effect of adding doctype.&lt;br /&gt;&lt;br /&gt;Hmm...you can't refuse clients requirement , and hence you have to go with option 2.&lt;br /&gt;&lt;br /&gt;Consider for example after adding DOCTYPE the quick launch menu started looking weird, You tried changing the style sheet class attributes but no use.&lt;br /&gt;The reason being the fact that the master page is no longer taking the out of the box style sheet classes like ms-navheader !&lt;br /&gt;Follow the steps mentioned below and get rid of this problem:&lt;br /&gt;1. Create a new class in your style sheet (Note: Do not make change in CORE.css)&lt;br /&gt;and copy the attributes you were using previously in it e.g if the previous class name was ms-navheader then create a new class by name such as leftnavheader and copy the attributes under its declaration. Similarly create other classes.&lt;br /&gt;2. Open the master page in the designer and replace the old class name with new one at all the places. &lt;br /&gt;3. Save and publish the master page and you will see the changes are visible now.&lt;br /&gt;&lt;br /&gt;Go ahead and follow the same procedure at all the places. I know its strange but can't help it.&lt;br /&gt;&lt;br /&gt;If you have some better way of solving this issue or facing any problem understanding this post please let us know at sharepointkings@gmail.com&lt;br /&gt;&lt;br /&gt;Happy Coding !!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-3534329534416453784?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/2IIodraErJ0/moss-2007-master-page-doctype-issue.html</link><author>noreply@blogger.com (Ajit Agashe)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/10/moss-2007-master-page-doctype-issue.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-2449256055661868838</guid><pubDate>Mon, 28 Sep 2009 11:57:00 +0000</pubDate><atom:updated>2009-09-29T22:10:30.181+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">MOSS Customization</category><category domain="http://www.blogger.com/atom/ns#">Object Model</category><title>Hide Content Place Holder Programmatically</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VRtxqPywI8kzWjQq76sz_GhjUGc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VRtxqPywI8kzWjQq76sz_GhjUGc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VRtxqPywI8kzWjQq76sz_GhjUGc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VRtxqPywI8kzWjQq76sz_GhjUGc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I was working on replacing a control from the master page by a custom web part. Initially i commented everything inside the content place holder and added my web part. If you want to know how to add a web part in the master page, have a look at my previous post at :&lt;br /&gt;&lt;br /&gt;http://www.sharepointkings.com/2009/09/add-web-part-inside-master-page-in-moss.html&lt;br /&gt;&lt;br /&gt;Later on i moved the web part reference out of the content place holder and made the visible attribute of the content place holder to false.&lt;br /&gt;&lt;br /&gt;But now the requirement is to dynamically turn it ON and OFF (i.e through code)&lt;br /&gt;&lt;br /&gt;Lets follow the steps given below to achieve this:&lt;br /&gt;&lt;br /&gt;1. Go to the page_load method of the web part.&lt;br /&gt;2. Write the following lines of code.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;if (!Page.IsPostBack)&lt;br /&gt;{&lt;br /&gt; ContentPlaceHolder contPlcHolder = (ContentPlaceHolder)Page.Master.FindControl(&amp;quot;PlaceHolderGlobalNavigation&amp;quot;);&lt;br /&gt; contPlcHolder.Visible = false;&lt;br /&gt; &lt;br /&gt; //Rest of the code &lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;If there is any nested content place holder then append that number of FindControl("ControlName") to the above code where we are finding the control.&lt;br /&gt;&lt;br /&gt;That's it. Save the code and deploy the latest web part code.&lt;br /&gt;&lt;br /&gt;If you are facing any issue then email us at sharepointkings@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-2449256055661868838?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/cPyNQbA60P8/hide-content-place-holder.html</link><author>noreply@blogger.com (Ajit Agashe)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/09/hide-content-place-holder.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-284876820825679070</guid><pubDate>Sun, 13 Sep 2009 13:46:00 +0000</pubDate><atom:updated>2009-09-29T22:20:12.963+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">MOSS Customization</category><title>Add Web Part inside a Master Page in MOSS 2007</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Sp-v7PHMbQul2YTiI9ISiKjrC9Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Sp-v7PHMbQul2YTiI9ISiKjrC9Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Sp-v7PHMbQul2YTiI9ISiKjrC9Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Sp-v7PHMbQul2YTiI9ISiKjrC9Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Imagine that you are designing a master page for your MOSS site and you have a requirement to have a functionality that is not possible out of the box. You brain storm on it and concludes that only custom web part can solve your problem.&lt;br /&gt;But now your concern is how you can make this custom web part as part of your master page?&lt;br /&gt;It’s easy! Just follow the steps given below to add a web part inside a master page.&lt;br /&gt;&lt;br /&gt;1. Deploy the web part in your web application as you do normally.&lt;br /&gt;2. Check whether the web part is showing up in the web part gallery.&lt;br /&gt;3. Create a web part page by navigating to the site settings, create web part page.&lt;br /&gt;4. Add your custom web part on the web part page.&lt;br /&gt;5. Start SharePoint designer and open the newly created web part page.&lt;br /&gt;6. You will now find two entries corresponding to the web part you added on the page&lt;br /&gt;i. In the page declaration you will find a entry which looks something like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Register TagPrefix=&amp;quot;WpNs0&amp;quot; Namespace=&amp;quot;MyNamespace.MyClass&amp;quot; Assembly=&amp;quot; MyNamespace.MyClass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&amp;quot;%&amp;gt;&lt;br /&gt;&lt;br /&gt;ii. Click on the web part section in the page and you will see an entry like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;WpNs0:WebPartName runat=&amp;quot;server&amp;quot; ID=&amp;quot;g_34cdbb90_38c6_4561_9182_8fbc0d2423a6&amp;quot; ExportMode=&amp;quot;All&amp;quot; Title=&amp;quot;WebPartTitle&amp;quot; __MarkupType ……………..&lt;br /&gt;&lt;br /&gt;7. Copy these entries in separate notepad, and close the page opened in the SharePoint designer.&lt;br /&gt;8. Now open the master page in SharePoint designer and add the first entry in the declaration section and second entry at the place where you want to add the web part to.&lt;br /&gt;9. Save the page, check in and publish it and that’s it. Your job is done.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do let us know in case you are facing any issue following the steps mentioned.&lt;br /&gt;You can email us at sharepointkings@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-284876820825679070?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/kQvurnYhZ0Y/add-web-part-inside-master-page-in-moss.html</link><author>noreply@blogger.com (Ajit Agashe)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_afWWXxnK3dw/Sq0ABJLwUgI/AAAAAAAACCc/YMiPbxaUJa4/s72-c/1.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/09/add-web-part-inside-master-page-in-moss.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-1179397729761888203</guid><pubDate>Sun, 06 Sep 2009 05:10:00 +0000</pubDate><atom:updated>2009-09-06T10:45:28.786+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint Basics</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Creating and working with Survey in SharePoint - Part 5</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UnXci_TSqwI6z3mDLcg3QIMZx3E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UnXci_TSqwI6z3mDLcg3QIMZx3E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UnXci_TSqwI6z3mDLcg3QIMZx3E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UnXci_TSqwI6z3mDLcg3QIMZx3E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;In this article we will discuss about how to hide the save button. You may wonder why we should hide the save button. We will hide the save button to avoid one big issue of the survey.&lt;br /&gt;&lt;br /&gt; If you have not gone through the survey articles, I would recommend you to read them all first before you read further.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_30.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_7080.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_05.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When you have any question that has branching, SharePoint automatically places the next question on the second page and gives you an option to save your response so that later you can edit it. If you have the long survey that has many branching questions, then SharePoint does this splitting of page between the questions. Here we have one big problem. When responder saves the response, you will see that number of response increases. If you have five responders and all five of them have saved the respond, not completed the respond, then first thing you will notice is you can see total number of responses as five, but when you will actually go to the survey and find out then you won’t see even a single response. So where are all those responses?&lt;br /&gt;&lt;br /&gt;Well, answer to this question is really simple. Even though you have full rights on survey or even you are a site administrator or site collection administrator, nobody can see those responses except a person who has saved the response. Only he can see his saved response. So bottom line is check columns named “Completed” in “All Responses” view, you will find only those responses whose status is yes. If a person has saved response, he will see status as “no” in “Completed” column.&lt;br /&gt;&lt;br /&gt;Now why we are talking about hiding the save button is because there can be a reason where in you want responders to respond the survey in specific days. If they don’t then you want to send mail to them one more time to indicate that look, you need to fill this. Now to know this that how many people have not responded to survey yet, is don’t allow to save the response so that you can have exact number of responses.&lt;br /&gt;&lt;br /&gt;Ok, so let us go ahead and add the content editor web part in every page of your questions, so that save button doesn’t appear on each and every page of survey. So now responder has no choice but to fill in the survey at one go.&lt;br /&gt;&lt;br /&gt;In content editor web part, place the following code.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;var ClassName;&lt;br /&gt;ClassName = 'ms-toolbar';&lt;br /&gt;&lt;br /&gt;var elements = new Array();&lt;br /&gt;&lt;br /&gt;var elements = document.getElementsByTagName('td');&lt;br /&gt;&lt;br /&gt;for(var e=0;e&amp;lt;elements.length;e++)&lt;br /&gt;{&lt;br /&gt; if(elements[e].className == ClassName)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('value=Save','value=Save style=visibility:hidden ');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Your job is done. Now see the effect of above code.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SqNE-P11rTI/AAAAAAAAAF8/70Lv8g_O_TM/s1600-h/NextButtonHidden.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 259px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SqNE-P11rTI/AAAAAAAAAF8/70Lv8g_O_TM/s400/NextButtonHidden.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378218216205430066" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-1179397729761888203?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/9Y41mFdIvvQ/creating-and-working-with-survey-in_06.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_zOVGRm4VkbY/SqNE-P11rTI/AAAAAAAAAF8/70Lv8g_O_TM/s72-c/NextButtonHidden.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_06.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-1251010240055405048</guid><pubDate>Sat, 05 Sep 2009 16:07:00 +0000</pubDate><atom:updated>2009-09-06T10:46:49.384+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint Basics</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Creating and working with Survey in SharePoint - Part 4</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PebVm8IuhXRRNzyFm78zubzCbDQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PebVm8IuhXRRNzyFm78zubzCbDQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PebVm8IuhXRRNzyFm78zubzCbDQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PebVm8IuhXRRNzyFm78zubzCbDQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Here I am going to discuss something interesting especially on overview.aspx of survey list. If you have not gone through the survey articles, I would recommend you to read them all first before you read further.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_30.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_7080.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_06.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;One question came in my mind. Why any responder of survey should care about knowing when survey was created and how many number of responses has come so far. If we have set the permission in advance settings of survey that user can only see their response, and then also responder can see how many responses have come so far. &lt;br /&gt;&lt;br /&gt;If we do not want to allow any responder to see when survey was created and how many responses has come so far, then do one very easy thing. Just add one more content editor web part on the overview.aspx page of survey and copy and paste the below code and there you go, you have each and every option just like you have in normal survey web part on overview.aspx. The only difference is that here you cannot see number of responses and date created.  Make sure that you hide the default web part on that page by modifying that web part and setting hidden to true under layout option. So simple…isn’t it.&lt;br /&gt;&lt;br /&gt;Just make sure that you replace the {siteurl} for HREF in below code. Just place your site url there and you should be good to go.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;table class=&amp;quot;ms-menutoolbar&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; id=&amp;quot;ctl00_m_g_c84f415c_dba8_4240_b34d_263e596c7eed_ctl00_ctl00_toolBarTbl&amp;quot; width=&amp;quot;100%&amp;quot; &amp;gt;&lt;br /&gt;  &amp;lt;tr&amp;gt;  &amp;lt;td class=&amp;quot;ms-toolbar&amp;quot; nowrap=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;div class=&amp;quot;ms-buttoninactivehover&amp;quot; onmouseover=&amp;quot;this.className='ms-buttonactivehover'&amp;quot; onmouseout=&amp;quot;this.className='ms-buttoninactivehover'&amp;quot;&amp;gt;&amp;lt;a id=&amp;quot;ctl00_m_g_c84f415c_dba8_4240_b34d_263e596c7eed_ctl00_ctl00_toolBarTbl_RptControls_ctl00_diidIONewItem&amp;quot; accesskey=&amp;quot;N&amp;quot; title=&amp;quot;Respond to this Survey&amp;quot; onclick=&amp;quot;javascript:NewItem('\u002fsites\u002fTest\u002fLists\u002fSharePoint\u002520site\u002520survey\u002fNewForm.aspx');return false;&amp;quot; href=&amp;quot;javascript:__doPostBack('ctl00$m$g_c84f415c_dba8_4240_b34d_263e596c7eed$ctl00$ctl00$toolBarTbl$RptControls$ctl00$diidIONewItem','');&amp;quot;&amp;gt;&amp;lt;img align='absmiddle' alt=&amp;quot;Respond to this Survey&amp;quot; src=&amp;quot;/_layouts/images/NewItem.gif&amp;quot; style='border-width:0px;'&amp;gt;&amp;amp;nbsp;Respond to this Survey&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td class=ms-separator&amp;gt;&amp;lt;img src='/_layouts/images/blank.gif' alt=''&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;  &amp;lt;td class=&amp;quot;ms-toolbar&amp;quot; nowrap=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt; &amp;lt;span style=&amp;quot;display:none&amp;quot;&amp;gt;&amp;lt;menu type='ServerMenu' id=&amp;quot;zz13_RptControls&amp;quot; largeIconMode=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;zz14_ExportToSpreadsheet&amp;quot; type=&amp;quot;option&amp;quot; iconSrc=&amp;quot;/_layouts/images/MenuSpreadsheet.gif&amp;quot; onMenuClick=&amp;quot;javascript:EnsureSSImporter();javaScript:ExportList('\u002fsites\u002fTest\u002f_vti_bin\u002fowssvr.dll?CS=65001\u0026Using=_layouts\u002fquery.iqy\u0026List=\u00257BA1B0E302\u00252D497E\u00252D45B9\u00252D9994\u00252D9F0E0171A380\u00257D\u0026View=\u00257BC84F415C\u00252DDBA8\u00252D4240\u00252DB34D\u00252D263E596C7EED\u00257D\u0026RootFolder=\u00252Fsites\u00252FTest\u00252FLists\u00252FSharePoint\u002520site\u002520survey\u0026CacheControl=1')&amp;quot; text=&amp;quot;Export to Spreadsheet&amp;quot; description=&amp;quot;Analyze items with a spreadsheet application.&amp;quot; menuGroupId=&amp;quot;800&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;ctl00_m_g_c84f415c_dba8_4240_b34d_263e596c7eed_ctl00_ctl00_toolBarTbl_RptControls_ctl01_ctl00_ctl03&amp;quot; type=&amp;quot;separator&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;zz15_ViewRSS&amp;quot; type=&amp;quot;option&amp;quot; iconSrc=&amp;quot;/_layouts/images/MenuRSS.gif&amp;quot; onMenuClick=&amp;quot;window.location = '/sites/Test/_layouts/listfeed.aspx?List=%7BA1B0E302%2D497E%2D45B9%2D9994%2D9F0E0171A380%7D';&amp;quot; text=&amp;quot;View RSS Feed&amp;quot; description=&amp;quot;Syndicate items with an RSS reader.&amp;quot; menuGroupId=&amp;quot;800&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;zz16_SubscribeButton&amp;quot; type=&amp;quot;option&amp;quot; iconSrc=&amp;quot;/_layouts/images/MenuAlert.gif&amp;quot; onMenuClick=&amp;quot;window.location = '/sites/Test/_layouts/SubNew.aspx?List=%7BA1B0E302%2D497E%2D45B9%2D9994%2D9F0E0171A380%7D&amp;amp;amp;Source=http%3A%2F%2Fsharepointkings%3A7777%2Fsites%2FTest%2FLists%2FSharePoint%2520site%2520survey%2Foverview%2Easpx';&amp;quot; text=&amp;quot;Alert Me&amp;quot; description=&amp;quot;Receive e-mail notifications when items change.&amp;quot; menuGroupId=&amp;quot;800&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;/menu&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span title=&amp;quot;Open Menu&amp;quot;&amp;gt;&amp;lt;div  id=&amp;quot;zz17_ListActionsMenu_t&amp;quot; class=&amp;quot;ms-menubuttoninactivehover&amp;quot; onmouseover=&amp;quot;MMU_PopMenuIfShowing(this);MMU_EcbTableMouseOverOut(this, true)&amp;quot; hoverActive=&amp;quot;ms-menubuttonactivehover&amp;quot; hoverInactive=&amp;quot;ms-menubuttoninactivehover&amp;quot; onclick=&amp;quot; MMU_Open(byid('zz13_RptControls'), MMU_GetMenuFromClientId('zz17_ListActionsMenu'),event,false, null, 0);&amp;quot; foa=&amp;quot;MMU_GetMenuFromClientId('zz17_ListActionsMenu')&amp;quot; oncontextmenu=&amp;quot;this.click(); return false;&amp;quot; nowrap=&amp;quot;nowrap&amp;quot;&amp;gt;&amp;lt;a id=&amp;quot;zz17_ListActionsMenu&amp;quot; accesskey=&amp;quot;C&amp;quot; href=&amp;quot;#&amp;quot; onclick=&amp;quot;javascript:return false;&amp;quot; style=&amp;quot;cursor:hand;white-space:nowrap;&amp;quot; onfocus=&amp;quot;MMU_EcbLinkOnFocusBlur(byid('zz13_RptControls'), this, true);&amp;quot; onkeydown=&amp;quot;MMU_EcbLinkOnKeyDown(byid('zz13_RptControls'), MMU_GetMenuFromClientId('zz17_ListActionsMenu'), event);&amp;quot; onclick=&amp;quot; MMU_Open(byid('zz13_RptControls'), MMU_GetMenuFromClientId('zz17_ListActionsMenu'),event,false, null, 0);&amp;quot; oncontextmenu=&amp;quot;this.click(); return false;&amp;quot; menuTokenValues=&amp;quot;MENUCLIENTID=zz17_ListActionsMenu,TEMPLATECLIENTID=zz13_RptControls&amp;quot; serverclientid=&amp;quot;zz17_ListActionsMenu&amp;quot;&amp;gt;Actions&amp;lt;img src=&amp;quot;/_layouts/images/blank.gif&amp;quot; border=&amp;quot;0&amp;quot; alt=&amp;quot;Use SHIFT+ENTER to open the menu (new window).&amp;quot;/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;img align=&amp;quot;absbottom&amp;quot; src=&amp;quot;/_layouts/images/menudark.gif&amp;quot; alt=&amp;quot;&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;  &amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td class=ms-separator&amp;gt;&amp;lt;img src='/_layouts/images/blank.gif' alt=''&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;  &amp;lt;td class=&amp;quot;ms-toolbar&amp;quot; nowrap=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt; &amp;lt;span style=&amp;quot;display:none&amp;quot;&amp;gt;&amp;lt;menu type='ServerMenu' id=&amp;quot;zz18_RptControls&amp;quot; largeIconMode=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;zz19_AddQuestions&amp;quot; type=&amp;quot;option&amp;quot; onMenuClick=&amp;quot;window.location = '/sites/Test/_layouts/qstNew.aspx?List=%7BA1B0E302%2D497E%2D45B9%2D9994%2D9F0E0171A380%7D&amp;amp;amp;Source=http%3A%2F%2Fsharepointkings%3A7777%2Fsites%2FTest%2FLists%2FSharePoint%2520site%2520survey%2Foverview%2Easpx';&amp;quot; text=&amp;quot;Add Questions&amp;quot; description=&amp;quot;Add an additional question to this survey.&amp;quot; menuGroupId=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;zz20_ListSettings&amp;quot; type=&amp;quot;option&amp;quot; iconSrc=&amp;quot;/_layouts/images/MenuListSettings.gif&amp;quot; onMenuClick=&amp;quot;window.location = '/sites/Test/_layouts/survedit.aspx?List=%7BA1B0E302%2D497E%2D45B9%2D9994%2D9F0E0171A380%7D';&amp;quot; text=&amp;quot;Survey Settings&amp;quot; description=&amp;quot;Manage questions and settings for this survey.&amp;quot; menuGroupId=&amp;quot;200&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;/menu&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span title=&amp;quot;Open Menu&amp;quot;&amp;gt;&amp;lt;div  id=&amp;quot;zz21_ListSettingsMenu_t&amp;quot; class=&amp;quot;ms-menubuttoninactivehover&amp;quot; onmouseover=&amp;quot;MMU_PopMenuIfShowing(this);MMU_EcbTableMouseOverOut(this, true)&amp;quot; hoverActive=&amp;quot;ms-menubuttonactivehover&amp;quot; hoverInactive=&amp;quot;ms-menubuttoninactivehover&amp;quot; onclick=&amp;quot; MMU_Open(byid('zz18_RptControls'), MMU_GetMenuFromClientId('zz21_ListSettingsMenu'),event,false, null, 0);&amp;quot; foa=&amp;quot;MMU_GetMenuFromClientId('zz21_ListSettingsMenu')&amp;quot; oncontextmenu=&amp;quot;this.click(); return false;&amp;quot; nowrap=&amp;quot;nowrap&amp;quot;&amp;gt;&amp;lt;a id=&amp;quot;zz21_ListSettingsMenu&amp;quot; accesskey=&amp;quot;I&amp;quot; href=&amp;quot;#&amp;quot; onclick=&amp;quot;javascript:return false;&amp;quot; style=&amp;quot;cursor:hand;white-space:nowrap;&amp;quot; onfocus=&amp;quot;MMU_EcbLinkOnFocusBlur(byid('zz18_RptControls'), this, true);&amp;quot; onkeydown=&amp;quot;MMU_EcbLinkOnKeyDown(byid('zz18_RptControls'), MMU_GetMenuFromClientId('zz21_ListSettingsMenu'), event);&amp;quot; onclick=&amp;quot; MMU_Open(byid('zz18_RptControls'), MMU_GetMenuFromClientId('zz21_ListSettingsMenu'),event,false, null, 0);&amp;quot; oncontextmenu=&amp;quot;this.click(); return false;&amp;quot; menuTokenValues=&amp;quot;MENUCLIENTID=zz21_ListSettingsMenu,TEMPLATECLIENTID=zz18_RptControls&amp;quot; serverclientid=&amp;quot;zz21_ListSettingsMenu&amp;quot;&amp;gt;Settings&amp;lt;img src=&amp;quot;/_layouts/images/blank.gif&amp;quot; border=&amp;quot;0&amp;quot; alt=&amp;quot;Use SHIFT+ENTER to open the menu (new window).&amp;quot;/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;img align=&amp;quot;absbottom&amp;quot; src=&amp;quot;/_layouts/images/menudark.gif&amp;quot; alt=&amp;quot;&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;  &amp;lt;/td&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;td width=&amp;quot;99%&amp;quot; class=&amp;quot;ms-toolbar&amp;quot; nowrap&amp;gt;&amp;lt;IMG SRC=&amp;quot;/_layouts/images/blank.gif&amp;quot; width=1 height=18 alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;td class=&amp;quot;ms-toolbar&amp;quot; nowrap=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt; &lt;br /&gt;  &amp;lt;table border=0 cellpadding=0 cellspacing=0 style='margin-right: 4px'&amp;gt;&lt;br /&gt;  &amp;lt;tr&amp;gt;&lt;br /&gt;  &amp;lt;td nowrap class=&amp;quot;ms-toolbar&amp;quot; id=&amp;quot;topPagingCellWPQ2&amp;quot;&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;&lt;br /&gt;  &amp;lt;/tr&amp;gt;&lt;br /&gt;  &amp;lt;/table&amp;gt;&lt;br /&gt; &lt;br /&gt;  &amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td class=ms-separator&amp;gt;  &amp;lt;/td&amp;gt;&lt;br /&gt;  &amp;lt;td class=&amp;quot;ms-toolbar&amp;quot; nowrap=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt; &lt;br /&gt;  &amp;lt;table border=0 cellpadding=0 cellspacing=0 style='margin-right: 4px'&amp;gt;&lt;br /&gt;  &amp;lt;tr&amp;gt;&lt;br /&gt;     &amp;lt;td nowrap class=&amp;quot;ms-listheaderlabel&amp;quot;&amp;gt;View:&amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;     &amp;lt;td id=&amp;quot;ctl00_m_g_c84f415c_dba8_4240_b34d_263e596c7eed_ctl00_ctl00_toolBarTbl_RightRptControls_ctl01_ctl00_onetViewSelector&amp;quot; nowrap=&amp;quot;nowrap&amp;quot; class=&amp;quot;ms-viewselector&amp;quot; onmouseover=&amp;quot;this.className='ms-viewselectorhover'&amp;quot; onmouseout=&amp;quot;this.className='ms-viewselector'&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;span style=&amp;quot;display:none&amp;quot;&amp;gt;&amp;lt;menu type='ServerMenu' id=&amp;quot;zz22_ViewSelectorMenu&amp;quot; CompactMode=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;zz23_DefaultView&amp;quot; type=&amp;quot;option&amp;quot; onMenuClick=&amp;quot;window.location = '/sites/Test/Lists/SharePoint site survey/overview.aspx';&amp;quot; text=&amp;quot;Overview&amp;quot; menuGroupId=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;zz24_View1&amp;quot; type=&amp;quot;option&amp;quot; onMenuClick=&amp;quot;window.location = '/sites/Test/Lists/SharePoint site survey/AllItems.aspx';&amp;quot; text=&amp;quot;All Responses&amp;quot; menuGroupId=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;ie:menuitem id=&amp;quot;zz25_View2&amp;quot; type=&amp;quot;option&amp;quot; onMenuClick=&amp;quot;window.location = '/sites/Test/Lists/SharePoint site survey/summary.aspx';&amp;quot; text=&amp;quot;Graphical Summary&amp;quot; menuGroupId=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/ie:menuitem&amp;gt;&amp;lt;/menu&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span title=&amp;quot;Open Menu&amp;quot;&amp;gt;&amp;lt;div  id=&amp;quot;zz26_ViewSelectorMenu_t&amp;quot; class=&amp;quot;ms-viewselector&amp;quot; onmouseover=&amp;quot;MMU_PopMenuIfShowing(this);MMU_EcbTableMouseOverOut(this, true)&amp;quot; hoverActive=&amp;quot;ms-viewselectorhover&amp;quot; hoverInactive=&amp;quot;ms-viewselector&amp;quot; onclick=&amp;quot; MMU_Open(byid('zz22_ViewSelectorMenu'), MMU_GetMenuFromClientId('zz26_ViewSelectorMenu'),event,true, 'ctl00_m_g_c84f415c_dba8_4240_b34d_263e596c7eed_ctl00_ctl00_toolBarTbl_RightRptControls_ctl01_ctl00_onetViewSelector', 0);&amp;quot; foa=&amp;quot;MMU_GetMenuFromClientId('zz26_ViewSelectorMenu')&amp;quot; oncontextmenu=&amp;quot;this.click(); return false;&amp;quot; nowrap=&amp;quot;nowrap&amp;quot;&amp;gt;&amp;lt;a id=&amp;quot;zz26_ViewSelectorMenu&amp;quot; accesskey=&amp;quot;W&amp;quot; href=&amp;quot;#&amp;quot; onclick=&amp;quot;javascript:return false;&amp;quot; style=&amp;quot;cursor:hand;white-space:nowrap;&amp;quot; onfocus=&amp;quot;MMU_EcbLinkOnFocusBlur(byid('zz22_ViewSelectorMenu'), this, true);&amp;quot; onkeydown=&amp;quot;MMU_EcbLinkOnKeyDown(byid('zz22_ViewSelectorMenu'), MMU_GetMenuFromClientId('zz26_ViewSelectorMenu'), event);&amp;quot; onclick=&amp;quot; MMU_Open(byid('zz22_ViewSelectorMenu'), MMU_GetMenuFromClientId('zz26_ViewSelectorMenu'),event,true, 'ctl00_m_g_c84f415c_dba8_4240_b34d_263e596c7eed_ctl00_ctl00_toolBarTbl_RightRptControls_ctl01_ctl00_onetViewSelector', 0);&amp;quot; oncontextmenu=&amp;quot;this.click(); return false;&amp;quot; menuTokenValues=&amp;quot;MENUCLIENTID=zz26_ViewSelectorMenu,TEMPLATECLIENTID=zz22_ViewSelectorMenu&amp;quot; serverclientid=&amp;quot;zz26_ViewSelectorMenu&amp;quot;&amp;gt;Overview&amp;lt;img src=&amp;quot;/_layouts/images/blank.gif&amp;quot; border=&amp;quot;0&amp;quot; alt=&amp;quot;Use SHIFT+ENTER to open the menu (new window).&amp;quot;/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;img align=&amp;quot;absbottom&amp;quot; src=&amp;quot;/_layouts/images/blank.gif&amp;quot; alt=&amp;quot;&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;   &amp;lt;/td&amp;gt;&lt;br /&gt;    &lt;br /&gt;  &amp;lt;/tr&amp;gt;&lt;br /&gt;  &amp;lt;/table&amp;gt;&lt;br /&gt; &lt;br /&gt;  &amp;lt;/td&amp;gt;&lt;br /&gt; &lt;br /&gt;  &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;                        &amp;lt;TABLE class=&amp;quot;ms-summarystandardbody&amp;quot; cellpadding=0 cellspacing=0 width=600px style=&amp;quot;margin: 10px;&amp;quot; border=0 rules=rows&amp;gt; &amp;lt;TR&amp;gt; &amp;lt;TD class=&amp;quot;ms-formlabel&amp;quot; width=190px ID=&amp;quot;overview01&amp;quot;&amp;gt;Survey Name:&amp;lt;/TD&amp;gt; &amp;lt;TD class=&amp;quot;ms-formbody&amp;quot; &amp;gt;Movie knowledge survey&amp;lt;/TD&amp;gt; &amp;lt;/TR&amp;gt; &amp;lt;TR&amp;gt; &amp;lt;TD class=&amp;quot;ms-formlabel&amp;quot; valign=&amp;quot;top&amp;quot; ID=&amp;quot;overview02&amp;quot;&amp;gt;Survey Description:&amp;lt;/TD&amp;gt; &amp;lt;TD class=&amp;quot;ms-formbody&amp;quot;&amp;gt;This is the startbold Hindi endbold as well as the startitalic English movie enditalic Knowledge survey. linebreak&lt;br /&gt;&lt;br /&gt;we would like to know how much people are startunderline aware about the Hindi and English movies endunderline&amp;lt;/TD&amp;gt; &amp;lt;/TR&amp;gt;  &amp;lt;TR&amp;gt; &amp;lt;TD&amp;gt;&amp;lt;IMG SRC=&amp;quot;/_layouts/images/blank.gif&amp;quot; width=1 height=1 alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/TD&amp;gt; &amp;lt;/TR&amp;gt; &amp;lt;/TABLE&amp;gt;&lt;br /&gt;                        &amp;lt;TABLE border=0 style=&amp;quot;margin: 0px 8px 0px 8px;&amp;quot;&amp;gt;&lt;br /&gt;                         &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;/_layouts/images/blank.gif&amp;quot; width=1 height=4 alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;                         &amp;lt;tr&amp;gt;&lt;br /&gt;                             &amp;lt;td nowrap&amp;gt;&lt;br /&gt;                             &amp;lt;img src=&amp;quot;/_layouts/images/rect.gif&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;span class=ms-toolbar&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;                             &amp;lt;a class=&amp;quot;ms-toolbar&amp;quot; ACCESSKEY=R ID=diidSurveyResults HREF=&amp;quot;{siteurl}/Lists/SharePoint site survey/summary.aspx&amp;quot;&amp;gt;&amp;lt;!-- _locID_text=&amp;quot;overview05&amp;quot; _locComment=&amp;quot;{StringCategory=TXT}&amp;quot;--&amp;gt;Show a graphical summary of responses&amp;lt;/a&amp;gt;&lt;br /&gt;                             &amp;lt;span class=ms-toolbar&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;                             &amp;lt;/td&amp;gt;&lt;br /&gt;                         &amp;lt;/tr&amp;gt;&lt;br /&gt;                         &amp;lt;tr&amp;gt;&lt;br /&gt;                             &amp;lt;td nowrap&amp;gt;&lt;br /&gt;                             &amp;lt;img src=&amp;quot;/_layouts/images/rect.gif&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;span class=ms-toolbar&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;                             &amp;lt;a class=&amp;quot;ms-toolbar&amp;quot; ACCESSKEY=U ID=diidResultsByUser HREF=&amp;quot;{siteurl}Lists/SharePoint site survey/AllItems.aspx&amp;quot;&amp;gt;&amp;lt;!-- _locID_text=&amp;quot;overview06&amp;quot; _locComment=&amp;quot;{StringCategory=TXT}&amp;quot;--&amp;gt;Show all responses&amp;lt;/a&amp;gt;&lt;br /&gt;                             &amp;lt;span class=ms-toolbar&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;                             &amp;lt;/td&amp;gt;&lt;br /&gt;                         &amp;lt;/tr&amp;gt;&lt;br /&gt;                        &amp;lt;/TABLE&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;And see the effect of the above code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SqKOzQtpRVI/AAAAAAAAAF0/Frae3fYdlL0/s1600-h/ResponsesGone.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 167px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SqKOzQtpRVI/AAAAAAAAAF0/Frae3fYdlL0/s400/ResponsesGone.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378017916344681810" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-1251010240055405048?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/AXuZZpqKQPQ/creating-and-working-with-survey-in_05.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_zOVGRm4VkbY/SqKOzQtpRVI/AAAAAAAAAF0/Frae3fYdlL0/s72-c/ResponsesGone.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_05.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-6060500537123142211</guid><pubDate>Sat, 05 Sep 2009 15:53:00 +0000</pubDate><atom:updated>2009-09-06T10:47:33.351+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint Basics</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Creating and working with Survey in SharePoint - Part 3</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/w96JTk6ROgmL_J2vBFWxJjiDJQA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/w96JTk6ROgmL_J2vBFWxJjiDJQA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/w96JTk6ROgmL_J2vBFWxJjiDJQA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/w96JTk6ROgmL_J2vBFWxJjiDJQA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;We are going to discuss more on survey in this article. If you have not gone through the previous articles, I would suggest you to go through those articles first and then proceed for reading.&lt;br /&gt;&lt;br /&gt;If you haven't gone through the previous articles of this series, i would highly recommend to read following articles before proceeding.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_30.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_7080.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_05.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_06.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now, that we have survey list already created and if you see the description of the survey on the overview.aspx, there is a difference in the survey description in the webpart and survey description below survey name. Check this out.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKJ_9-EZyI/AAAAAAAAAFE/KhEggTOEIlE/s1600-h/SurveyDescriptionDiff.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 206px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKJ_9-EZyI/AAAAAAAAAFE/KhEggTOEIlE/s400/SurveyDescriptionDiff.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378012637093455650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The difference is the line break. If you observe, survey description in the web part is written as it is without any line break however survey description under the name of survey breaks two separates sentences into two different lines because when we created the survey we gave it like that.  &lt;br /&gt;&lt;br /&gt;So in this article we will discuss two important things that will help you not only for the survey but also for any other list and any other document library as well.&lt;br /&gt;&lt;br /&gt;Here we will remove the survey description below the name of the survey because we can already see the description in the web part and also we will include the HTML in the description now. It is very much similar to what we have learnt in previous articles just a class name change and that will do our job. Let us see in detail.&lt;br /&gt;&lt;br /&gt;Ok, Edit the overview page and place the content editor web part below to the original web part.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKKLZCChZI/AAAAAAAAAFM/Kdn-ezqL0vQ/s1600-h/ContentEditorPlaced.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 229px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKKLZCChZI/AAAAAAAAAFM/Kdn-ezqL0vQ/s400/ContentEditorPlaced.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378012833336427922" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ok, first let us go and change the description of survey. Go to settings, survey settings, title and description and change the description to the following.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;This is the startbold Hindi endbold as well as the startitalic English movie enditalic Knowledge survey. linebreak&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;we would like to know how much people are startunderline aware about the Hindi and English movies endunderline.&lt;br /&gt;&lt;br /&gt;Ok, now go back to the overview view of the survey and observe the survey description.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKKa2f0fkI/AAAAAAAAAFU/CuESWHb1s2Q/s1600-h/SurveyDescriptionShown.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 200px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKKa2f0fkI/AAAAAAAAAFU/CuESWHb1s2Q/s400/SurveyDescriptionShown.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378013098944003650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As you can see those words start appearing in the description, so we need to get rid of it and replace them with the actual HTML behavior and that is what we did in previous articles. So go ahead and modify the content editor web part and place the following code in that. Note one important line in the below code and that line is where we assign “ms-formbody’ class. Earlier we assigned “ms-formlabel” in previous articles to add HTML in questions.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;var ClassName;&lt;br /&gt;ClassName = 'ms-formbody';&lt;br /&gt;&lt;br /&gt;var elements = new Array();&lt;br /&gt;&lt;br /&gt;var elements = document.getElementsByTagName('td');&lt;br /&gt;&lt;br /&gt;for(var e=0;e&amp;lt;elements.length;e++)&lt;br /&gt;{&lt;br /&gt; if(elements[e].className == ClassName)&lt;br /&gt;{&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('linebreak','&amp;lt;br/&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('startunderline','&amp;lt;u&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('endunderline','&amp;lt;/u&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('startitalic','&amp;lt;i&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('enditalic','&amp;lt;/i&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('startbold','&amp;lt;b&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('endbold','&amp;lt;/b&amp;gt;');&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And there you go, see the effect of it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SqKKw7AlJqI/AAAAAAAAAFc/w9U8GseH_Ck/s1600-h/SurveyDescritionHTMLInserted.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 209px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SqKKw7AlJqI/AAAAAAAAAFc/w9U8GseH_Ck/s400/SurveyDescritionHTMLInserted.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378013478112274082" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ok, look good now. But there is a problem here, still look at the survey description above the web part. It still shows the words (startbold, endbold etc). They have not been replaced yet.&lt;br /&gt;&lt;br /&gt;How to replace them? Ok, here is the answer. Just add one more content editor web part below the previous content editor web part and copy the same HTML content above, just make two changes.  Change the class name and getElemtByID from TD to Div as this description is in the div tag, not in the TD tag.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;ClassName = 'ms-listdescription'&lt;br /&gt;var elements = document.getElementsByTagName('div');&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;and there you go, see the magic.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SqKK-KHotLI/AAAAAAAAAFk/E4Qo0-_c7KM/s1600-h/HeaderDescriptionHTML.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 218px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SqKK-KHotLI/AAAAAAAAAFk/E4Qo0-_c7KM/s400/HeaderDescriptionHTML.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378013705506698418" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Actually for this specific survey type of list, we don’t need this to be here as on the same page, we can see the survey description in the web part. So let us go and remove the description of survey below the name of the survey from overview.aspx.&lt;br /&gt;&lt;br /&gt;Modify the last content editor web part and paste the following code inside it.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;var ClassName;&lt;br /&gt;ClassName = 'ms-listdescription';&lt;br /&gt;             &lt;br /&gt;var elements = new Array();&lt;br /&gt;&lt;br /&gt;var elements = document.getElementsByTagName('div');&lt;br /&gt;&lt;br /&gt;for(var e=0;e&amp;lt;elements.length;e++)&lt;br /&gt;{&lt;br /&gt; if(elements[e].className == ClassName)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = '';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;And see the effect of above code. Survey description is gone.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKLR7gMwsI/AAAAAAAAAFs/HfQWwQkGm9g/s1600-h/DescriptionGone.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 165px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKLR7gMwsI/AAAAAAAAAFs/HfQWwQkGm9g/s400/DescriptionGone.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378014045180576450" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Remember one very important point. You need to place this last content editor web part in every view page. We placed it only in overview.aspx. Just try and change the view to “All responses” and “Graphical summary”. Survey description will appear there, so just make sure that you place the last content editor web part on each view page separately as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-6060500537123142211?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/0UHnKHUpcdU/creating-and-working-with-survey-in.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_zOVGRm4VkbY/SqKJ_9-EZyI/AAAAAAAAAFE/KhEggTOEIlE/s72-c/SurveyDescriptionDiff.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-6294485835477582885</guid><pubDate>Sun, 30 Aug 2009 12:38:00 +0000</pubDate><atom:updated>2009-09-06T10:49:16.623+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint Basics</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Creating and working with Survey in SharePoint - Part 2</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tdDUOdAflp3KqETVO39Ct0DsEjQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tdDUOdAflp3KqETVO39Ct0DsEjQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tdDUOdAflp3KqETVO39Ct0DsEjQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tdDUOdAflp3KqETVO39Ct0DsEjQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Here I am back with some more interesting stuff in survey list. In previous post we discussed about the advantages of survey list. But it is not true in every case. It has got many other limitations as well. Here in this article, we are going to discuss about one basic difficulty about survey.&lt;br /&gt;&lt;br /&gt;I would first suggest you to read &lt;a href="http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_30.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 1&lt;/a&gt; of the series.&lt;br /&gt;&lt;br /&gt;For further reading read &lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_05.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_06.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you want to have some HTML in survey’s question, then we cannot insert that. Sometimes we may require making some font bold, something italic and we want to underline something. We need to increase the font size, we may require to add hyperlink in question, then we cannot do it.&lt;br /&gt;&lt;br /&gt;So anyways we have to overcome this problem anyhow. So here is a way how you can insert HTML in the question of survey.&lt;br /&gt;&lt;br /&gt;First make a note of one very important point, you have to repeat these steps for each and every page that you have for the survey. Means if you have branching question then you get more than one page to respond.&lt;br /&gt;&lt;br /&gt;Before getting actually in to this, you first need to understand that how we will replace the normal text with HTML text. &lt;br /&gt;&lt;br /&gt;Ok, let us go back to our first question. Open the question and add the following words before and after Department.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SppzVDkIfPI/AAAAAAAAAEU/edFvAIeV4TE/s1600-h/HTMLBold.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 269px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SppzVDkIfPI/AAAAAAAAAEU/edFvAIeV4TE/s400/HTMLBold.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375735910791412978" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See the effect of this change on questions. We can clearly read startitalic and enditalic in first question.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_zOVGRm4VkbY/Sppzdx2hYOI/AAAAAAAAAEc/5DwkWWJ1o7A/s1600-h/NormalQuestion.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 324px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/Sppzdx2hYOI/AAAAAAAAAEc/5DwkWWJ1o7A/s400/NormalQuestion.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375736060655526114" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We have added these words and we will replace this word with startitalic with &amp;lt;i&amp;gt; and enditalic &amp;lt;/i&amp;gt; in content editor web part. You can use whatever word that you want, we only need to replace those words in the web apart. Let us see how we will do this now.&lt;br /&gt;&lt;br /&gt;Go ahead and add one content editor web part below the questions. Edit the page and add the content editor web part.&lt;br /&gt;&lt;br /&gt;Click on modify shared web part, click on source editor and write the code as shown in below.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;var ClassName;&lt;br /&gt;ClassName = 'ms-formlabel';&lt;br /&gt;&lt;br /&gt;var elements = new Array();&lt;br /&gt;&lt;br /&gt;var elements = document.getElementsByTagName('td');&lt;br /&gt;&lt;br /&gt;for(var e=0;e&amp;lt;elements.length;e++)&lt;br /&gt;{&lt;br /&gt; if(elements[e].className == ClassName)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('startitalic','&amp;lt;i&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('enditalic','&amp;lt;/i&amp;gt;');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Let us have a look on this above code. Here what we have done is that we have first taken out ms-formlable class as questions belong to this class in SharePoint architecture. We then take all ID because all questions are in TD tag and then we find our forcefully entered two words and replace them with proper HTML tag and there you go. See the effect of the above code.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_zOVGRm4VkbY/Spp0YnPhSRI/AAAAAAAAAEk/yCPe18XvLio/s1600-h/AfterItalicImage.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 270px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/Spp0YnPhSRI/AAAAAAAAAEk/yCPe18XvLio/s400/AfterItalicImage.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375737071419869458" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Let us go ahead and change our third question. Make the following change in it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_zOVGRm4VkbY/Spp0iO5hiSI/AAAAAAAAAEs/mIf4zY978KU/s1600-h/SecondHTMLExample.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 242px;" src="http://2.bp.blogspot.com/_zOVGRm4VkbY/Spp0iO5hiSI/AAAAAAAAAEs/mIf4zY978KU/s400/SecondHTMLExample.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375737236683852066" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now again go ahead and change the existing editor web part with following addition with above code.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;elements[e].innerHTML = elements[e].innerHTML.replace('linebreak','&amp;lt;br/&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('startunderline','&amp;lt;u&amp;gt;');&lt;br /&gt;&lt;br /&gt;elements[e].innerHTML = elements[e].innerHTML.replace('endunderline','&amp;lt;/u&amp;gt;');&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The effect of the above code is shown below. We have also broken question in two lines.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_zOVGRm4VkbY/Spp1IP-Tw1I/AAAAAAAAAE0/kX7Tok97fyg/s1600-h/SecondExampleHTMLShown.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 265px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/Spp1IP-Tw1I/AAAAAAAAAE0/kX7Tok97fyg/s400/SecondExampleHTMLShown.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375737889807385426" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now let us go and create hyperlink in the same question. Here is a trick to add hyperlink to the question. Let us say for example we want to have a hyperlink on “like” word and that should take to the Home page link and it should open in new page. In addition to this, it should be of bigger size than other words.&lt;br /&gt;&lt;br /&gt;So here is a simple answer of the tuff question. Add just one more line to your content editor web part.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;elements[e].innerHTML = elements[e].innerHTML.replace('like','&amp;lt;a href=&amp;quot;/sites/Test/default.aspx&amp;quot; target=&amp;quot;_blank&amp;quot; style =&amp;quot;font-size:14pt&amp;quot; &amp;gt;like&amp;lt;/a&amp;gt;');&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;and see the effect of above code.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_zOVGRm4VkbY/Spp1Ynt4k2I/AAAAAAAAAE8/p2DoM7cbdzg/s1600-h/ClickingHyperlink.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 280px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/Spp1Ynt4k2I/AAAAAAAAAE8/p2DoM7cbdzg/s400/ClickingHyperlink.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375738171058852706" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope that now you have the clear picture. All it takes is the knowledge of HTML and you can insert anything, almost anything with HTML in the questions.&lt;br /&gt;&lt;br /&gt;I will soon come up with part 3. keep reading it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-6294485835477582885?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/RZX7m6VGfiA/creating-and-working-with-survey-in_7080.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_zOVGRm4VkbY/SppzVDkIfPI/AAAAAAAAAEU/edFvAIeV4TE/s72-c/HTMLBold.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">7</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_7080.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-2500839471473775537</guid><pubDate>Sun, 30 Aug 2009 12:35:00 +0000</pubDate><atom:updated>2009-09-06T10:49:49.439+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint Basics</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Creating and working with Survey in SharePoint -Part 1</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GJrypNILvQ913HcdpXf5Pyw3848/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GJrypNILvQ913HcdpXf5Pyw3848/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GJrypNILvQ913HcdpXf5Pyw3848/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GJrypNILvQ913HcdpXf5Pyw3848/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Today we will learn about SharePoint Survey list. A very useful and very interesting list with many advantage and bit of limitations as well. First let us understand the advantage.&lt;br /&gt;&lt;br /&gt;Whenever you want to collect the responses from various people, across your organization about any event, any activity or any other thing, Survey is best suited list. It allows you to collect the responses in various ways. You can ask the questions and they can answer those questions and then result can be analyzed by taking it to the excel sheet or through graphical summary or by watching all responses at once.&lt;br /&gt;&lt;br /&gt;You can have as many questions as you want and the format of their answers can also be of great varieties. For example, you may want to ask one question whose answer is simple text or multiple line of text with formatting. You can also have a question whose answer is choice (selection in terms of radio buttons, check boxes, drop downs). You can have question whose answer can be a date. We can have all these with built in survey list.&lt;br /&gt;&lt;br /&gt;Another advantage of survey is that you can also add branching logic in it. That means, let us say, you have one question which depends upon the answer of some other question. To show or not to show a question depends upon the answer of previous question. This kind of branching can also be done in survey list.&lt;br /&gt;&lt;br /&gt;So all and all at very basic level, if we would like to collect responses from people, survey is the best choice.&lt;br /&gt;&lt;br /&gt;Let’s see the basic steps involved in the creating Survey List. Go to Create and select the Survey under tracking category. Give the name and description like shown below. Observe that you have one setting which says allow multi responses. If you want to collect multiple responses from individual person, then you should allow this else don’t allow this. This basically allows responder to respond to survey more than one time.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_4uR1LhzYwbA/SpptCvgLl4I/AAAAAAAACew/hHsIT1P3Auw/s1600-h/CreateSurvey.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5375728999098718082" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 232px" alt="" src="http://2.bp.blogspot.com/_4uR1LhzYwbA/SpptCvgLl4I/AAAAAAAACew/hHsIT1P3Auw/s400/CreateSurvey.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So we are going to create movie quiz. Once you are done with the creation of the survey list, we now need to add questions to add and have to decide what kind of answer each question has.&lt;br /&gt;&lt;br /&gt;I know many people may not like this survey as it seems funny. But my main intension is to let you know how we can create it and what are the options available for answers and how branching can be done.&lt;br /&gt;&lt;br /&gt;So go ahead and add the questions to it. Click on settings -&gt; Add Question and add the first question. Click next question after creating each question.&lt;br /&gt;&lt;br /&gt;1) Your Department -&gt; Single line of text&lt;br /&gt;2) Your Location -&gt; Single line of text&lt;br /&gt;3) What kind of movies do you like? -&gt; Multiple lines of text and plain text.&lt;br /&gt;&lt;br /&gt;Ok, now we are going to give user a choice. Either he can go for Hindi quiz or he can go for English quiz.&lt;br /&gt;&lt;br /&gt;So go ahead and create one question, again by selecting settings-&gt;Add Question.&lt;br /&gt;&lt;br /&gt;4) Which movie quiz would you like to give? -&gt; Choice, Type: Radio button and add Hindi and English in the text box provided.&lt;br /&gt;&lt;br /&gt;Now we actually want to branch the user directly to the questions of Hindi cinema and English Cinema depending on user’s choice. We cannot branch the question right now. That can be done after adding all questions and that will be done from the survey settings page. So now we will move ahead and add the Hindi cinema questions.&lt;br /&gt;&lt;br /&gt;Go ahead and add question.&lt;br /&gt;&lt;br /&gt;5) Rate yourself in Hindi Cinema.&gt;Rating scale. Here we can define the sub questions and each question can have rating scales. So add following questions to it.&lt;br /&gt;a. Old year movies (1950-1970)&lt;br /&gt;b. Medium year movies (1971-2000)&lt;br /&gt;c. Latest movies (2000-2009)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6) Add next question. Name the actor whose famous dialogue is “Kitne Aadmi the?” Choice, drop down and add following options. Jay, Gabbar, Veeru&lt;br /&gt;&lt;br /&gt;7) Add next question. Name the upcoming movie of Akshay Kumar which is said to be captured under water. Single line of text.&lt;br /&gt;&lt;br /&gt;8) Add next question. Rate yourself in English Movies.&gt;Rating scale. Here we can define the sub questions and each question can have rating scales. So add following questions to it.&lt;br /&gt;a. Old year movies (1950-1970)&lt;br /&gt;b. Medium year movies (1971-2000)&lt;br /&gt;c. Latest movies (2000-2009)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;9) Add next question. Name the actor who was gifted God power in the movie "Bruce Almighty'. Single line of text.&lt;br /&gt;&lt;br /&gt;10) Add next question. What was the version number mention in the latest movie of “Die Hard" series? Choice and options are 3.0, 4.0, and 3.5.&lt;br /&gt;&lt;br /&gt;11) Last we will ask about the suggestion. Add question “Any suggestions that you want to give…” Multi lines of text.&lt;br /&gt;&lt;br /&gt;If you want to have page break and then want to ask next question in next page, then add page separator and then add the next question so that this question will come on next page and not one the same page.&lt;br /&gt;&lt;br /&gt;After adding these questions, your settings page should look something like this&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_4uR1LhzYwbA/SppuAUgcJgI/AAAAAAAACfA/NcUUlJ9obCo/s1600-h/QuestionsAdded.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5375730057003935234" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 219px" alt="" src="http://2.bp.blogspot.com/_4uR1LhzYwbA/SppuAUgcJgI/AAAAAAAACfA/NcUUlJ9obCo/s400/QuestionsAdded.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now, open the main page of survey list. It should look like below image and it shows description of the survey, number of responses when it was created and click to see all responses and show a graphical summary.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_4uR1LhzYwbA/SppuHiJKjrI/AAAAAAAACfI/CNtHni-9FTQ/s1600-h/OverView.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5375730180923494066" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 267px" alt="" src="http://1.bp.blogspot.com/_4uR1LhzYwbA/SppuHiJKjrI/AAAAAAAACfI/CNtHni-9FTQ/s400/OverView.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ok, now go to survey settings and see that Branching logic column is empty as we have yet not defined any branching. We want to branch the question as per the question in which we asked that what movie quiz you would like to give. If user selects Hindi, then we want to jump to the Hindi questions without asking for English movie questions and if user selects English, we need to jump to the English movie questions without asking for Hindi movie questions.&lt;br /&gt;&lt;br /&gt;So go ahead and click the question which asks for the selection of movie quiz and select like shown below. This defines that when user clicks on Hindi he will be redirected to the first Hindi question else he will be redirected to English question.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_4uR1LhzYwbA/SppuRsZsXxI/AAAAAAAACfQ/GbEm1RRDgN8/s1600-h/FirstBranching.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5375730355475865362" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 283px" alt="" src="http://3.bp.blogspot.com/_4uR1LhzYwbA/SppuRsZsXxI/AAAAAAAACfQ/GbEm1RRDgN8/s400/FirstBranching.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Add one more branching with the question which asks about Akshay Kumar’s upcoming movie and add branching logic as shown below. We need to add this branch because if user selects Hindi, then all questions of English movie will also come and we don’t want that so we will branch to the last question from this Akshay Kumar’s question so that no English questions asked. Here what we have done is whatever the response is, we will jump to the last question.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_4uR1LhzYwbA/Sppus2d9Y1I/AAAAAAAACfg/MiAwHm0Bp1o/s1600-h/SecondBranching.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5375730822034580306" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 243px" alt="" src="http://1.bp.blogspot.com/_4uR1LhzYwbA/Sppus2d9Y1I/AAAAAAAACfg/MiAwHm0Bp1o/s400/SecondBranching.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now go back and click on respond to this survey. You will see that it asks only up to the question whose answer branches the next question.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_4uR1LhzYwbA/SppuzxH6iCI/AAAAAAAACfo/bv64fnB0ZSA/s1600-h/BranchingShown.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5375730940859025442" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 291px" alt="" src="http://2.bp.blogspot.com/_4uR1LhzYwbA/SppuzxH6iCI/AAAAAAAACfo/bv64fnB0ZSA/s400/BranchingShown.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Fill the details, select Hindi and click next, then as you can see you are presented with a screen where you get the Hindi movie questions and one interesting thing is save button in between. That means if you have very long survey and it has many branching logic, then you can save the survey and then continue at your own convenience at any time.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_4uR1LhzYwbA/SppvBwMMr5I/AAAAAAAACfw/98JXe1SkKkE/s1600-h/NextButtonShow.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5375731181126725522" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 237px" alt="" src="http://4.bp.blogspot.com/_4uR1LhzYwbA/SppvBwMMr5I/AAAAAAAACfw/98JXe1SkKkE/s400/NextButtonShow.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Click next and finally fills up the final text box and there you go, you are done with responding your first survey. If you observe the column Completed, you will find “yes” because we have completed the survey. If you would have saved it in between somewhere, you would have find it “No”, that means it is partially saved. You get “Yes” only when somebody fills the entire survey.&lt;br /&gt;&lt;br /&gt;I will discuss bit deep about this in my coming articles of survey series. If you now click on respond to survey, you will get an error saying that you cannot give response for more than one time. If you have saved your survey, then you can click on the survey and complete that survey again.&lt;br /&gt;&lt;br /&gt;One very important thing to note here is that person who creates the survey has to make sure that whether to allow user to see only his response or he can see everybody’s response. Same goes for editing options, should he allows to change other’s response or his own only. These settings are very important, if these options are set, then even user clicks on View all responses, he will be able to see only his response. Same is true in the case of graphical summary. He cannot see other responses from other people.&lt;br /&gt;&lt;br /&gt;This is basically called Item level security. To set this on survey, go to Settings-&gt;Survey settings-&gt;advanced settings. Here you will find an option to set these properties. There you can also set to allow these responses to be a part of SharePoint search.&lt;br /&gt;&lt;br /&gt;You can also export the result into excel as the option is available in the action menu.&lt;br /&gt;&lt;br /&gt;Read &lt;a href="http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_7080.html" target="_blank"&gt;Creating and working with Survey in SharePoint -Part-2&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt; &lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_05.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sharepointkings.com/2009/09/creating-and-working-with-survey-in_06.html" target="_blank"&gt;Creating and working with Survey in SharePoint - Part 5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;for further interesting reading.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-2500839471473775537?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/Umt3iau7wSQ/creating-and-working-with-survey-in_30.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_4uR1LhzYwbA/SpptCvgLl4I/AAAAAAAACew/hHsIT1P3Auw/s72-c/CreateSurvey.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_30.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-2367159090668928500</guid><pubDate>Wed, 26 Aug 2009 19:30:00 +0000</pubDate><atom:updated>2009-08-27T01:02:53.992+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL Query</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint administration</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Content Database</category><title>SQL query on SharePoint content database: Step by Step 1</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-D9ojTKbMQl47x_IPHVG0pIMkiU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-D9ojTKbMQl47x_IPHVG0pIMkiU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-D9ojTKbMQl47x_IPHVG0pIMkiU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-D9ojTKbMQl47x_IPHVG0pIMkiU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;After a very long time we are back with fetching information directly from sharepoint content database with the help of SQL query.&lt;br /&gt;&lt;br /&gt;check our previous post(s) &lt;a href="http://www.sharepointkings.com/search/label/SQL%20Query" target="_blank"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But for this time we are going step by step.&lt;br /&gt;&lt;br /&gt;First of all each and every web application has its own content database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;site collection(s)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To find the information about site collection there is a table called “Sites”&lt;br /&gt;&lt;blockquote&gt;--This table content information of site collection(s)&lt;br /&gt;select * from sites&lt;br /&gt;&lt;br /&gt;--Number Site collection in a web application&lt;br /&gt;select  count(*) as 'Total Number OF Site Collection' from sites&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Useful fields in sites table are ‘ID’ and ‘RootWebID’&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Sites (a.k.a SPWeb)&lt;span style="font-style:italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To find the information about all the web in web application (that includes all the site collection)  there is a table called “Web”&lt;br /&gt;&lt;blockquote&gt;--This table content information of all the web&lt;br /&gt;select * from webs&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;ID field of webs table is foreign key from rootwebid of sites table&lt;br /&gt;So you can have relation like&lt;br /&gt;--Relation of sites and web&lt;br /&gt;Select * from webs inner join Sites on Webs.Id = Sites.RootWebId &lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;Below are the useful fields.&lt;br /&gt;Select&lt;br /&gt;id,--unique ID&lt;br /&gt;siteid,--site collection ID&lt;br /&gt;parentwebid,--Null if top level site otherwise ID of webs&lt;br /&gt;fullurl,--relative url&lt;br /&gt;title,--web Title&lt;br /&gt;description,--Web Description&lt;br /&gt; masterurl,--Master page URL&lt;br /&gt;custommasterurl,--Custom master page URL&lt;br /&gt;sitelogourl,--site logo URL&lt;br /&gt;sitelogodescription &lt;br /&gt; from webs&lt;br /&gt;inner join Sites on Webs.Id = Sites.RootWebId&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This is the relation between web application, site collection, and then web from the database architectural point of view.&lt;br /&gt;&lt;br /&gt;We will go further with list and libraries, and items but that will be step by step&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Disclaimer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Running Direct queries on Sharepoint Database is not recommended by Microsoft.&lt;br /&gt;Simply it's not for the faint of heart. Directly querying or modifying the database can place extra load on a server, or can expose information to users in a way that violates security policies or personal information management policies.We highly recommend doing all testing in a non-production environment and only for R &amp; D purpose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-2367159090668928500?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/UnGgME1o_CM/sql-query-on-sharepoint-content.html</link><author>noreply@blogger.com (SharePoint Kings)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/08/sql-query-on-sharepoint-content.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-1196709882578817491</guid><pubDate>Sat, 15 Aug 2009 12:36:00 +0000</pubDate><atom:updated>2009-08-15T18:22:59.052+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">SharePoint Basics</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Changing sequence and adding new menu items in SharePoint</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wYHzplToPatDTOLyuYKx6cCuwcY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wYHzplToPatDTOLyuYKx6cCuwcY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wYHzplToPatDTOLyuYKx6cCuwcY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wYHzplToPatDTOLyuYKx6cCuwcY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;As I have explained you in my previous post about the menu items in the toolbar on AllItems.aspx page. We will take the same code and sample here and I will explain you today how to play with the Menu items inside the menus.&lt;br /&gt;&lt;br /&gt;So this post is all about changing the sequence of menu items and adding new menu items.&lt;br /&gt;&lt;br /&gt;First let me show you how you can change the position of individual items in the menu. Considering we are playing with Actions menu and we want to change the “View RSS Feed” to appear with the Edit in Datasheet option.&lt;br /&gt;&lt;br /&gt;Ok, let me clarify one thing very clearly. We should not change the default place of menu items as they are actually categorized properly and they have been placed in respective group items. For example, it doesn’t make sense if you place Alert Me option with Edit in Datasheet option. Does it make sense to have this option with Datasheet option? Answer is absolutely no.&lt;br /&gt;&lt;br /&gt;But this is just for fun purpose and also to give you an idea about how to do that. Before we actually go in to the code, I would like to share here that each of these menu options fall under MenuGroupID.&lt;br /&gt;&lt;br /&gt;First observe the below figure closely. See Red circle, Bur circle and green circle.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SoasbeGxiWI/AAAAAAAAADU/VtW0tauk4Fs/s1600-h/RT1.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SoasbeGxiWI/AAAAAAAAADU/VtW0tauk4Fs/s320/RT1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370169193623816546" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now see the below image of menu items&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_zOVGRm4VkbY/Soas0ZEYROI/AAAAAAAAADc/X_J8lz4Jp2Q/s1600-h/RT2.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 292px; height: 320px;" src="http://2.bp.blogspot.com/_zOVGRm4VkbY/Soas0ZEYROI/AAAAAAAAADc/X_J8lz4Jp2Q/s320/RT2.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370169621768324322" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See, There is only one red circle because see the first category. We have only one single item here which is EditInDatasheet. See two blue circles, we have two items in the menu category (Export to Spreadsheet and Open with Access) and last we have again two circles shown in green color represents last two options. (View RSS Feed and Alert Me). As you can see all belongs to MenuGroupId. First item has id number 200; second two items have id number 400 and last two items have id number 500.&lt;br /&gt;&lt;br /&gt;So now we will play the trick and we will move View RSS Feed with EditinDatasheet. All we need to do is just change the MenuGroupId of RSS Feed from 500 to 200 so that it will come with ExportinDatasheet.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;   foreach (Control childControl in ParentControl.Controls)&lt;br /&gt;                {&lt;br /&gt;&lt;br /&gt;                    if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.ActionsMenu".ToUpper())&lt;br /&gt;                    {&lt;br /&gt;                       &lt;br /&gt;                   ActionsMenu Menu = (ActionsMenu)childControl;&lt;br /&gt;                        Menu.Visible = true;&lt;br /&gt;&lt;br /&gt;                        if (Menu.GetMenuItem("ViewRSS") != null)&lt;br /&gt;                        {                           &lt;br /&gt;                            Menu.GetMenuItem("ViewRSS").MenuGroupId = 200;                            &lt;br /&gt;                        }   &lt;br /&gt;&lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;br /&gt;                    CheckControl(childControl);&lt;br /&gt;                }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;See the effect of this code,&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_zOVGRm4VkbY/SoatLx6K44I/AAAAAAAAADk/toI2xtO3QQ0/s1600-h/RT3.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 314px; height: 320px;" src="http://2.bp.blogspot.com/_zOVGRm4VkbY/SoatLx6K44I/AAAAAAAAADk/toI2xtO3QQ0/s320/RT3.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370170023573382018" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If we want View RSS Feed to appear first and Datashet option to come second, then just a little modification will do this for us. We only need to add one single line only.&lt;br /&gt;&lt;br /&gt;   &lt;blockquote&gt; if (Menu.GetMenuItem("ViewRSS") != null)&lt;br /&gt;                        {                           &lt;br /&gt;                            Menu.GetMenuItem("ViewRSS").MenuGroupId = 200;&lt;br /&gt;                            Menu.GetMenuItem("ViewRSS").Sequence = 0; &lt;br /&gt;                        }   &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_zOVGRm4VkbY/SoatYf7kawI/AAAAAAAAADs/InhTNiP-SX0/s1600-h/RT4.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 299px; height: 320px;" src="http://2.bp.blogspot.com/_zOVGRm4VkbY/SoatYf7kawI/AAAAAAAAADs/InhTNiP-SX0/s320/RT4.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370170242085710594" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is the way you can change the menu item from one place to the other place.&lt;br /&gt;&lt;br /&gt;Now how about adding a menu item template to Menu? Let us go ahead and add menu item template to the Actions menu.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;                       MenuItemTemplate objTemplate = Menu.AddMenuItem("MailMeID", "Mail Me From Hotmail",&lt;br /&gt;                           "/_layouts/images/SPSPROFL.GIF",&lt;br /&gt;                           "This will take you to hotmail", "", strClientURL);&lt;br /&gt;&lt;br /&gt;objTemplate.MenuGroupId = 200;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/Soatm3xrRDI/AAAAAAAAAD0/Ic6GfxkU8wI/s1600-h/RT5.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 313px; height: 320px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/Soatm3xrRDI/AAAAAAAAAD0/Ic6GfxkU8wI/s320/RT5.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370170489004835890" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Once you click on this item, it will take you to hotmail.com. Ok, now how about adding a client side code to it? As you can see in my previous code, I kept the last parameter blank. That is where we need to right the client event.&lt;br /&gt;&lt;br /&gt;Just to demonstrate you, I have used the built in Client Click of RSS feed and assigned it to our new menu item.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;        if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.ActionsMenu".ToUpper())&lt;br /&gt;                    {&lt;br /&gt;                        ActionsMenu Menu = (ActionsMenu)childControl;&lt;br /&gt;                        Menu.Visible = true;                   &lt;br /&gt;                       string strClientURL = "window.location = '/sites/Test/_layouts/listfeed.aspx?List=%7BA6B5F63B%2DB860%2D418F%2DBEB0%2D8DAFC72C1C6B%7D';";&lt;br /&gt;                       MenuItemTemplate objTemplate = Menu.AddMenuItem("MailMeID", "Mail Me From Hotmail",&lt;br /&gt;                           "/_layouts/images/SPSPROFL.GIF",&lt;br /&gt;                           "This will take you to hotmail", "", strClientURL);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;                        objTemplate.MenuGroupId = 200;&lt;br /&gt;&lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You can change this url to your desired page in the site. Once you click on Mail me from Hotmail, it will take you to RSS Feed page.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_zOVGRm4VkbY/Soat3j1NazI/AAAAAAAAAD8/Mh2BjEThXZQ/s1600-h/RT6.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 276px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/Soat3j1NazI/AAAAAAAAAD8/Mh2BjEThXZQ/s320/RT6.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370170775708724018" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you add one more single line of code which is shown below, we get that new menu item with separator. It separates it with the other menu items with one line. Note that we have commented the MenuGroupID assignment, so that it becomes a separate group.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.ActionsMenu".ToUpper())&lt;br /&gt;                    {&lt;br /&gt;                       &lt;br /&gt;                        ActionsMenu Menu = (ActionsMenu)childControl;&lt;br /&gt;                        Menu.Visible = true;                   &lt;br /&gt;&lt;br /&gt;                       string strClientURL = "window.location = '/sites/Test/_layouts/listfeed.aspx?List=%7BA6B5F63B%2DB860%2D418F%2DBEB0%2D8DAFC72C1C6B%7D';";&lt;br /&gt;&lt;br /&gt;                       MenuItemTemplate objTemplate = Menu.AddMenuItem("MailMeID", "Mail Me From Hotmail",&lt;br /&gt;                           "/_layouts/images/SPSPROFL.GIF",&lt;br /&gt;                           "This will take you to hotmail", "", strClientURL);&lt;br /&gt;&lt;br /&gt;                        Menu.AddMenuItemSeparator();&lt;br /&gt;&lt;br /&gt;                        //objTemplate.MenuGroupId = 200;&lt;br /&gt;&lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoauH9G5HmI/AAAAAAAAAEE/7HaAAe2vkas/s1600-h/RT7.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 313px; height: 320px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoauH9G5HmI/AAAAAAAAAEE/7HaAAe2vkas/s320/RT7.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370171057371684450" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ok, now once again let us get the DesigntimeHTML and see what the new things that we have got,&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoauYn9aoLI/AAAAAAAAAEM/0XgZhX6E4r4/s1600-h/rt8.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoauYn9aoLI/AAAAAAAAAEM/0XgZhX6E4r4/s320/rt8.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370171343752569010" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Check out the new menu item added. I have highlighted it with blue underline and also see the new MenuGroupID that we got. It is 2147483647. So now we know that if any other menu item we want to add with the same group, we need to assign this number to the new MenuItemtemplate as we saw in the beginning of this post.&lt;br /&gt;&lt;br /&gt;I am finding more interesting about this, I will be eager to share it with you all-time supportive readers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-1196709882578817491?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/VaOeOtb7ITE/changing-sequence-and-adding-new-menu.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_zOVGRm4VkbY/SoasbeGxiWI/AAAAAAAAADU/VtW0tauk4Fs/s72-c/RT1.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/08/changing-sequence-and-adding-new-menu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-8506770243892489688</guid><pubDate>Sat, 15 Aug 2009 11:59:00 +0000</pubDate><atom:updated>2009-08-15T17:45:15.473+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Hiding / Removing Menu and Menu items in SharePoint</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fhqmF6a5qPNKwwKA_InMYyv1xxQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fhqmF6a5qPNKwwKA_InMYyv1xxQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fhqmF6a5qPNKwwKA_InMYyv1xxQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fhqmF6a5qPNKwwKA_InMYyv1xxQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Today we are going to discuss something on tool bar action. We all know that we get toolbar where we have New menu, action menu available when we are in AllItems.aspx.&lt;br /&gt;&lt;br /&gt;Let us see how we can remove the toolbar specific item, means sometime we may require removing NewMenu and sometimes we may want to remove ActionMenu or even from Settings menu, then here is a way we can do this.&lt;br /&gt;&lt;br /&gt;We can also hide specific item from New Menu, Action Menu or Settings menu. First we need to iterate through all controls on AllItems.aspx and once we find the specific menu we are looking for, then we can cast that control in to specific menu and then  call visible method to set it to true and false.&lt;br /&gt;&lt;br /&gt;First let me give you a highlight on what are these classes.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Microsoft.SharePoint.WebControls.NewMenu&lt;br /&gt;Microsoft.SharePoint.WebControls.ActionsMenu&lt;br /&gt;Microsoft.SharePoint.WebControls.SettingsMenu&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So to demonstrate, go ahead and create one class which inherit from web part class and write down the following code in createchildcontrol event. Deploy it on your site and edit the AllItems page that you want to work with and add the webpart above AllItems web part (form web part).&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;   protected override void CreateChildControls()&lt;br /&gt;        {&lt;br /&gt;            foreach (Control ctrl in this.Page.Controls)&lt;br /&gt;            {&lt;br /&gt;                CheckControl(ctrl);&lt;br /&gt;            }&lt;br /&gt;            base.CreateChildControls();&lt;br /&gt;        }&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Now, in this code we will check each control on the page and once we find our required control, then we will cast that control and set the visible property.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;  private void CheckControl(Control ParentControl)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                foreach (Control childControl in ParentControl.Controls)&lt;br /&gt;                {&lt;br /&gt;&lt;br /&gt;                    if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.NewMenu".ToUpper())&lt;br /&gt;                    {&lt;br /&gt;                        NewMenu Menu = (NewMenu)childControl;&lt;br /&gt;                        Menu.Visible = false;&lt;br /&gt;                        &lt;br /&gt;                        if (Menu.GetMenuItem("NewFolder") != null)&lt;br /&gt;                            Menu.GetMenuItem("NewFolder").Visible = false;&lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;br /&gt;                    CheckControl(childControl);&lt;br /&gt;                }&lt;br /&gt;}&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Above code will iterate all controls till it finds the New Menu and once it gets the New Menu, we cast the control in the NewMenu class object and set its property to false, means we cannot see NewMenu.&lt;br /&gt;&lt;br /&gt;Below figure shows the result of above code.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoakH65947I/AAAAAAAAACU/sS9GBZ4FZh8/s1600-h/RT1.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 103px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoakH65947I/AAAAAAAAACU/sS9GBZ4FZh8/s320/RT1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370160061664322482" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Same way, if we run the below code&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;foreach (Control childControl in ParentControl.Controls)&lt;br /&gt;                {&lt;br /&gt;&lt;br /&gt;                    if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.ActionsMenu".ToUpper())&lt;br /&gt;                    {&lt;br /&gt;                       &lt;br /&gt;                        ActionsMenu Menu = (ActionsMenu)childControl;&lt;br /&gt;                        Menu.Visible = false;                      &lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;br /&gt;                    CheckControl(childControl);&lt;br /&gt;                }&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Then, you can see the result as shown in the below screen&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SoaksnJ9xCI/AAAAAAAAACc/F-ew8MCXtxE/s1600-h/RT2.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 99px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SoaksnJ9xCI/AAAAAAAAACc/F-ew8MCXtxE/s320/RT2.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370160692017873954" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Similarly, if you write the below code,&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  foreach (Control childControl in ParentControl.Controls)&lt;br /&gt;                {&lt;br /&gt;&lt;br /&gt;                    if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.SettingsMenu".ToUpper())&lt;br /&gt;                    {                       &lt;br /&gt;                        SettingsMenu Menu = (SettingsMenu)childControl;&lt;br /&gt;                        Menu.Visible = false;                     &lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;br /&gt;                    CheckControl(childControl);&lt;br /&gt;                }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Then, you can see the result as shown in the below screen.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoalMuaa2II/AAAAAAAAACk/s1RPoUJe4Nk/s1600-h/RT3.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 98px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoalMuaa2II/AAAAAAAAACk/s1RPoUJe4Nk/s320/RT3.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370161243721750658" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ok, let us proceed. From the List Settings option, I have enabled to new folder option.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SoalaJqz5zI/AAAAAAAAACs/xhP0PYlcpk8/s1600-h/rt4.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 102px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SoalaJqz5zI/AAAAAAAAACs/xhP0PYlcpk8/s320/rt4.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370161474376558386" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So ideally you will find New Folder option when you click in New from the tool bar. However if you write the following code, then it will hide the New Folder option.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;  foreach (Control childControl in ParentControl.Controls)&lt;br /&gt;                {&lt;br /&gt;&lt;br /&gt;                    if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.NewMenu".ToUpper())&lt;br /&gt;                    {&lt;br /&gt;                        NewMenu Menu = (NewMenu)childControl;&lt;br /&gt;                        Menu.Visible = true;&lt;br /&gt;                        &lt;br /&gt;                        if (Menu.GetMenuItem("NewFolder") != null)&lt;br /&gt;                            Menu.GetMenuItem("NewFolder").Visible = false;&lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;br /&gt;                    CheckControl(childControl);&lt;br /&gt;                }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/Soalq14vtuI/AAAAAAAAAC0/THtLb1-BaE0/s1600-h/RT5.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 103px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/Soalq14vtuI/AAAAAAAAAC0/THtLb1-BaE0/s320/RT5.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370161761124071138" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ok, same goes for the other menu items in the other menu as well. For example, let’s remove the Alert Me option from Actions menu. Question is how to do that? In above example, we used NewFolder as MenuItem and found it. But what needs to be passed as parameter in GetMenuItem method? &lt;br /&gt;&lt;br /&gt;Let me give you a wonderful trick. Even I was not aware about this. I worked on it and find out that it’s the ID of the MenuItem. Where to find that ID, I’ll tell you how I found it. See the below figure. Once, you come in the IF condition of your menu option, set a break point and then observe the following red circle marks. This is the Menu.GetDesignTimeHTML() method that you can check in local window or immediate window. I have taken this HTML after my debug point crossed the code that makes “Alert Me” visible false, that is the reason you cannot find Alert Me text here. If you observe this HTML before the code gets execute from that point, you will be able to see that as well.&lt;br /&gt; &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_zOVGRm4VkbY/Soal8hUdJ9I/AAAAAAAAAC8/WG8-E5aE7Is/s1600-h/RT6.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 198px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/Soal8hUdJ9I/AAAAAAAAAC8/WG8-E5aE7Is/s320/RT6.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370162064840796114" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Use the ID of the menu item in code. Just remember avoid everything including _ character in the ID and take the rest of all character and pass it to the GetMenuItem method.&lt;br /&gt;&lt;br /&gt;And now see the below code&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;foreach (Control childControl in ParentControl.Controls)&lt;br /&gt;                {&lt;br /&gt;&lt;br /&gt;                    if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.ActionsMenu".ToUpper())&lt;br /&gt;                    {&lt;br /&gt;                       &lt;br /&gt;                        ActionsMenu Menu = (ActionsMenu)childControl;&lt;br /&gt;                        Menu.Visible = true;&lt;br /&gt;&lt;br /&gt;                        if (Menu.GetMenuItem("SubscribeButton") != null)&lt;br /&gt;                            Menu.GetMenuItem("SubscribeButton").Visible = false;&lt;br /&gt;&lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;br /&gt;                    CheckControl(childControl);&lt;br /&gt;                }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So, from where I come to know that I have to pass “SubscribeButton” as parameter? Yes, its from the designtimHTML. Once you get all the code, then you can use it. &lt;br /&gt;&lt;br /&gt;So after executing the above code, see the result below.” Alert me” menu item is not there in Actions menu.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SoamOs0MC8I/AAAAAAAAADE/8Akd4WQIE8k/s1600-h/RT7.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 118px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SoamOs0MC8I/AAAAAAAAADE/8Akd4WQIE8k/s320/RT7.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370162377164327874" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So if I want to hide View RSs Feed, I will use the ID “ViewRSS” and run the code and I will get the result. (Check the red circle in the DesigntimeHTML figure).&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;   foreach (Control childControl in ParentControl.Controls)&lt;br /&gt;                {&lt;br /&gt;&lt;br /&gt;                    if (childControl.ToString().ToUpper() == "Microsoft.SharePoint.WebControls.ActionsMenu".ToUpper())&lt;br /&gt;                    {&lt;br /&gt;                       &lt;br /&gt;                        ActionsMenu Menu = (ActionsMenu)childControl;&lt;br /&gt;                        Menu.Visible = true;&lt;br /&gt;&lt;br /&gt;                        if (Menu.GetMenuItem("ViewRSS") != null)&lt;br /&gt;                            Menu.GetMenuItem("ViewRSS").Visible = false;&lt;br /&gt;&lt;br /&gt;                        break;&lt;br /&gt;                    }&lt;br /&gt;                    CheckControl(childControl);&lt;br /&gt;                }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_zOVGRm4VkbY/Soamd4rkjdI/AAAAAAAAADM/p0FO40d4cu0/s1600-h/RT8.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 122px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/Soamd4rkjdI/AAAAAAAAADM/p0FO40d4cu0/s320/RT8.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5370162638047448530" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Same way you can check the DesignTimeHTML for Settings menu and play with the MenuItem under Settings Menu.&lt;br /&gt;&lt;br /&gt;Hope you’ve liked my research. Thank you in advance. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-8506770243892489688?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/lFqdBAKFOXc/hiding-removing-menu-and-menu-items-in.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_zOVGRm4VkbY/SoakH65947I/AAAAAAAAACU/sS9GBZ4FZh8/s72-c/RT1.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/08/hiding-removing-menu-and-menu-items-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-5503087242070639546</guid><pubDate>Sun, 02 Aug 2009 07:29:00 +0000</pubDate><atom:updated>2009-08-02T15:31:36.227+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">SharePoint Basics</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Working with KPI List – Part 1</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XjzqORjuAtzz-tDLFNQEFBpeYxQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XjzqORjuAtzz-tDLFNQEFBpeYxQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XjzqORjuAtzz-tDLFNQEFBpeYxQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XjzqORjuAtzz-tDLFNQEFBpeYxQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;We all know about the importance of goal in business. Business works on set goals, so it is very important to track where they are, matching the goal, ahead of goal or behind the goal. To answer this question, SharePoint has come up with feature called KPI (Key Performance Indicator).&lt;br /&gt;&lt;br /&gt;Key Performance Indicator as name suggests, it gives an idea about where we are performing related to goal. They are found in Report center site, so if you are in WSS working environment, do not think of using this feature because you are not going to get this. This is moss feature.&lt;br /&gt;&lt;br /&gt;So let’s get started and understand how it works.&lt;br /&gt;&lt;br /&gt;KPI is a special type of list, so while creating a list; we need to select this special list as KPI list, not a normal custom list. When you create a KPI list, then click new, you will see the difference. This is the difference.&lt;br /&gt;&lt;br /&gt;Here is a sample of creating KPI list and how the data is entered in it. So first we will create a normal list which will hold the data that will be used in KPI list. Create a list as shown below.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_zOVGRm4VkbY/SnVCawuLQPI/AAAAAAAAAAM/-XMm58jqHzc/s1600-h/KPI2main.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 96px;" src="http://2.bp.blogspot.com/_zOVGRm4VkbY/SnVCawuLQPI/AAAAAAAAAAM/-XMm58jqHzc/s320/KPI2main.jpg" alt="" id="BLOGGER_PHOTO_ID_5365267558604423410" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Now observe here that we have sales goal against January of each year. Keep this thing as of now in your mind.&lt;br /&gt;&lt;br /&gt;Let us go back to KPI list, Create KPI list and name it as you like.&lt;br /&gt;&lt;br /&gt;Once you are done with creation, just click on new and observe the change, here you can see four options.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SnVZT4oGa3I/AAAAAAAAAAU/TIsOubAbagU/s1600-h/KPINewMenu.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 293px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SnVZT4oGa3I/AAAAAAAAAAU/TIsOubAbagU/s320/KPINewMenu.jpg" alt="" id="BLOGGER_PHOTO_ID_5365292729234778994" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As you can see, first options says you can create KPI using list options, second option says that you can create KPI using excel workbook, third says that you can create KPI using Sql server 2005 analysis services and the last options says that you can create KPI using manual entry.&lt;br /&gt;&lt;br /&gt;We are going to see three out of these four. We will not cover analysis service KPI. We will cover rest of it.&lt;br /&gt;&lt;br /&gt;So let us get started and try to create KPI from List option. So click on the first option, once you click on it, it will take you to a page where you can enter the List url from which we want to fetch the data, select the list that we created earlier and click on number of list items in view. Scroll below and enter 8 and 6 respectively like shown below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SnVaZ6YaZBI/AAAAAAAAAAk/yV7DcKuMy0k/s1600-h/KPIConfig.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 276px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SnVaZ6YaZBI/AAAAAAAAAAk/yV7DcKuMy0k/s320/KPIConfig.jpg" alt="" id="BLOGGER_PHOTO_ID_5365293932296692754" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Let me explain you what all settings we just did. We have counted the number of items in the list. If total number of items in the list meets criteria of 8 or above, KPI gives green symbol. If total number of items in the list is 6 or 7 then it gives us yellow triangle. If total number of items is below 6 than it gives red square symbol.&lt;br /&gt;&lt;br /&gt;So let us go back and see how many items we have in list, we have five items entered in it.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_zOVGRm4VkbY/SnVawPAuTgI/AAAAAAAAAAs/gxbErN1kfLA/s1600-h/KPIFirstConfig.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 53px;" src="http://2.bp.blogspot.com/_zOVGRm4VkbY/SnVawPAuTgI/AAAAAAAAAAs/gxbErN1kfLA/s320/KPIFirstConfig.jpg" alt="" id="BLOGGER_PHOTO_ID_5365294315791601154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now let’s go ahead and add more two rows in the list.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SnVbCWbzKQI/AAAAAAAAAA0/9-MiBrphpGg/s1600-h/KPIItemsAdded.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 114px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SnVbCWbzKQI/AAAAAAAAAA0/9-MiBrphpGg/s320/KPIItemsAdded.jpg" alt="" id="BLOGGER_PHOTO_ID_5365294627021859074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now go back to KPI list and refresh the page and see symbol changes to the yellow triangle that meets to our criteria.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SnVbVPX0MfI/AAAAAAAAAA8/0cF7VNTVeVQ/s1600-h/KPIAfterItemsAdded.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 50px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SnVbVPX0MfI/AAAAAAAAAA8/0cF7VNTVeVQ/s320/KPIAfterItemsAdded.jpg" alt="" id="BLOGGER_PHOTO_ID_5365294951543615986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now go back and add one more item to it to complete our goal of 8 items in the list and that will turn our KPI symbol to green circle.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SnVbvf-oDFI/AAAAAAAAABE/b-DAF92DLLI/s1600-h/KPIlegendafteritemadded.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 52px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SnVbvf-oDFI/AAAAAAAAABE/b-DAF92DLLI/s320/KPIlegendafteritemadded.jpg" alt="" id="BLOGGER_PHOTO_ID_5365295402677963858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That completed our simple example of generating KPI based on total number of items in the list. If you have observed while creating KPI, you must have seen other two options as well. It says that you can also go for the percentage value. Other is calculating average, calculating sum etc kind of a function. We will go for calculating average sales. So let’s add one more KPI which is again from List data. So click on new and select KPI from list option. In the page, shown name the KPI and then select third radio button. Select your list by specifying URL and selecting view as All items, here you can also mentioned your specific view for which you want to generate KPI, so this gives us more flexibility for criteria based KPI as well. After this select column as “Sales Goal” and select average from the drop down. Provide 1000 in the goal and 600 in warning textbox. You should have something which looks similar to shown below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zOVGRm4VkbY/SnVcAc30LjI/AAAAAAAAABM/_vpZHE3tWL8/s1600-h/KPISettingaverage.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 177px;" src="http://1.bp.blogspot.com/_zOVGRm4VkbY/SnVcAc30LjI/AAAAAAAAABM/_vpZHE3tWL8/s320/KPISettingaverage.jpg" alt="" id="BLOGGER_PHOTO_ID_5365295693901868594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We have specified that if the average sale is 1000 or more, we are safe and it shows green symbol. If it’s between 600 to 999, we are in a warning stage else we are in danger zone and indicated by red square.&lt;br /&gt;&lt;br /&gt;Here we have this entry in our base list.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_zOVGRm4VkbY/SnVcUzmhqWI/AAAAAAAAABU/1cRjuoleyz4/s1600-h/KPIsalesgoalsupport.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 130px;" src="http://4.bp.blogspot.com/_zOVGRm4VkbY/SnVcUzmhqWI/AAAAAAAAABU/1cRjuoleyz4/s320/KPIsalesgoalsupport.jpg" alt="" id="BLOGGER_PHOTO_ID_5365296043600750946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Because average sales is higher than we specified (which is $1,000 in our case), KPI indicator shows us green symbol.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVclyIwH2I/AAAAAAAAABc/zq3HUrZXCXE/s1600-h/KPISalesGoalAverageLegend.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 74px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVclyIwH2I/AAAAAAAAABc/zq3HUrZXCXE/s320/KPISalesGoalAverageLegend.jpg" alt="" id="BLOGGER_PHOTO_ID_5365296335265210210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To know more on the same KPI, just click on the KPI item that we have just created; it will take you to a page which shows more detailed information.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVc1oXdnBI/AAAAAAAAABk/A3fkwq6iHKI/s1600-h/KPIDetailedpage.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 201px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVc1oXdnBI/AAAAAAAAABk/A3fkwq6iHKI/s320/KPIDetailedpage.jpg" alt="" id="BLOGGER_PHOTO_ID_5365296607520463890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now, go ahead and change the sales values accordingly. When you change the value which makes the average change in them, when average goes below 999 it will start showing yellow triangle and if average changes below 600, it will start showing red square.&lt;br /&gt;&lt;br /&gt;Ok, now let us start analyzing the other options which is entering manual information KPI, it is very simple process of giving static data. You just need to give a value and select the criteria goal for it and it simple displays the image depending on the value that you have entered like shown below.&lt;br /&gt;&lt;br /&gt;You can also create a KPI indicator which will come from the excel file. But before starting on this, you need to create SSP for this, because the excel file that we are going to use here must be under the trusted location. So create the SSP from central administration and click on the excel trusted file location. Give the entire path till your library name in which your excel book resides. Once you are done with this, then only you will be able to use this feature. So go ahead and create one more KPI indicator and this time select the indicator using data in excel work book. Once you click on this, you need to give the URL of the workbook. So go ahead and select your work book. Now here, once you select the workbook, you need to give the cell number here to mention your indicator value. Along with this you also need to give the cell number for goal and cell number for warning.&lt;br /&gt;&lt;br /&gt;This is the snapshot of excel workbook that I have created. In this workbook, in Shhet1 I have mentioned Sales data.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_zOVGRm4VkbY/SnVdQd3NP-I/AAAAAAAAABs/rPu_MmPj3ls/s1600-h/Excelworkbook.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 201px;" src="http://2.bp.blogspot.com/_zOVGRm4VkbY/SnVdQd3NP-I/AAAAAAAAABs/rPu_MmPj3ls/s320/Excelworkbook.jpg" alt="" id="BLOGGER_PHOTO_ID_5365297068557287394" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here D11 cell is an average of sales goal value of D4 to D8 which is our target value as indicator. H$ value indicates the goal to achieve and H7 is the warning sales goal. So let’s specify these values in respective field as shown below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVdnYJy27I/AAAAAAAAAB0/1jQrGZmB3lg/s1600-h/ExcelIndicatorValues.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 201px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVdnYJy27I/AAAAAAAAAB0/1jQrGZmB3lg/s320/ExcelIndicatorValues.jpg" alt="" id="BLOGGER_PHOTO_ID_5365297462161628082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Just see at the indicator field in KPI list,&lt;br /&gt;&lt;br /&gt;Let’s prepare one workbook which look like this, here D11 is calculated column which is average of all sales figures. Cell H4 represents the goal to be achieved and cell H6 represents the warning match.&lt;br /&gt;&lt;br /&gt;So here we will specify our criteria like shown above in workbook figure.&lt;br /&gt;&lt;br /&gt;Go ahead and have a look at the KPI list how it looks like.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVeIXB6uHI/AAAAAAAAAB8/oUtlyfpDLyc/s1600-h/KPIAftersalesdataenterd.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 201px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVeIXB6uHI/AAAAAAAAAB8/oUtlyfpDLyc/s320/KPIAftersalesdataenterd.jpg" alt="" id="BLOGGER_PHOTO_ID_5365298028795836530" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Try to open the workbook for editing and see the changes in the indicator values, you will see different indicators shown in the KPI list.&lt;br /&gt;&lt;br /&gt;Now, we are almost done with our examples of KPI. Just one more topic left to discuss which a KPI web part is. We are done with creating KPI list, its supporting list but there is one more thing, which is web part that supports the KPI list. So let’s go ahead and add web parts. Click on edit page, where you want to put this web part. This web part will basically pulls the KPI data from the KPI list and shows details at one go.&lt;br /&gt;&lt;br /&gt;Find web part which is named “Key Performance indicators” under Dashboard category. Once you add it, click on modify shared web part and select the KPI list.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVesvsJYCI/AAAAAAAAACE/mY40k69DI5k/s1600-h/KPIWebpartonPage.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 112px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVesvsJYCI/AAAAAAAAACE/mY40k69DI5k/s320/KPIWebpartonPage.jpg" alt="" id="BLOGGER_PHOTO_ID_5365298653890699298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;One more web part is there which says KPI Details under same Dashboard category. So go ahead and add that web part on the page, click on modify shared web part. Select KPI list, here you will find all KPIs that you have mentioned in the KPI list in the drop down. From there you can select KPI. In this example, I have selected the excel sales data calculation KPI and selected icon as checkmark and result is shown below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVe6EmPIiI/AAAAAAAAACM/m2LQujtUTnU/s1600-h/KPIdetailswebpart.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 201px;" src="http://3.bp.blogspot.com/_zOVGRm4VkbY/SnVe6EmPIiI/AAAAAAAAACM/m2LQujtUTnU/s320/KPIdetailswebpart.jpg" alt="" id="BLOGGER_PHOTO_ID_5365298882841354786" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That is it. i will soon come with part 2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-5503087242070639546?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/P5uxKHLh598/working-with-kpi-list-part-1.html</link><author>noreply@blogger.com (SharePoint Kings)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_zOVGRm4VkbY/SnVCawuLQPI/AAAAAAAAAAM/-XMm58jqHzc/s72-c/KPI2main.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/08/working-with-kpi-list-part-1.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-921025377204041184</guid><pubDate>Tue, 28 Jul 2009 11:31:00 +0000</pubDate><atom:updated>2009-07-28T17:03:50.156+05:30</atom:updated><title>Search ASPX pages from sub site in SharePoint (MOSS 2007)</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ciJNoz_kaIBUwrxbK6A4Dsgizbo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ciJNoz_kaIBUwrxbK6A4Dsgizbo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ciJNoz_kaIBUwrxbK6A4Dsgizbo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ciJNoz_kaIBUwrxbK6A4Dsgizbo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span xmlns=""&gt;&lt;p&gt;Search ASPX pages from sub site in SharePoint (MOSS 2007)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In my site collection I have one root site and 2 other sub sites. I have configured Search on site collection and crawl works successfully. Now when I try to search contents from search center results from root site return where content from sub sites are not returned in search result. I amazed and do lot of search on net finally I come to know for each sub site we need to turn on index all .ASPX pages to crawl the content of that ASPX.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Follow the steps to enable sub site ASPX pages in crawl.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Go to sub site &amp;gt; click site settings &amp;gt; in site administrator there is one option called search visibility&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Now click on this search visibility option and click on radio button allow this web to appear in search result? To &lt;strong&gt;yes&lt;/strong&gt;&lt;br /&gt;   &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;And middle radio button of second option that is "&lt;strong&gt;&lt;em&gt;Always index all ASPX pages on this site&lt;/em&gt;&lt;/strong&gt;"&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Crawl the content again. It will work for you&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Thanks. Your comments and suggestion are appreciable&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-921025377204041184?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/kW-T1Fp4MGI/search-aspx-pages-from-sub-site-in.html</link><author>noreply@blogger.com (Jayesh Prajapati)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/07/search-aspx-pages-from-sub-site-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-7488996291308695321</guid><pubDate>Sat, 18 Jul 2009 07:23:00 +0000</pubDate><atom:updated>2009-07-18T14:04:32.975+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">WSS 3.0</category><title>Understanding and working with the Web Part Verbs</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/H8YrTY7vdzAMKwepPQS36b3K-8o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/H8YrTY7vdzAMKwepPQS36b3K-8o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/H8YrTY7vdzAMKwepPQS36b3K-8o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/H8YrTY7vdzAMKwepPQS36b3K-8o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;In this post, we are going to discuss about understanding and working with webpart verbs. First question comes to the mind is what this web part verb actually is. Right, so here is the answer to this.&lt;br /&gt;&lt;br /&gt;You have already seen Web part verb if you have worked with web parts. They appear when you press the down arrow button key available in every web part at right hand side corner. Each item in that menu is called verb. Look in to below image.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_4uR1LhzYwbA/SmF40FaGfcI/AAAAAAAACV0/z62flB_4_qM/s1600-h/WV1.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5359697867747786178" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 105px" alt="" src="http://2.bp.blogspot.com/_4uR1LhzYwbA/SmF40FaGfcI/AAAAAAAACV0/z62flB_4_qM/s400/WV1.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As you can also see in the image that we have created our own custom web part verb as well and added to the web part.&lt;br /&gt;&lt;br /&gt;So let us start with explaining the method how we can achieve this functionality. First you need to know that there are two kinds of event you can bind it to a verb. Either it can be client side event or it can be server side event. As you can see in the image, to show you I have created two verbs and bound events respectively. You need to overrides WebPartVerbCollection. First you need to create your web part verb and then finally we will add them to the default web part verb collections for the web part.&lt;br /&gt;&lt;br /&gt;Let us see it in action.&lt;br /&gt;&lt;br /&gt;First web part verb will be handling the server side event and the other web part verb will be handling the client side event.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;public override WebPartVerbCollection Verbs&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;get&lt;br /&gt;{&lt;br /&gt;List &amp;lt;webpartverb&amp;gt  objVerbs = new List &amp;lt;webpartverb&amp;gt();&lt;br /&gt;&lt;br /&gt;WebPartVerb verb = new WebPartVerb(this.ID, new WebPartEventHandler(ServerSideHandler));&lt;br /&gt;verb.Text = "Click to execute server side code";&lt;br /&gt;verb.Visible = true;&lt;br /&gt;verb.Description = "This click will execute server side code";&lt;br /&gt;objVerbs.Add(verb);&lt;br /&gt;&lt;br /&gt;WebPartVerb verb1 = new WebPartVerb(this.ID + "newone","alert('hi you clicked me!!!');");&lt;br /&gt;verb1.Text = "Click to execute client side code";&lt;br /&gt;verb1.Visible = true;&lt;br /&gt;verb1.Description = "This click will execute client side code";&lt;br /&gt;objVerbs.Add(verb1);&lt;br /&gt;&lt;br /&gt;WebPartVerbCollection allverbs = new WebPartVerbCollection(base.Verbs,objVerbs);&lt;br /&gt;&lt;br /&gt;return allverbs;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;As you can see, client side event, we have declared it in the constructor of webpart verb itself. There you can also write something like window.open or any other client side code that you want.&lt;br /&gt;&lt;br /&gt;If we talk about the server side code, then it is handling one webpart event ahndler which is ServerSideHandler. To show you how it works, I have created a textbox in that event and added to the controls collection of web part. So by clicking on that verb, a new textbox will generated and added to the webpart.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;public void ServerSideHandler(object sender, WebPartEventArgs e)&lt;br /&gt;{&lt;br /&gt;TextBox txtName = new TextBox();&lt;br /&gt;txtName.TextMode = TextBoxMode.MultiLine;&lt;br /&gt;txtName.ID = "txtname";&lt;br /&gt;txtName.Text = "Hey you clicked server side code and see i got generated here";&lt;br /&gt;this.Controls.Add(txtName);&lt;br /&gt;&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Above are the steps that you need to implement. That will complete your functionality of achieving custom web part verb and adding them to your web part.&lt;br /&gt;&lt;br /&gt;See the figure below when I click on client side verb, what happens!!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_4uR1LhzYwbA/SmF5Cg1PY_I/AAAAAAAACV8/Y_KHkUCBB1Y/s1600-h/WV2.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5359698115627541490" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 105px" alt="" src="http://1.bp.blogspot.com/_4uR1LhzYwbA/SmF5Cg1PY_I/AAAAAAAACV8/Y_KHkUCBB1Y/s400/WV2.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_4uR1LhzYwbA/SmF5J2mwH6I/AAAAAAAACWE/CxZShV99IrU/s1600-h/WV3.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5359698241731436450" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 121px" alt="" src="http://3.bp.blogspot.com/_4uR1LhzYwbA/SmF5J2mwH6I/AAAAAAAACWE/CxZShV99IrU/s400/WV3.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And see when I clicked on server side web part verb, what happenes!!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_4uR1LhzYwbA/SmF5P_yROgI/AAAAAAAACWM/DnMrNcod0Tw/s1600-h/WV4.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5359698347274877442" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 85px" alt="" src="http://4.bp.blogspot.com/_4uR1LhzYwbA/SmF5P_yROgI/AAAAAAAACWM/DnMrNcod0Tw/s400/WV4.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_4uR1LhzYwbA/SmF5V6uVT-I/AAAAAAAACWU/C3j3w8h9bOg/s1600-h/WV5.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5359698448995405794" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 88px" alt="" src="http://4.bp.blogspot.com/_4uR1LhzYwbA/SmF5V6uVT-I/AAAAAAAACWU/C3j3w8h9bOg/s400/WV5.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So I hope that now you have got the idea about web part verb. So now you can create it and use them according to your requirements.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-7488996291308695321?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/OBwlp7lk_KU/understanding-and-working-with-web-part.html</link><author>noreply@blogger.com (Malay Vasavada)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_4uR1LhzYwbA/SmF40FaGfcI/AAAAAAAACV0/z62flB_4_qM/s72-c/WV1.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/07/understanding-and-working-with-web-part.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-295916207406234658</guid><pubDate>Fri, 17 Jul 2009 13:49:00 +0000</pubDate><atom:updated>2009-07-17T19:20:52.532+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">WSS 3.0</category><title>Understanding SPApplicationPool Class</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NVxGRLzUBIX-PNfJLFd1ZIPws4o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NVxGRLzUBIX-PNfJLFd1ZIPws4o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NVxGRLzUBIX-PNfJLFd1ZIPws4o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NVxGRLzUBIX-PNfJLFd1ZIPws4o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;I came across to an interesting thing yesterday when I was exploring the various classes of SharePoint. I found a class named SPApplicationPool and immediately I got an idea that we should be able to get this class object by calling ApplicationPool property of SPWebApplication object and I was right.&lt;br /&gt;&lt;br /&gt;So let me explain you one more interesting part of this class. It exposes several properties like Username, Name, DisplayName, Propoerties as hash table and most surprisingly password. Yes Password property was there, I thought it must be only having set attribute. But I was very much surprised to see it was gettable. Well I thought for a moment.&lt;br /&gt;&lt;br /&gt;Below is just a test code that I ran from console application.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;private void button1_Click(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            SPWebApplicationCollection objAllWebApps =&lt;br /&gt;                SPWebService.ContentService.WebApplications;&lt;br /&gt;&lt;br /&gt;            SPApplicationPool objPool = null;&lt;br /&gt;&lt;br /&gt;            string strApplicationPoolUserName = string.Empty;&lt;br /&gt;            string strApplicationPoolPassword = string.Empty;&lt;br /&gt;            string strApplicationPoolName = string.Empty;&lt;br /&gt;            string strApplicationPoolDisplayName = string.Empty;&lt;br /&gt;            string strPropertyKey = string.Empty;&lt;br /&gt;            string strPropoertyValue = string.Empty;&lt;br /&gt;&lt;br /&gt;            Hashtable objHash = new Hashtable();&lt;br /&gt;&lt;br /&gt;            foreach (SPWebApplication objwebapp in objAllWebApps)&lt;br /&gt;            {&lt;br /&gt;                objPool = objwebapp.ApplicationPool;&lt;br /&gt;                strApplicationPoolUserName = objPool.Username;&lt;br /&gt;                strApplicationPoolPassword = objPool.Password;&lt;br /&gt;                strApplicationPoolName =objPool.Name;&lt;br /&gt;                strApplicationPoolDisplayName = objPool.DisplayName;&lt;br /&gt;                objHash = objPool.Properties;&lt;br /&gt;&lt;br /&gt;                foreach (DictionaryEntry objEntry in objHash)&lt;br /&gt;                {&lt;br /&gt;                    strPropertyKey = objEntry.Key.ToString();&lt;br /&gt;                    strPropoertyValue = objEntry.Value.ToString();&lt;br /&gt;                } &lt;br /&gt;&lt;br /&gt;            }&lt;br /&gt;        }&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;But then I got to know that you must be an Administrator user to even run this code because ultimately it is all about Microsoft.SharePoint.Administration class.&lt;br /&gt;&lt;br /&gt;Apart from this I came across certain properties that may be useful in some scenario. So let me discuss certain properties of SPWebApplication class.&lt;br /&gt;&lt;br /&gt;AlertsEnabled (Bool)- Whether you can set the alerts or not.&lt;br /&gt;&lt;br /&gt;AlertsMaximum (int) –Gets or sets maximum number of alerts a user can create on list or list item&lt;br /&gt;&lt;br /&gt;CanSelectForBackup(Bool) – Indicating whether web application can be backed up or not.&lt;br /&gt;&lt;br /&gt;CanSelectForRestore(Bool) – Indicating whether web application can be restored or not.&lt;br /&gt;&lt;br /&gt;EventHandlersEnabled – Event Handles are enabled on this web application or not&lt;br /&gt;&lt;br /&gt;JobDefinitions – returns all job definitions for the web application&lt;br /&gt;&lt;br /&gt;There are many other properties for this class, just explore and check them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-295916207406234658?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/V6ES1ADYkr8/understanding-spapplicationpool-class.html</link><author>noreply@blogger.com (Malay Vasavada)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/07/understanding-spapplicationpool-class.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-8652215854905083580</guid><pubDate>Wed, 15 Jul 2009 11:31:00 +0000</pubDate><atom:updated>2009-07-15T17:10:58.058+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">WSS 3.0</category><category domain="http://www.blogger.com/atom/ns#">MOSS Development and Deployment</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Designing anonymous application page in SharePoint</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kNx-AWurJ1hSeDy7TcNowEZ2VuM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kNx-AWurJ1hSeDy7TcNowEZ2VuM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kNx-AWurJ1hSeDy7TcNowEZ2VuM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kNx-AWurJ1hSeDy7TcNowEZ2VuM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Today I am going to discuss on how to design anonymous access application page. This is a common problem that many company developer faces. They always ask that designing such a page is always difficult. You will have site running in windows authentication or in forms authentication. If the entire site is anonymous then it is altogether a different story.&lt;br /&gt;&lt;br /&gt;So let us discuss how we can design such application page that can be accessed by the anonymous users as well.&lt;br /&gt;&lt;br /&gt;Normally we inherit the application page by LayoutPageBase class, right? Yes, so first thing to note is instead of inheriting from this class, we are required to inherit from class named &lt;b&gt;UnsecuredLayoutsPageBase&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;In addition to this, you also need to override one more method which is&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;protected override bool AllowAnonymousAccess&lt;br /&gt;{&lt;br /&gt;get&lt;br /&gt;{&lt;br /&gt;return true;&lt;br /&gt;}&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Once you are done with these two settings, you are done with this. Try to achieve this and let me know your feedback.&lt;br /&gt;&lt;br /&gt;Thank you&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-8652215854905083580?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/tTPuPO43wH0/designing-anonymous-application-page-in.html</link><author>noreply@blogger.com (Malay Vasavada)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/07/designing-anonymous-application-page-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-2049260164897184293</guid><pubDate>Tue, 14 Jul 2009 15:08:00 +0000</pubDate><atom:updated>2009-07-14T20:47:40.699+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Understanding SchedulePicker class and using it as control</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q9_PdVpZqSD1DanhWETL8xlMb1I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q9_PdVpZqSD1DanhWETL8xlMb1I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Q9_PdVpZqSD1DanhWETL8xlMb1I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q9_PdVpZqSD1DanhWETL8xlMb1I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Today I am going to discuss about SchedulePicker and how to use it as control in webpart. In my earlier post, I mentioned about creating the custom timer job. This is one step which is similar to that post. This class can be used to allow the user to ask to created job schedule by giving timings and schedule duration by them.&lt;br /&gt;&lt;br /&gt;For example, you have created one class which inherits from SPJobDefinition and hence actually implements the execute method for scheduling purpose. So here what we can do is we can give an option to use to select the times and all. After use selects the time and schedule we can assign the selected schedule to the custom job definition.&lt;br /&gt;&lt;br /&gt;This is in Microsoft.Sharepoint.WebControls namespace. You can find it under 12 hives control templates. Name of the control is SchedulePicker.ascx.&lt;br /&gt;&lt;br /&gt;So you need to register the namespace and then you can use this control in your web part or in any other way you want.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;%@ Register TagPrefix=&amp;quot;wssuc&amp;quot; TagName=&amp;quot;SchedulePicker&amp;quot; src=&amp;quot;~/_controltemplates/SchedulePicker.ascx&amp;quot; %&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;And then using the control like this: &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;wssuc:SchedulePicker id=&amp;quot;myScheduler&amp;quot; Weekly=&amp;quot;True&amp;quot; Monthly=&amp;quot;True&amp;quot; Enabled=&amp;quot;True&amp;quot; EnableStateView=&amp;quot;True&amp;quot; runat=&amp;quot;server&amp;quot;/&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The above setting will allow you to select between the monthly schedule or weekly scheduling. Other options are also available like Daily, Hourly.&lt;br /&gt;&lt;br /&gt;Then declare the control like &lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;private Control ctrlUserControl;&lt;br /&gt;&lt;br /&gt;Protected SchedulePicker myScheduler;&lt;br /&gt;&lt;br /&gt;string strUserControlPath = "/_controltemplates/{your ascx file}";&lt;br /&gt;&lt;br /&gt;this.ctrlUserControl = this.Page.LoadControl(strUserControlPath);&lt;br /&gt;&lt;br /&gt;myScheduler = this.ctrlUserControl.FindControl(“myScheduler”) as SchedulePicker;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Finally, Initialize the class which is your definition class and then set the Schedule property with the myScheduler.Schedule.&lt;br /&gt;&lt;br /&gt;i.e &lt;blockquote&gt;{Customjobdefinitionclass}.Schedule = myScheduler.Schedule;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;In this way, you have actually made the scheduling timing setting dynamic.&lt;br /&gt;&lt;br /&gt;That’s it. Your job is done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-2049260164897184293?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/m4EhtcVKKT4/understanding-schedulepicker-class-and.html</link><author>noreply@blogger.com (Malay Vasavada)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/07/understanding-schedulepicker-class-and.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-530687684531055009</guid><pubDate>Sun, 12 Jul 2009 08:23:00 +0000</pubDate><atom:updated>2009-07-12T14:01:52.759+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">SharePoint Basics</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Working with Recycle Bin in SharePoint</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/X_gs4FfYgeotfgl__pH9njABXU8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X_gs4FfYgeotfgl__pH9njABXU8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/X_gs4FfYgeotfgl__pH9njABXU8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X_gs4FfYgeotfgl__pH9njABXU8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Many times we require working with the Recycle bin of the web site in SharePoint. Here in this article I am going to discuss something interesting classes and their methods and properties for achieving this functionality in SharePoint.&lt;br /&gt;&lt;br /&gt;First to start with, when we want to gain an access on recycle bin object at site or individual web level, then call RecycleBin property of SPWeb or SPSite object. This will give you SPRecycleBinItemCollection object.&lt;br /&gt;&lt;br /&gt;Each item in SPRecycleBinItemCollection is SPRecycleBinItem. Let me explain you certain properties offered by SPRecycleBinItem object.&lt;br /&gt;&lt;br /&gt;(1) Author – Gets the User who created the item.&lt;br /&gt;(2) AuthorEmail - Gets the Email of the user who created this item.&lt;br /&gt;(3) AuthorName – Gets the display name of the User who created this item.&lt;br /&gt;(4) DeletedBy – Gets the User who deleted the item.&lt;br /&gt;(5) DeletedByEMail – Gets the Email of user who deleted the item.&lt;br /&gt;(6) DeletedByName – Gets the name of the use who deleted the item.&lt;br /&gt;(7) DirName – Gets the relative URL of the list or folder which originally captained the item.&lt;br /&gt;(8) ItemType – Gets type of an item deleted, what type of an item it was. It returns the SPRecycleBinItemType and it is enumeration which has following values.&lt;br /&gt;&lt;br /&gt;        Attachment : Specifies an attachment. &lt;br /&gt; File :Specifies a file. &lt;br /&gt; FileVersion: Specifies a file version. &lt;br /&gt; Folder: Specifies a folder. &lt;br /&gt; FolderWithLists: Specifies a folder that contains a list. &lt;br /&gt; List :Specifies a list. &lt;br /&gt; ListItem: Specifies a list item. &lt;br /&gt;&lt;br /&gt;Remember one important thing. When you have child sites under your site collection, then when you delete any item it goes in to your web's recycle bin. When you delete an item from that recycle bin, it goes in to the site collection's recycle bin. so you can also get your deleted item from there.&lt;br /&gt;&lt;br /&gt;These were certain properties of the class. Now I would like to highlight certain methods of the class.&lt;br /&gt;&lt;br /&gt;(1) Delete:  the item permanently from the recycle bin.&lt;br /&gt;(2) MoveToSecondStage – this method moves the item from individual web’s recycle bin to the Site Collection recycle bin.&lt;br /&gt;(3) Restore – As a name suggests, it restores the item to the original location.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Let us look into one more aspects of working with Recycle bin. We normally use SPQuery or SPSiteDataQuery to work with the queries from list and document library. But here to work with the Recycle bin, we will use SPRecycleBinQuery class.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SPRecycleBinQuery objQuery = new SPRecycleBinQuery();&lt;br /&gt;objQuery.RowLimit = 100;&lt;br /&gt;objQuery.OrderBy = SPRecycleBinOrderBy.Default;&lt;br /&gt;SPRecycleBinItemCollection recycleitems = objWeb.GetRecycleBinItems(objQuery);&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Now we have got the recycleitems, so you can iterate through them and can access properties and also work with methods.&lt;br /&gt;&lt;br /&gt;That’s it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-530687684531055009?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/u05q6wn2-tM/working-with-recycle-bin-in-sharepoint.html</link><author>noreply@blogger.com (Malay Vasavada)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/07/working-with-recycle-bin-in-sharepoint.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-1052582386212320742</guid><pubDate>Thu, 09 Jul 2009 05:58:00 +0000</pubDate><atom:updated>2009-07-09T11:31:47.370+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">WSS 3.0</category><title>Accessing Content Type via object model in WSS</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wEtId8soyy05oHKBKUmggkoHMZc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wEtId8soyy05oHKBKUmggkoHMZc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wEtId8soyy05oHKBKUmggkoHMZc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wEtId8soyy05oHKBKUmggkoHMZc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Today we are going to talk about the how we can use content type in object model. We will see classes and how to bind any content types with the list or document library.&lt;br /&gt;&lt;br /&gt;We all know about the content type is that it can be treated as reusable component that can be used in list and library or any other way. Content type will always inherit from parent content type.&lt;br /&gt;&lt;br /&gt;We can have item based content type attached to the list and document based content type attached with the document library. We cannot attach the vice versa.&lt;br /&gt;&lt;br /&gt;First to get all the content type in our site level we will call AvailableContentTypes method which will give us SPContentTypeCollection object. Each individual object in SPContentTypeCollection is SPContentType. One more method we will use which takes the content type ID that we know and will directly give us that SPContentType.&lt;br /&gt;&lt;br /&gt;Before that please make a note of a difference between the AvailableContentTypes and ContentTypes property of SPWeb class.&lt;br /&gt;&lt;br /&gt;ContentTypes will return all content types only with reference to the current web but AvailableContentTypes will return you all content types of current web as well as all parent webs as well.&lt;br /&gt;&lt;br /&gt;Ok, coming back to the point, here is a way we can proceed working with content type through the object model.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SPContentType objContentType = objWeb.AvailableContentTypes[“contenetypeID”];&lt;br /&gt;objList.ContentTypes.Add(objContentType);&lt;br /&gt;objList.Update();&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Remember if your conenet type is about fields, then when the content type is added to the list, fields gets added to the field collection but won’t show those fields. So you need to take out the SPView class object and add the ViewFields for those new created fields through the ContentType.&lt;br /&gt;&lt;br /&gt;Same, if we want to remove any content type, then follow the below approach.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Foreach(SPContentType objContentType in objList.ContentTypes)&lt;br /&gt;{&lt;br /&gt; If(objContentType.Name.toUpper() == “contenetypeID”)&lt;br /&gt;{&lt;br /&gt;objContentType.Delete();&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;}&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-1052582386212320742?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/JXxM2nmabMI/accessing-content-type-via-object-model.html</link><author>noreply@blogger.com (Malay Vasavada)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/07/accessing-content-type-via-object-model.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8705297068966115777.post-3384377930165325833</guid><pubDate>Mon, 06 Jul 2009 05:08:00 +0000</pubDate><atom:updated>2009-07-06T10:41:55.677+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Object Model</category><category domain="http://www.blogger.com/atom/ns#">Sharepoint Tips And Tricks</category><title>Retrieving data from BDC Column</title><description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Y7uP0xjQEH4KkTtu-AEcSgDE40s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Y7uP0xjQEH4KkTtu-AEcSgDE40s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Y7uP0xjQEH4KkTtu-AEcSgDE40s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Y7uP0xjQEH4KkTtu-AEcSgDE40s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;Today we are going to discuss how to retrieve data from BDC Column. We all know that we can create BDC column once we have business application definition file installed in central administration.&lt;br /&gt;&lt;br /&gt;If you are not clear about the BDC and about the BDC Columns, I would recommend going to &lt;a href="http://www.sharepointkings.com/2008/11/business-data-catalog-bdc-part-1.html" target="_blank"&gt;this link&lt;/a&gt; and reading the whole series of BDC before you start reading this.&lt;br /&gt;&lt;br /&gt;When we use this BDC Column then all fields that we have defined in FileDescriptor tag becomes available as a set in one single BDC Column. So sometimes I think, how to retrieve individual item from the single BDC Column. So here is the answer for this.&lt;br /&gt;&lt;br /&gt;Assume that we are working with one list which has one BDC column as Order Column and it contains order information. Example ordername, order date, order qty.&lt;br /&gt;&lt;br /&gt;Now then when you insert the list item, it will ask you for search the order based on BDC Order column which you do on Order ID. When you search and insert the record, it will fetch all the columns that you have defined in the BDC FileDescriptor tag. &lt;br /&gt;&lt;br /&gt;To see all this in action, you create the BDC definition XML file, import and then use Business Data List web part and then play with it sometime to get to know the search field and retrieved columns.&lt;br /&gt;&lt;br /&gt;So we have Order Date, Order Name and Order Qty as retrieved columns, then when you query the ListItems with the help of SPQuery. Let us say that we have queried on ItemId 6 by using GetItemByID method. So we will have SPListItem as objItem.&lt;br /&gt;&lt;br /&gt;So how can we get the individual items (Order Date, OrderName and Order Qty) from one single BDC Column (i.e Order)? Here is a way to go for it.&lt;br /&gt;&lt;br /&gt;objItem[{name of the BDC Column : {name of the propoerty}}&lt;br /&gt;&lt;br /&gt;i.e  objItem[“Order: OrderName”] //accessing with the friendly name&lt;br /&gt;        objItem[“Order _x003a__x0020_OrderName”] //accessing with the internal name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That’s it. Your job is done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8705297068966115777-3384377930165325833?l=www.sharepointkings.com'/&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/SharepointKings/~3/pFOsnozZ1mk/retrieving-data-from-bdc-column.html</link><author>noreply@blogger.com (Malay Vasavada)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.sharepointkings.com/2009/07/retrieving-data-from-bdc-column.html</feedburner:origLink></item></channel></rss>
