<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>aatishblogs</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/aatishblogs/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/aatishblogs/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:46:00 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SQL - Some useful commands and features</title>
      <link>https://docs.microsoft.com/archive/blogs/aatishblogs/sql-some-useful-commands-and-features</link>
      <pubDate>Sun, 27 Jul 2014 03:53:00 GMT</pubDate>
      <dc:creator><![CDATA[Aatish Agarwal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/aatishblogs/2014/07/27/sql-some-useful-commands-and-features/</guid>
      <description><![CDATA[SET NOCOUNT -&nbsp; Stops the message that shows the count of the number of rows affected by a...]]></description>
      <content:encoded><![CDATA[<pre><strong>SET NOCOUNT</strong> -&nbsp; Stops the message that shows the count of the number of rows affected by a Transact-SQL statement or stored procedure from being returned as part of the result set.</pre>
<pre><strong>SCOPE_IDENTITY( )</strong> &ndash; Returns the last identity value inserted into an identity column in the same scope. A scope is a module: a stored procedure, trigger, function, or batch. Therefore, two statements are in the same scope if they are in the same stored procedure, function,</pre>
<pre>or batch.</pre>
<pre><strong>@@IDENTITY </strong>-&nbsp; Returns the last inserted identity column value inserted across any scope in the current session.</pre>
<pre><strong>CHAR(13) </strong>- For inserting line break (new line character) in the result set.</pre>
<pre><strong>ISNULL( )</strong> &ndash; Replaces NULL with the specified replacement value.</pre>
<div id="code-snippet-1" class="codeSnippetContainer">
<div class="codeSnippetContainerCodeContainer">
<div id="CodeSnippetContainerCode_f76c909c-f2a0-4333-8b84-936c54e64178" class="codeSnippetContainerCode" dir="ltr">
<div>
<pre><strong>CAST( ) </strong>-&nbsp;Returns <span class="parameter">expression</span> translated to <span class="parameter">data_type</span>.</pre>
</div>
</div>
</div>
</div>
<div id="code-snippet-2" class="codeSnippetContainer">
<div class="codeSnippetContainerCodeContainer">
<div id="CodeSnippetContainerCode_f97e9fdf-570e-4428-8f55-ddb43ac507ae" class="codeSnippetContainerCode" dir="ltr">
<div>
<pre><strong>CONVERT( ) </strong>-&nbsp;Returns <span class="parameter">expression</span> translated to <span class="parameter">data_type</span>. Its also supports formatting of the data returned.</pre>
<pre><strong>CASE</strong> Statement &ndash; It evaluates a list of conditions and returns one of multiple possible result expressions. It cannot be used outside SELECT statement.&nbsp;</pre>
</div>
</div>
</div>
</div>
<p style="text-align: left;"><strong>&nbsp; </strong>___________________________________________________________________________________________________________________________________________________________________________________________________________________________</p>
<p style="text-align: left;"><strong>Temporary Tables </strong> &ndash; These <br />are created to store data for temporary use. Once created, these tables <br />can be viewed under &ldquo;System Databases -&gt; Tempdb -&gt; Tables -&gt; <br />Temporary Tables&rdquo; section. There are two kinds of temporary tables.</p>
<p style="text-align: left;"><em>Local Temporary Tables:</em> Once <br />created, these are available only for the current sql connection <br />established by a user. These are deleted when the user closes the sql <br />connection.</p>
<p style="text-align: left;"><em> Global Temporary Tables: </em>Once <br />created, these are available under any sql connection established by any<br /> user. These are deleted when all the sql connections are closed.</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;"><strong>Convert values in a table into a string - </strong>Substring((Select ',' + Table.ColName for XML Path('')), 2, 500)</p>
<p style="text-align: left;"><strong>Single or double quotes in text -</strong> Between every two single quotes all double quotes are converted into one. Example:-&nbsp; 'He''''llo World' is converted into 'He''llo World'</p>]]></content:encoded>
    </item>
    <item>
      <title>Order of Page Events for ASPX Page, Master Page and User Control in ASP.NET</title>
      <link>https://docs.microsoft.com/archive/blogs/aatishblogs/order-of-page-events-for-aspx-page-master-page-and-user-control-in-asp-net</link>
      <pubDate>Sun, 27 Jul 2014 01:26:18 GMT</pubDate>
      <dc:creator><![CDATA[Aatish Agarwal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/aatishblogs/2014/07/27/order-of-page-events-for-aspx-page-master-page-and-user-control-in-asp-net/</guid>
      <description><![CDATA[When an .aspx page is loaded in ASP.NET, the different page events are called in the following order...]]></description>
      <content:encoded><![CDATA[<p>When an .aspx page is loaded in ASP.NET, the different page events <br />are called in the following order for the .aspx page, master page and <br />any user control on that page.</p>
<p>&nbsp;</p>
<p>&ldquo;OnLoad&rdquo;&nbsp;&nbsp; and&nbsp;&nbsp; &ldquo;PreRender&rdquo;</p>
<ul>
<li>ASPX Page</li>
<li>Master Page</li>
<li>User Control</li>
</ul>
<p>&nbsp;</p>
<p>&ldquo;Init&rdquo;&nbsp;&nbsp; and&nbsp;&nbsp; &ldquo;UnLoad&rdquo;</p>
<ul>
<li>User Control</li>
<li>Master Page</li>
<li>ASPX Page</li>
</ul>]]></content:encoded>
    </item>
    <item>
      <title>Refiners for Managed Metadata Columns in SharePoint Online</title>
      <link>https://docs.microsoft.com/archive/blogs/aatishblogs/refiners-for-managed-metadata-columns-in-sharepoint-online</link>
      <pubDate>Sun, 02 Feb 2014 04:17:00 GMT</pubDate>
      <dc:creator><![CDATA[Aatish Agarwal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/aatishblogs/2014/02/02/refiners-for-managed-metadata-columns-in-sharepoint-online/</guid>
      <description><![CDATA[In SharePoint 2013, a&nbsp;new search web part&nbsp;named Refinement is introduced, which helps in...]]></description>
      <content:encoded><![CDATA[<p>In SharePoint 2013, a&nbsp;new search web part&nbsp;named <em><strong>Refinement</strong> </em>is introduced, which helps in narrowing down the search results. It&nbsp;contains a set of refiners using which one can further narrow down&nbsp;the search results.&nbsp;In this article, we will look into how&nbsp;managed metadata columns can be used as refiners.</p>
<p>&nbsp;</p>
<p>Lets assume that, we have&nbsp;a document library&nbsp;which have the&nbsp;following managed metadata columns. The library has&nbsp;few documents in it with the columns having&nbsp;their corresponding values.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/1351.Untitled1.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/1351.Untitled1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/1351.Untitled1.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/1351.Untitled1.png" alt="" width="798" height="260" border="0" /></a></p>
<p>&nbsp;</p>
<p>When search performs full crawl on&nbsp;this library, it generates a&nbsp;crawled property for each of the managed metadata columns and then maps it to a managed property. Crawled property for site columns are always prefixed with <strong>ows_</strong> and the spaces in site column name&nbsp;are encoded as <strong>_x0020_</strong>.</p>
<p>&nbsp;</p>
<p>Click on search in 'SharePoint admin center' and then click on 'Search Schema' to work with managed and crawled properties.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/5241.Untitled6.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/5241.Untitled6.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/5241.Untitled6.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/5241.Untitled6.png" alt="" width="1091" height="412" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Lets, look at one of the column, say '<strong>Business Unit</strong>'. SharePoint search generates the following&nbsp;crawled properties for it.&nbsp;</p>
<p>&nbsp;<strong><span style="text-decoration: underline;">Crawled Property Name&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="text-decoration: underline;">Mapped To Managed Property</span></strong></p>
<p>ows_Business_x0020_Unit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Not Mapped)</p>
<p>ows_taxId_Business_x0020_Unit&nbsp;&nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; owstaxIdBusinessx0020xUnit</p>
<p>&nbsp;</p>
<p>The crawled property of our interest here&nbsp;is <strong>ows_Business_x0020_Unit&nbsp;</strong>since it&nbsp;returns one of the values (text)&nbsp;for the column '<strong>Business Unit</strong>' like 'Finance' and 'Marketing'.</p>
<p>However, it is not mapped to any managed property by default. So, in order to use this crawled property, we will have to map it to a managed property. Now, there are a set managed properties which&nbsp;are available&nbsp;as&nbsp;a&nbsp;refiner but are not mapped to any crawled property. We will use one of them for our purpose.&nbsp;Please&nbsp;find them below in the table.&nbsp;</p>
<table border="1" cellpadding="3">
<tbody>
<tr bgcolor="#0072c6">
<td style="text-align: center; color: #ffffff;"><span style="color: #ffffff;"><strong>Managed Property</strong></span></td>
<td style="text-align: center; color: #ffffff;"><span style="color: #ffffff;"><strong>Data Type</strong></span></td>
</tr>
<tr>
<td>RefinableDate00 - RefinableDate19</td>
<td>Date</td>
</tr>
<tr>
<td>RefinableDecimal00 - RefinableDecimal09</td>
<td>Decimal</td>
</tr>
<tr>
<td>RefinableDouble00 - RefinableDouble09</td>
<td>Double</td>
</tr>
<tr>
<td>RefinableInt00 - RefinableInt49</td>
<td>Integer</td>
</tr>
<tr>
<td>RefinableString00 - RefinableString99</td>
<td>String</td>
</tr>
</tbody>
</table>
<p>&nbsp;The data type denotes&nbsp;the type of value the managed property can map to.</p>
<p>&nbsp;</p>
<p>Since, column '<strong>Business Unit</strong>' has values of type text (string), so we will map its crawled property - <strong>ows_Business_x0020_Unit&nbsp;</strong>&nbsp;to one of the RefinableString managed property, say <strong>RefinableString04.&nbsp;</strong>&nbsp;</p>
<p><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/7558.Untitled7.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/7558.Untitled7.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/7558.Untitled7.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/7558.Untitled7.png" alt="" width="1001" height="369" border="0" /></a></strong></p>
<p>&nbsp;</p>
<p>Similarly, we do mapping for remaining columns.</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; <span style="text-decoration: underline;"><strong>Column Name</strong></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><span style="text-decoration: underline;">Crawled Property</span></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-decoration: underline;"><strong>Managed Property</strong></span></p>
<p>1.&nbsp;Business Unit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>ows_Business_x0020_Unit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>RefinableString04</strong></p>
<p>2. Community&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;ows_Community&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>RefinableString00</strong></p>
<p>3. Country&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_Country&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>RefinableString03</strong></p>
<p>4. Document Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_Document_x0020_Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>RefinableString05</strong></p>
<p>5. Languages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_Languages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>RefinableString01</strong></p>
<p>6. Technology&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ows_Technology&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>RefinableString02</strong></p>
<p>&nbsp;</p>
<p>Remember to mark each of these managed properties as - <span><label for="ctl00_ctl00_PlaceHolderContentArea_PlaceHolderMain_ctl06_ctl01_queryableCheckBox"><strong>Queryable</strong>, <strong>Retrievable </strong><span><label for="ctl00_ctl00_PlaceHolderContentArea_PlaceHolderMain_ctl08_ctl01_multivalueCheckBox">and most importantly&nbsp;<strong><label for="ctl00_ctl00_PlaceHolderContentArea_PlaceHolderMain_ctl09_ctl01_refinerTypeDropDownList">Refinable </label></strong><label for="ctl00_ctl00_PlaceHolderContentArea_PlaceHolderMain_ctl09_ctl01_refinerTypeDropDownList">in the Edit Manage Property page. Lastly, don't forget to check the <span><label for="ctl00_ctl00_PlaceHolderContentArea_PlaceHolderMain_ctl08_ctl01_multivalueCheckBox"><strong>Allow multiple values</strong> checkbox.</label></span></label></label></span></label></span></p>
<p><span><span><span><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/7571.Untitled8.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/7571.Untitled8.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/7571.Untitled8.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/7571.Untitled8.png" alt="" width="294" height="183" border="0" /></a></span></span></span></p>
<p><br />After creating above mappings, add a search refinement panel in the search results page. Edit the refinement web part and then click on <strong>'Choose Refiners...</strong>' button.&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/2110.Untitled2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/2110.Untitled2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/2110.Untitled2.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/2110.Untitled2.jpg" alt="" width="233" height="436" border="0" /></a></p>
<p>&nbsp;</p>
<p>It will open a pop-up as shown&nbsp;below, in which Add the above managed properties from the list of <em>'Available refiners'</em> into the list of <em>'Selected refiners'</em>. Mention a '<em>Display Name</em>' and&nbsp;select a '<em>Display template'</em>&nbsp; for each of the selected refiner.</p>
<p>Lets say for column '<strong>Business Unit</strong>', we have refiner <strong>RefinableString04. </strong>we&nbsp;give 'Business Unit'&nbsp; as its '<em>Display Name</em>' and&nbsp;select 'Multi-valued Refinement&nbsp;Item' as&nbsp;its '<em>Display template'</em>&nbsp;.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/3644.Untitled3.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/3644.Untitled3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/3644.Untitled3.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/3644.Untitled3.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>After&nbsp;saving changes,&nbsp;lets do a search for all documents. We get search results with refiners in our update refinement panel as shown below.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/7206.Untitled4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/7206.Untitled4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/7206.Untitled4.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/7206.Untitled4.jpg" alt="" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/7115.Untitled5.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/7115.Untitled5.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/7115.Untitled5.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/7115.Untitled5.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>As you can see,&nbsp;a refiner for each managed metadata column is now added in the refinement panel. Using it, we can further refine the search results.</p>]]></content:encoded>
    </item>
    <item>
      <title>How to rotate the items in Announcement List in SharePoint</title>
      <link>https://docs.microsoft.com/archive/blogs/aatishblogs/how-to-rotate-the-items-in-announcement-list-in-sharepoint</link>
      <pubDate>Sat, 01 Feb 2014 23:05:00 GMT</pubDate>
      <dc:creator><![CDATA[Aatish Agarwal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/aatishblogs/2014/02/01/how-to-rotate-the-items-in-announcement-list-in-sharepoint/</guid>
      <description><![CDATA[In SharePoint, Announcements list is used to&nbsp;display news items and&nbsp;other short bits of...]]></description>
      <content:encoded><![CDATA[<p style="padding-left: 60px;">In SharePoint, Announcements list is used to&nbsp;display news items and&nbsp;other short bits of information related to important activities or events.&nbsp;So, instead of sending mails to site members to share such information, one can post the same by adding an&nbsp;Announcements list app to the site.&nbsp;An Announcements list contains the following columns :- Title, Body, Expires, Created By, and Modified By. <em>Tiltle</em> column is a mandatory column so one cannot remove it.</p>
<p>The <em>'All Items'</em> view in&nbsp;an Announcements list app displays all items in the list in groups of 30 ordered by their creation date. Now,&nbsp;one may want to add a rotating&nbsp;visual effect to the list by displaying only one item at a time for a very short duration. In order to achieve this visual effect, one need to first render the list items in&nbsp;a such as way so that it would be easier at later stage to&nbsp;rotate these items.</p>
<p>&nbsp;</p>
<p>To render the list items in a custom way, one can use the <em><strong>JS Link </strong></em>property of the Announcement list webpart under <em><strong>Miscellaneous</strong></em> section as shown below. The JS Link property is used to&nbsp;refer an external JavaScript file&nbsp;to render the list items in the current view.</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/0702.jslink.gif" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/0702.jslink.gif"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/39/0702.jslink.gif" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-39/0702.jslink.gif" alt="" width="259" height="609" border="0" /></a></p>
<p><br />Add a <em><strong>JavaScript</strong></em> file to the SharePoint site and&nbsp;gives its path in&nbsp;the JS Link property. The&nbsp;JavaScript file will contain code, to&nbsp;render the Announcement list items, as shown below.</p>
<p>&nbsp;</p>
<p style="padding-left: 30px;"><em>(function () {</em><br /><em>&nbsp;&nbsp;&nbsp; /*</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp; * Initialize the variable that store the overrides objects.</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp; */</em><br /><em>&nbsp;var overrideCtx = {};</em><br /><em>&nbsp;overrideCtx.Templates = {};</em><br />&nbsp;<br /><em>//&nbsp;Assign functions or plain html strings to the Announcement list templateset objects: list header, footer and item.</em><br /><em>&nbsp;overrideCtx.Templates.Header = "&lt;hr&gt;&lt;div id='divAnnouncementList'&gt;";</em><br /><em>&nbsp;overrideCtx.Templates.Footer = "&lt;/div&gt;";</em><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><em>// This Announcement list template is assigned to the CustomItem function.</em><br /><em>&nbsp;overrideCtx.Templates.Item = CustomItem;</em><br /><em>&nbsp;overrideCtx.BaseViewID = 1;</em></p>
<p style="padding-left: 30px;"><em>// 104&nbsp;stands for&nbsp;Announcement List type</em><br /><em>&nbsp;overrideCtx.ListTemplateType = 104;</em><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /><em>// Register the template overrides.</em></p>
<p style="padding-left: 30px;"><em>SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</em></p>
<p style="padding-left: 30px;"><em>})();</em></p>
<p style="padding-left: 30px;">&nbsp;</p>
<p style="padding-left: 30px;"><em>/*</em><br /><em>&nbsp;* This function builds the output for the Announcement list item template.</em><br /><em>&nbsp;* Uses the Context object to access Announcement list data.</em><br /><em>&nbsp;*/</em></p>
<p style="padding-left: 30px;"><em>function CustomItem(ctx) {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</em><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><em>&nbsp;// Build a listitem entry for every announcement in the list.</em><br /><em>&nbsp;var ret = "&lt;div class='divListItem'&gt;&lt;h3&gt;" + ctx.CurrentItem.Title + "&lt;/h3&gt; &lt;/br&gt; " + ctx.CurrentItem.Body + "&lt;/div&gt;";</em><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /><em>&nbsp;return ret;</em></p>
<p style="padding-left: 30px;"><br /><em>}</em></p>
<p>&nbsp;</p>
<p>The above JavaScript file will generate HTML markup&nbsp;for the Announcement list in the following manner:</p>
<p style="padding-left: 30px;">&nbsp;</p>
<p style="padding-left: 30px;"><em>&lt;div id="divAnnouncementList"&gt; </em></p>
<p style="padding-left: 60px;"><em>&nbsp;&lt;div class="divListItem"&gt;</em></p>
<p style="padding-left: 90px;"><em>&nbsp;&nbsp;&lt;h3&gt;</em>Item1 Title goes here<em>&lt;/h3&gt;</em><br /><em>&nbsp;&nbsp;&lt;br&gt;&nbsp;</em>Item1 Body goes here</p>
<p style="padding-left: 60px;"><em>&nbsp;&lt;/div&gt;</em></p>
<p style="padding-left: 60px;"><em>&lt;div class="divListItem"&gt;</em></p>
<p style="padding-left: 90px;"><em>&nbsp;&nbsp;&lt;h3&gt;</em>Item2 Title goes here<em>&lt;/h3&gt;</em><br /><em>&nbsp;&nbsp;&lt;br&gt;&nbsp;</em>Item2 Body goes here</p>
<p style="padding-left: 60px;"><em>&nbsp;&lt;/div&gt;</em></p>
<p style="padding-left: 60px;"><em>&lt;div class="divListItem"&gt;</em></p>
<p style="padding-left: 90px;"><em>&nbsp;&nbsp;&lt;h3&gt;</em>Item3 Title goes here<em>&lt;/h3&gt;</em><br /><em>&nbsp;&nbsp;&lt;br&gt;&nbsp;</em>Item3 Body goes here</p>
<p style="padding-left: 60px;"><em>&nbsp;&lt;/div&gt;</em><em></em></p>
<p style="padding-left: 30px;"><em>&lt;/div&gt;</em></p>
<p>&nbsp;</p>
<p>Now, in order to rotate the list items, one need to add the <em><strong>Script Editor</strong></em> <em><strong>WebPart</strong></em> to the page. It will contain a JavaScript code for rotating the Announcement list items as shown below:</p>
<p style="padding-left: 30px;"><em>$(function () {</em></p>
<p style="padding-left: 60px;"><em>// GeNowt all items from list</em></p>
<p style="padding-left: 60px;"><em>var listItems = $(".divAnnouncementList"); </em><br /><em>listLen = listItems.length; </em><br /><em>var currentItem= 0;</em></p>
<p style="padding-left: 60px;"><em>// Fade Out all items except the first one</em></p>
<p style="padding-left: 60px;"><br /><em>for( var j=1; &nbsp;j&lt;listLen; &nbsp;j++ ) { </em><br /><em>$(".divListItem").eq(j).fadeOut(100); </em><br /><em>}</em></p>
<p style="padding-left: 60px;"><em>// Fade Out and Fade In all items in list one by one</em><br /><em>var infiniteLoop = setInterval( function() { </em><br /><em>$(".divListItem").eq(currentItem).fadeOut(100); </em><br /><em>if(currentItem == listLen-1) {</em></p>
<p style="padding-left: 90px;"><em>currentItem = 0;</em></p>
<p style="padding-left: 60px;"><em>}</em><br /><em>else {</em></p>
<p style="padding-left: 90px;"><em>currentItem++;</em></p>
<p style="padding-left: 60px;"><em>}</em></p>
<p style="padding-left: 60px;"><em>$(".divListItem").eq(currentItem).fadeIn(500); </em><br /><em>}, 10000);</em></p>
<p style="padding-left: 30px;"><em>});</em></p>
<p>&nbsp;</p>
<p>In this way, one can achieve the rotation of items&nbsp;in Announcement List.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>