tag:blogger.com,1999:blog-34912911880174857322024-02-02T20:53:02.222+05:30Sharepoint Blog By Dhaval ShahAnonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.comBlogger48125tag:blogger.com,1999:blog-3491291188017485732.post-10083010989096696772016-04-06T06:09:00.000+05:302016-08-20T06:57:44.671+05:30SharePoint Navigation was never this easy<script> if(window.location.href.indexOf('sharepoint-navigation-was-never-this.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Sharepoint-Navigation-was-never-this-easy";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: inherit;">Over the few years as the SharePoint has evolved, so as its navigation. With SharePoint 2007 it started with the simple navigation links on the left side. It evolved a bit in SharePoint 2010, with the top menu bar along with the Navigation links on the right hand side. It allowed us to customize the stylesheet with SharePoint 2013 display templates. But Navigation from end users view has never been evolved. It still takes so many clicks for the user to reach out to his documents. I recently came across wonderful google chrome extension for SharePoint Navigation - ‘<a href="http://aurorabits.com/flyview-for-sharepoint/" target="_blank">Fly view for SharePoint</a>’ available which will allow us to seamlessly navigate through your site structure in flash of seconds. </span><br />
<span style="font-family: inherit;"><br /></span>
<br />
Works with Office 365 or SharePoint Site seamlessly, All you need is google chrome. If you are looking for a server version, stay tuned over <a href="http://aurorabits.com/flyview-for-sharepoint/" target="_blank">here </a> going to be launched soon!<br />
<br />
<br />
Let’s have a quick glance on what Fly view for SharePoint is capable of doing<br />
<div>
<br /></div>
<div>
<h2 style="text-align: left;">
Navigate to multiple subsites from the root site</h2>
<div>
<br /></div>
<div>
If we have a multiple subsites managed as single repository for all the countries, you can view out directly from the fly view extension. You can even view what document libraries, lists, Images and so on from the root site of the navigation bar. And of all that you don’t have to click even once, all this is done by just a hover of the mouse!</div>
</div>
<div>
<br /></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjezKtC059VUzefEoP2crfXnnWdyEpuc-yS-6OXuY_ZjMEH9LqAL__qojS7M2N6KD4uIu7Mtr9cg5j_60rZf3Kvxs5dvX8wIz4b0hxK7UjjTH8UhKpVaMncGWRrhsmyfWCx91U8bdJ9FsU/s1600/Image1.png" imageanchor="1"><img border="0" height="354" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjezKtC059VUzefEoP2crfXnnWdyEpuc-yS-6OXuY_ZjMEH9LqAL__qojS7M2N6KD4uIu7Mtr9cg5j_60rZf3Kvxs5dvX8wIz4b0hxK7UjjTH8UhKpVaMncGWRrhsmyfWCx91U8bdJ9FsU/s640/Image1.png" width="640" /></a></div>
<div>
<h2 style="text-align: left;">
Preview and download your files without actually navigating to that document</h2>
<br />
You can actually preview your files directly from the navigation bar and save it directly to your desktop. It can preview all the supported formats for the SharePoint Preview feature. </div>
<div>
<br /></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzPtWObHXnGdQWZKUK_fTMgi0XUYFXPjp2xCuHlMA_VurrAjfRBBzI6lCDTInZ9dpq607EiKo0jeHtbLKB9u4XnYD97f5a9NX3FMZSx7nWEAGONUlllf-q1kDQpuO7KF7f0vhvsMlKlPA/s1600/Image2.png" imageanchor="1"><img border="0" height="416" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzPtWObHXnGdQWZKUK_fTMgi0XUYFXPjp2xCuHlMA_VurrAjfRBBzI6lCDTInZ9dpq607EiKo0jeHtbLKB9u4XnYD97f5a9NX3FMZSx7nWEAGONUlllf-q1kDQpuO7KF7f0vhvsMlKlPA/s640/Image2.png" width="640" /></a></div>
<div>
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHr1grNWCtx0HPvWNuUnzU_X_u3vnkxlaZqlAb84rlPKN4xwKo6xAJ-XZbPyNmxfH6vXnMQAp2s7oW3MdmttKr2jUHge1PKfDOTOWzDLQTl_fMQMBh1rHvG-tKk5_EnOAw1I-7Qi81Xfw/s1600/Image3.png" imageanchor="1"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHr1grNWCtx0HPvWNuUnzU_X_u3vnkxlaZqlAb84rlPKN4xwKo6xAJ-XZbPyNmxfH6vXnMQAp2s7oW3MdmttKr2jUHge1PKfDOTOWzDLQTl_fMQMBh1rHvG-tKk5_EnOAw1I-7Qi81Xfw/s640/Image3.png" width="640" /></a></div>
<div>
<br />
<h2 style="text-align: left;">
View/Edit Metadata of the documents on the Fly </h2>
<br />
With each document or the content you can view or edit the metadata properties directly using the Preview feature of the SharePoint.</div>
<div>
<br /></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWnU5qgCTVBuUuzUFhOfezmT5c7DFFKbrwhMrqVEcq7ZTxdN_-PnAIccoC5Ky4bfpIjkWKbutM6Lav6kfCbZUTFBI-hMWPWUVE2-2pN0JfRwX8MXoc6sgodk3hT4TTPHIbnFt96F05av0/s1600/Image4.png" imageanchor="1"><img border="0" height="336" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWnU5qgCTVBuUuzUFhOfezmT5c7DFFKbrwhMrqVEcq7ZTxdN_-PnAIccoC5Ky4bfpIjkWKbutM6Lav6kfCbZUTFBI-hMWPWUVE2-2pN0JfRwX8MXoc6sgodk3hT4TTPHIbnFt96F05av0/s640/Image4.png" width="640" /></a></div>
<div>
<br /></div>
<div>
<div>
<br /></div>
<h2 style="text-align: left;">
Mark Favourites for what’s dear to you</h2>
<div>
<br /></div>
<div>
Often we have frequently visited document libraries/folder or the documents in SharePoint. You can mark that as favourites or find out from your History List!</div>
<div>
<br /></div>
<div>
All you just have to do is mark the Star button and Fly View will remember it for you in the Favourites List.</div>
</div>
<div>
<br /></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMjkQhis_AKDh8XAkgmR6UKduCxmfnT3P_lZP-8A_XRf23MZj11Grh3OZLhxK4XUxJBf9xmGSGSRXL-azXkyHPavgbp6p3NDxevnhGDqA_t3zRUX7tGM8zxDaGeRbf2puMdcuAqqusvdA/s1600/Image5.png" imageanchor="1"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMjkQhis_AKDh8XAkgmR6UKduCxmfnT3P_lZP-8A_XRf23MZj11Grh3OZLhxK4XUxJBf9xmGSGSRXL-azXkyHPavgbp6p3NDxevnhGDqA_t3zRUX7tGM8zxDaGeRbf2puMdcuAqqusvdA/s640/Image5.png" width="582" /></a></div>
<div>
<br /></div>
<div>
Here are my favourite links or documents,</div>
<div>
<br /></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvWI9SiIfpYuIuVEujbPjteDR_eaixd4Jwga6MyWJYsWnO4LzT5qT_bborvbIBGifB2LKc2YcYY3K8PoRN4-V0WHqiGLRUUsXUHGuH_Zztle-g6UMgJ57oLWSC9cDL5Xw93PL1NtwHQ98/s1600/Image6.png" imageanchor="1"><img border="0" height="142" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvWI9SiIfpYuIuVEujbPjteDR_eaixd4Jwga6MyWJYsWnO4LzT5qT_bborvbIBGifB2LKc2YcYY3K8PoRN4-V0WHqiGLRUUsXUHGuH_Zztle-g6UMgJ57oLWSC9cDL5Xw93PL1NtwHQ98/s640/Image6.png" width="640" /></a></div>
<div>
<br /></div>
<div>
<div>
It even tracks your history for all dates!</div>
<div>
<br /></div>
<h2 style="text-align: left;">
Fly View is more than the features</h2>
<div>
<ul style="text-align: left;">
<li>Navigation is lightning fast! It can easily navigate through the multiple subsites in milliseconds! </li>
<li>You can easily plug and play the extension from the <a href="https://chrome.google.com/webstore/detail/flyview-for-sharepoint-an/blmfdjjomajmejdkdbcabhgfonkhfaam" target="_blank">google chrome</a>.</li>
<li>Imagine the number of hours you can save with the use of this extension. </li>
</ul>
</div>
</div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFrQ0xT0WCvmoVUVcTviZzrSt85X1uu1HRqDiTt6C7Cd6qxUG3OXvX4iw4itMfszxuGkvs1X8Mp2UTrw0x8paOHWjtK3S_4MlU2mivybCXYMCO9PScKqsuJJRvX_rrBGjGhJYaC4-ikNk/s1600/Image7.png" imageanchor="1"><img border="0" height="396" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFrQ0xT0WCvmoVUVcTviZzrSt85X1uu1HRqDiTt6C7Cd6qxUG3OXvX4iw4itMfszxuGkvs1X8Mp2UTrw0x8paOHWjtK3S_4MlU2mivybCXYMCO9PScKqsuJJRvX_rrBGjGhJYaC4-ikNk/s640/Image7.png" width="640" /></a></div>
<div>
<h2 style="text-align: left;">
Did you know? </h2>
<div>
This Product has been under development by Developers at <a href="http://aurorabits.com/" target="_blank">Aurora Bits</a> for around 2 years just to make it right. Developers definitely deserves a kudos for their hard work and dedication.</div>
<div>
<br /></div>
<h2 style="text-align: left;">
It can always be better!</h2>
<div>
This has been so far my best product or app for the SharePoint but there are some enhancements which I look forward to</div>
<div>
•<span class="Apple-tab-span" style="white-space: pre;"> </span>Similar App for the other browsers especially Microsoft Edge or Internet Explorer</div>
<div>
•<span class="Apple-tab-span" style="white-space: pre;"> </span>Good to have a quick view of the List Data and schema</div>
<div>
•<span class="Apple-tab-span" style="white-space: pre;"> </span>Ability to Customize the look and feel of the fly view as per branding of the site</div>
<div>
<br /></div>
<div>
Do you have any more suggestions? Please feel free to comment and let us know!</div>
<div>
<br /></div>
<div>
<a href="http://bit.ly/flyview" target="_blank">Download Fly View for SharePoint in Chrome from Chrome Store</a></div>
</div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-60342081973943476122015-09-15T16:24:00.000+05:302016-08-20T06:53:15.538+05:30Get Data in JQuery DataTable from SharePoint List using $skip, $top, $inlinecount, $orderby parameters<script> if(window.location.href.indexOf('get-data-in-jquery-datatable-from.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Get-Data-JQuery-DataTable-SharePoint%20List";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">In this article we will show how you can load the data from SharePoint List using REST API into JQuery DataTable using the Ajax Pagination.<br /><br />In my <a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/load-data-in-jquery-datatable-from.html">previous article</a> I showed you how to retrieve the data from the SharePoint list using REST API but it retrieves all the data from the list at once which is good for the list having less number of items/records but what if the list has large number of items as SharePoint client object model supports retrieval of 5000 items at once. </span></div>
<div dir="ltr" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div dir="ltr" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">In this case the SharePoint REST API provides the $TOP, $ORDERBY, $SKIP AND $INLINECOUNT parameters to retrieve only the records required to show on one page.</span></div>
<div trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184; width: 667px;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div align="center" class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;">
<b><span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">Parameter<o:p></o:p></span></b></div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div align="center" class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;">
<b><span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">Example<o:p></o:p></span></b></div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div align="center" class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;">
<b><span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">Description<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">$skip<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">$skip=n<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">Returns entries
skipping the first <i><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">n</span></i> entries,
according to the <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">$orderby</span></b> parameter<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">$top<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">$top=n<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">Returns only the top <i><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">n</span></i> entries, according to the <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">$orderby</span></b> and <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">$skip</span></b> parameters
<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">$inlinecount<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">$inlinecount=allpages<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span class="apple-converted-space"><span style="background: #FEFEFE; color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt;">It will
add the </span></span><strong style="outline: 0px;"><span style="background: #FEFEFE; border: none windowtext 1.0pt; color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-border-alt: none windowtext 0in; padding: 0in;">__count</span></strong><span class="apple-converted-space"><span style="background: #FEFEFE; color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt;"> </span><span style="background: #FEFEFE; color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt;">property to
the results which indicates the total number of entries which match the<span class="apple-converted-space"> </span></span><strong style="outline: 0px;"><span style="border: none windowtext 1.0pt; font-family: "Arial","sans-serif"; mso-border-alt: none windowtext 0in; padding: 0in;">$filter</span></strong><span class="apple-converted-space"> expression<span class="apple-converted-space"> </span></span></span><span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">$orderby<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">$orderby =
CustomerName<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top"><div class="MsoNormal" style="line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span class="apple-converted-space"><span style="background: #FEFEFE; color: #333333; font-family: "Arial","sans-serif"; font-size: 10.5pt;">Returns the
records ordered by the <b>CustomerName</b>
field<o:p></o:p></span></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: yellow;">Example: http://server/siteurl/_vti_bin/listdata.svc/Customers?$ $select=Id,CustomerName,Address,HomePhone,MobileNumber,Email,Organization,RolesValue &$inlinecount=allpages&skip=2&$top=2</span><br /><br />We will use these parameters to retrieve the data required and bind it to our JSON<br /><br />We will use the same customers list we used in my previous article series </span><ul>
<li><span style="font-family: Arial, Helvetica, sans-serif;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/load-data-in-jquery-datatable-from.html">Load the Data in JQuery DataTable from SharePoint List using REST API</a> </span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/custom-dropdown-column-filter-in-jquery.html">Custom DropDown Column Filter in JQuery Datatable</a> </span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/free-text-search-on-column-in-jquery.html">Free Text Search on Column in JQuery Datatable</a> </span></li>
</ul>
<span style="font-family: Arial, Helvetica, sans-serif;">I have created the CustomerJqueryDataTableAjax.js and CustomerJqueryDatatableAjax.txt for this article, which you can download it at the end of this post.<br /><br />The rest query to get the top 10 items from the customers list would look like this,<br /><br /><span style="background-color: yellow;">../_vti_bin/listdata.svc/Customers?$select=Id,CustomerName,Address,HomePhone,MobileNumber,Email,Organization,RolesValue&$inlinecount=allpages&$top=10</span><br /><br />Now in order to support pagination in DataTable the json results should have values of “sEcho”, “iTotalRecords”, “iTotalDisplayRecords in the json results which is not provided by the SharePoint by default so we will manipulate it in the fnServerData function of the JQuery DataTable.<br /></span><br /><div class="MsoNormal" style="text-align: left;">
<a name='more'></a><br />
We will place the below script in the fnServerData function of the JQuery DataTable</div>
<br /><pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;"><code style="color: black; word-wrap: normal;"> $.ajax({
"dataType": "json",
"type": "GET",
"url": restQuery,
"data": aoData,
"success": function (json) {
json["sEcho"] = oSettings.iDraw.toString();
json["iTotalRecords"] = json.d.__count;
json["iTotalDisplayRecords"] = json.d.__count;
fnCallback(json);
}
});
</code></pre>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif";"><br /></span></div>
<div class="MsoNormal">
</div>
<span style="font-family: Arial, Helvetica, sans-serif;">For sorting, the sort column and the sort direction are stored in the oSettings.aaSorting property<br /></span><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr><td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 467.5pt;" valign="top" width="623"><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Arial, Helvetica, sans-serif;">var sortCol =
oSettings.aaSorting[0][0];<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Arial, Helvetica, sans-serif;">var sortDir =
oSettings.aaSorting[0][1];<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">So now we can include the sorting as well, so lets say we want to sort based on the CustomerName we can have the REST Query as,<br /><br /><span style="background-color: yellow;">../_vti_bin/listdata.svc/Customers?$select=Id,CustomerName,Address,HomePhone,MobileNumber,Email,Organization,RolesValue&$inlinecount=allpages&$top=10&$orderby=CustomerName</span><br /><br />Below will be my entire CustomerJqueryDatatableAjax.txt code,</span><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Arial","sans-serif";"><br /></span></div>
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <script type="text/javascript" src="../SiteAssets/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
<link href="https://cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript" src="../SiteAssets/CustomerJqueryDatatableAjax.js"></script>
</br />
<hr />
</br />
<div id="CustomerPanel">
<table style="width: 100%;">
<tr>
<td>
<table id="CustomerTable" style="width: 100%">
<thead>
<tr>
<th>Name</th>
<th>Address</th>
<th>Home Phone</th>
<th>Mob No.</th>
<th>Email</th>
<th>Organization</th>
<th>Role</th>
</tr>
</thead>
</table>
</td>
</tr>
</table>
</div>
</code></pre>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;">Below will be my entire CustomerJqueryDatatableAjax.js code,</span></div>
<br />
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;"><code style="color: black; word-wrap: normal;"> $(document).ready(function() {
var rowCount= 5;
$('#CustomerTable').dataTable({
"sProcessing": "Retrieving Customers...",
"bSort": true,
"bLengthChange": false,
"bFilter": false,
"iDisplayLength": rowCount,
"bServerSide": true,
"sPaginationType": "full_numbers",
"sAjaxDataProp": "d.results",
"bAutoWidth": false,
"aaSorting": [[1, 'desc']],
"aoColumnDefs": [
{
"aTargets": [0],
"mData": function (source, type, val) {
return source.CustomerName
}
},
{
"aTargets": [1],
"mData": function (source, type, val) {
return source.Address }
},
{
"aTargets": [2],
"mData": function (source, type, val) {
return source.HomePhone}
},
{
"aTargets": [3],
"mData": function (source, type, val) {
return source.MobileNumber}
},
{
"aTargets": [4],
"mData": function (source, type, val) {
return source.Email}
},
{
"aTargets": [5],
"mData": function (source, type, val) {
return source.Organization}
},
{
"aTargets": [6],
"mData": function (source, type, val) {
return source.RolesValue}
}
],
"fnServerData": function (sSource, aoData, fnCallback, oSettings) {
var restQuery = "../_vti_bin/listdata.svc/Customers?$select=Id,CustomerName,Address,HomePhone,MobileNumber,Email,Organization,RolesValue&$inlinecount=allpages&$top=" + rowCount;
if (oSettings._iDisplayStart > 0) {
restQuery = restQuery + "&$skip=" + oSettings._iDisplayStart
}
var restSortParams = "&$orderby=";
var sortCol = oSettings.aaSorting[0][0];
var sortDir = oSettings.aaSorting[0][1];
if (sortCol == 0) {
restSortParams = restSortParams + "CustomerName";
}
else if (sortCol == 1) {
restSortParams = restSortParams + "Address";
}
else if (sortCol == 2) {
restSortParams = restSortParams + "HomePhone";
}
else if (sortCol == 3) {
restSortParams = restSortParams + "MobileNumber";
}
else if (sortCol == 4) {
restSortParams = restSortParams + "Email";
}
else if (sortCol == 5) {
restSortParams = restSortParams + "Organization";
}
else if (sortCol == 6) {
restSortParams = restSortParams + "RolesValue";
}
restSortParams = restSortParams + " " + sortDir;
restQuery = restQuery + restSortParams;
$.ajax({
"dataType": "json",
"type": "GET",
"url": restQuery,
"data": aoData,
"success": function (json) {
json["sEcho"] = oSettings.iDraw.toString();
json["iTotalRecords"] = json.d.__count;
json["iTotalDisplayRecords"] = json.d.__count;
fnCallback(json);
}
});
}
});
});
</code></pre>
<span style="font-family: "Arial","sans-serif";"><br /></span>
<span style="font-family: "Arial","sans-serif";">Happy SharePointing !</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-53258214199855781892015-09-14T20:48:00.001+05:302016-08-20T06:52:54.230+05:30Free Text Search on Column in JQuery Datatable<script> if(window.location.href.indexOf('free-text-search-on-column-in-jquery.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Free-Text-Search-Column-JQuery-Datatable";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
In my <a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/load-data-in-jquery-datatable-from.html">previous article</a> I showed you how to retrieve the data from the SharePoint list using REST api and bind it to the JQuery Datatable. And In <a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/custom-dropdown-column-filter-in-jquery.html">another article</a> I showed how you can perform a column filter using the dropdown. Jquery DataTable provides a free text search but it is for the entire table this article will help you implement the free text search on the particular column.<br />
<br />
Articles on the Jquery DataTable and SharePoint REST API <br />
<ul><a href="https://www.blogger.com/blogger.g?blogID=3491291188017485732" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a>
<li><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/load-data-in-jquery-datatable-from.html">Load the Data in JQuery DataTable from SharePoint List using REST API</a> </li>
<li><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/custom-dropdown-column-filter-in-jquery.html">Custom DropDown Column Filter in JQuery Datatable</a> </li>
<li><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/free-text-search-on-column-in-jquery.html">Free Text Search on Column in JQuery Datatable</a> </li>
<li><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/get-data-in-jquery-datatable-from.html">Get Data in JQuery DataTable from SharePoint List using $skip, $top, $inlinecount, $orderby parameters</a> </li>
</ul>
<br />
<a href="https://www.blogger.com/blogger.g?blogID=3491291188017485732" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a>In this article we will show how you can perform a free text search on the custom column particularly on the JQuery DataTable which retrieved the data from the SharePoint List using the REST Api.<br />
<br />
We will use the same customers list we used in my previous article and perform a free text search on the Address column.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://www.blogger.com/blogger.g?blogID=3491291188017485732" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<br />
<a href="https://www.blogger.com/blogger.g?blogID=3491291188017485732" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNzl6jtVFaIbHBAHPq4zE2afkgwmntaBGUwAPSxquN2IF-7lNGIzmZk-t3ndu_lNrGeiPLR8hfWvx9ejC0M_lTvCR4WAhmfEJk_dBvMgv5Up2L2lEJXe4ixZneQnWFaEClqP9Q1NwWTU8/s1600/Customer+List+SharePoint.png"><img border="0" height="283" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNzl6jtVFaIbHBAHPq4zE2afkgwmntaBGUwAPSxquN2IF-7lNGIzmZk-t3ndu_lNrGeiPLR8hfWvx9ejC0M_lTvCR4WAhmfEJk_dBvMgv5Up2L2lEJXe4ixZneQnWFaEClqP9Q1NwWTU8/s640/Customer+List+SharePoint.png" width="640" /></a><br />
<br />
<a name='more'></a><br /><br />
In CustomerJqueryDatatable.txt add a row in fitler panel with the textbox for filter on address where user will input the search keywords.<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <tr>
<td style="width:50%;">Address : <input type="text" id="txtAddress"></input></td>
<td style="width:50%;"></td>
</tr>
</code></pre>
<br />
Go to CustomerJqueryDatatable.js file and add the below code to add a filter search on the Address column. <br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> /*
Free Text Search on the Address column(index is 2)
*/
var AddressColumn = this.api().columns(2);
$("#txtAddress").on('keyup change', function() {
if (AddressColumn.search() !== this.value) {
AddressColumn.search(this.value).draw();
}
});
</code></pre>
<br />
This will perform a free text search on the address column as shown below <br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFPgoEcA4eE8XquErJo5V86M1aZnrQwmndd5GvhtJAgTyJcdS7eHWdw4F8DiZTlVFPRumlcPpRuNUcaPKo5RlXG0AS8Jcm7EB5bG7qVvJIkT6lNpbyUCSMmaxTZJckBX3t_CEh5HCirg0/s1600/JQuery+Datatable+Custom+Column+Filter+3.png"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFPgoEcA4eE8XquErJo5V86M1aZnrQwmndd5GvhtJAgTyJcdS7eHWdw4F8DiZTlVFPRumlcPpRuNUcaPKo5RlXG0AS8Jcm7EB5bG7qVvJIkT6lNpbyUCSMmaxTZJckBX3t_CEh5HCirg0/s640/JQuery+Datatable+Custom+Column+Filter+3.png" /></a><br />
<br />
<br />
Happy SharePointing!</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-705736058414604642015-09-14T20:43:00.001+05:302016-08-20T06:52:43.352+05:30Custom DropDown Column Filter in JQuery Datatable<script> if(window.location.href.indexOf('custom-dropdown-column-filter-in-jquery.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Custom-DropDown-Column-Filter-JQuery-Datatable";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;"><br />In this article we will show how you can add the custom column filters on the JQuery DataTable which retrieved the data from the SharePoint List using the REST Api.<br /><br /> In my <a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/load-data-in-jquery-datatable-from.html">previous article</a> I showed you how to retrieve the data from the SharePoint list using REST api and bind it to the JQuery Datatable.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2px;">Articles on the Jquery DataTable and SharePoint REST API </span><br />
<ul style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2px; margin: 0.5em 0px; padding: 0px 2.5em;"><a href="https://www.blogger.com/blogger.g?blogID=3491291188017485732" imageanchor="1" style="clear: right; color: #5e9a45; float: right; margin-bottom: 1em; margin-left: 1em; text-decoration: none;"></a>
<li style="border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/load-data-in-jquery-datatable-from.html" style="color: #3778cd;">Load the Data in JQuery DataTable from SharePoint List using REST API</a></li>
<li style="border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/custom-dropdown-column-filter-in-jquery.html" style="color: #5e9a45; text-decoration: none;">Custom DropDown Column Filter in JQuery Datatable</a></li>
<li style="border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/free-text-search-on-column-in-jquery.html" style="color: #5e9a45; text-decoration: none;">Free Text Search on Column in JQuery Datatable</a></li>
<li style="border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/get-data-in-jquery-datatable-from.html" style="color: #5e9a45; text-decoration: none;">Get Data in JQuery DataTable from SharePoint List using $skip, $top, $inlinecount, $orderby parameters</a></li>
</ul>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /> We will use the same customers list we used in my previous article except that we will add two more columns to it viz, ‘Organization’ and ‘Role’. I have assigned some data to these columns for the existing records.</span><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNzl6jtVFaIbHBAHPq4zE2afkgwmntaBGUwAPSxquN2IF-7lNGIzmZk-t3ndu_lNrGeiPLR8hfWvx9ejC0M_lTvCR4WAhmfEJk_dBvMgv5Up2L2lEJXe4ixZneQnWFaEClqP9Q1NwWTU8/s1600/Customer+List+SharePoint.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="283" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNzl6jtVFaIbHBAHPq4zE2afkgwmntaBGUwAPSxquN2IF-7lNGIzmZk-t3ndu_lNrGeiPLR8hfWvx9ejC0M_lTvCR4WAhmfEJk_dBvMgv5Up2L2lEJXe4ixZneQnWFaEClqP9Q1NwWTU8/s640/Customer+List+SharePoint.png" width="640" /></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">Make sure you add the organization and Role column in the js file to be retrieved from the SharePoint.</span><br />
<div class="MsoNormal">
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code><span style="color: black; font-family: Arial, Helvetica, sans-serif; word-wrap: normal;"> tableContent += '<td>' + objArray[i].Organization + '</td>';
tableContent += '<td>' + objArray[i].RolesValue + '</td>'; </span></code><span style="word-wrap: normal;"><span style="font-family: Arial, Helvetica, sans-serif;">
</span></span></pre>
<span style="font-family: Arial, Helvetica, sans-serif;">Let’s pick up our CustomerJqueryDatatable.txt and add the panel to hold our dropdowns for organization and roles column. You can place this code above our CustomerPanel div.</span><br />
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"><span style="font-family: Arial, Helvetica, sans-serif;"> <div id="filterPnl">
<table style="width:100%">
<tr>
<td style="width:50%;">Organization : <span id="orgDropDown"></span></td>
<td style="width:50%;">Roles : <span id="roleDropdown"></span></td>
</tr>
</table>
</div>
</br /><hr /> </br /> </span></code></pre>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">CustomerJqueryDatatable.txt should look something like this now.</span><br />
<div class="MsoNormal">
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"><span style="font-family: Arial, Helvetica, sans-serif;"> <script type="text/javascript" src="../SiteAssets/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
<link href="https://cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript" src="../SiteAssets/CustomerJqueryDatatable.js"></script>
<div id="filterPnl">
<table style="width:100%">
<tr>
<td style="width:50%;">Organization : <span id="orgDropDown"></span></td>
<td style="width:50%;">Roles : <span id="roleDropdown"></span></td>
</tr>
</table>
</div>
</br /><hr /> </br />
<div id="CustomerPanel">
<table style="width: 100%;">
<tr>
<td>
<div id="CustomerGrid" style="width: 100%"></div>
</td>
</tr>
</table>
</div> </span></code></pre>
<span style="font-family: Arial, Helvetica, sans-serif;"><br />Open the CustomerJqueryDatatable.js file in SharePoint Designer. Now here we will use the initComplete function and this.api().columns(column index)of the JQuery DataTable to get the column values for the organization and roles to bind it to our dropdown.</span><br />
<a name='more'></a><span style="font-family: Arial, Helvetica, sans-serif;"><br />this.api().columns(6) retrieves the column at the 6th index of our DataTable which will be our Organization.</span><br />
<div>
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code><span style="color: black; font-family: Arial, Helvetica, sans-serif; word-wrap: normal;"> var OrganizationColumn = this.api().columns(6);
var organizationDropDown = $('<select><option value=""></option></select>')
.appendTo($("#orgDropDown"))
.on('change', function() {
var val = $.fn.dataTable.util.escapeRegex(
$(this).val()
);
OrganizationColumn.search(val ? '^' + val + '$' : '', true, false).draw();
}); </span></code><span style="word-wrap: normal;"><span style="font-family: Arial, Helvetica, sans-serif;">
</span></span></pre>
</div>
</div>
</div>
</div>
</div>
<span style="font-family: Arial, Helvetica, sans-serif;">Now once we have added the dropdown in our HTML we will get the unique values which is stored in the columns.data()</span><br />
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"><span style="font-family: Arial, Helvetica, sans-serif;"> //get the unique value for the organization column
var orgDrpDwnValues = unique(OrganizationColumn.data());
$(orgDrpDwnValues).each(function(d, j) {
organizationDropDown.append('<option value="' + j + '">' + j + '</option>');
});
</span></code></pre>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Repeat the above two steps again for the Roles column as well.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">Your CustomerJqueryDatatable.js file should look like below now.</span><br />
<div>
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"><span style="font-family: Arial, Helvetica, sans-serif;"> $(document).ready(function() {
var RestUrl = "../_vti_bin/listdata.svc/Customers";
$.ajax({
url: RestUrl,
method: "GET",
headers: {
"accept": "application/json;odata=verbose",
},
success: function(data) {
if (data.d.results.length > 0) {
//construct HTML Table from the JSON Data
$('#CustomerGrid').append(GenerateTableFromJson(data.d.results));
//Bind the HTML data with Jquery DataTable
var oTable = $('#CustomerRecordsTable').dataTable({
initComplete: function() {
/*
Custom Column Filter for Organization
*/
//the index of the organization column in datatable is 6
var OrganizationColumn = this.api().columns(6);
var organizationDropDown = $('<select><option value=""></option></select>')
.appendTo($("#orgDropDown"))
.on('change', function() {
var val = $.fn.dataTable.util.escapeRegex(
$(this).val()
);
OrganizationColumn.search(val ? '^' + val + '$' : '', true, false).draw();
});
//get the unique value for the organization column
var orgDrpDwnValues = unique(OrganizationColumn.data());
$(orgDrpDwnValues).each(function(d, j) {
organizationDropDown.append('<option value="' + j + '">' + j + '</option>');
});
/*
Custom Column Filter for Role
*/
//the index of the Role column in datatable is 7
var RoleColumn = this.api().columns(7);
var roleDropDown = $('<select><option value=""></option></select>')
.appendTo($("#roleDropdown"))
.on('change', function() {
var val = $.fn.dataTable.util.escapeRegex(
$(this).val()
);
RoleColumn.search(val ? '^' + val + '$' : '', true, false).draw();
});
//get the unique value for the organization column
var RoleDrpDwnValues = unique(RoleColumn.data());
$(RoleDrpDwnValues).each(function(d, j) {
roleDropDown.append('<option value="' + j + '">' + j + '</option>');
});
},
"iDisplayLength": 5,
"aLengthMenu": [
[5, 10, 30, 50],
[5, 10, 30, 50]
],
"sPaginationType": "full_numbers"
});
} else {
$('#CustomerGrid').append("<span>No Customer Records Found.</span>");
}
},
error: function(data) {
$('#CustomerGrid').append("<span>Error Retreiving Customer Records. Error : " + JSON.stringify(data) + "</span>");
}
});
function GenerateTableFromJson(objArray) {
var tableContent = '<table id="CustomerRecordsTable" style="width:100%"><thead><tr><td> №</td>' + '<td>Customer Name</td>' + '<td>Address</td>' + '<td>Home Phone</td>' + '<td>Mobile Number</td>' + '<td>Email</td>' + '<td>Organization</td>' + '<td>Role</td>' + '</tr></thead><tbody>';
for (var i = 0; i < objArray.length; i++) {
tableContent += '<tr>';
tableContent += '<td>' + objArray[i].Id + '</td>';
tableContent += '<td>' + objArray[i].CustomerName + '</td>';
tableContent += '<td>' + objArray[i].Address + '</td>';
tableContent += '<td>' + objArray[i].HomePhone + '</td>';
tableContent += '<td>' + objArray[i].MobileNumber + '</td>';
tableContent += '<td>' + objArray[i].Email + '</td>';
tableContent += '<td>' + objArray[i].Organization + '</td>';
tableContent += '<td>' + objArray[i].RolesValue + '</td>';
tableContent += '</tr>';
}
return tableContent;
}
function unique(list) {
var result = [];
$.each(list[0], function(i, e) {
if ($.inArray(e, result) == -1) result.push(e);
});
return result;
}
});
</span></code></pre>
</div>
<div>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">Once you save this file and refresh the page where you have added the content editor web part you will be able to see the data loaded in the JQuery DataTable. As you can see it organization and Roles custom filters are added as below.</span><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgn3yqTxx2VqHqN862OQiWqo4bkSsk6oXJ9NIU4ufpO_jNEjo0yFhEyCMepWkqTMkyG20dst3Sgw5n91KCUtV4HL1kJyHXbBVWoKDI0OrUDAwEvKoZONgcre-HxGXtDM3ygN8eEplknyw/s1600/JQuery+Datatable+Custom+Column+Filter+1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="284" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgn3yqTxx2VqHqN862OQiWqo4bkSsk6oXJ9NIU4ufpO_jNEjo0yFhEyCMepWkqTMkyG20dst3Sgw5n91KCUtV4HL1kJyHXbBVWoKDI0OrUDAwEvKoZONgcre-HxGXtDM3ygN8eEplknyw/s640/JQuery+Datatable+Custom+Column+Filter+1.jpg" width="640" /></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;">On selecting the filters it will filter the results in DataTable.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUQE7OMayV5E4acu1XaXnuxyhyQRA3iHELYUVtnzcW7RfTyWwnhJAQS8cerO7-iPK3Xd2nZfCtr3tJABMlk-vvY_CBJ6cjEI97faK7hDy1RJzJb1_k_Xc2Wpi0KBVUFe0JEa7_jF3yL74/s1600/JQuery+Datatable+Custom+Column+Filter+2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUQE7OMayV5E4acu1XaXnuxyhyQRA3iHELYUVtnzcW7RfTyWwnhJAQS8cerO7-iPK3Xd2nZfCtr3tJABMlk-vvY_CBJ6cjEI97faK7hDy1RJzJb1_k_Xc2Wpi0KBVUFe0JEa7_jF3yL74/s640/JQuery+Datatable+Custom+Column+Filter+2.jpg" width="640" /></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /><br /><br /> <br /><br /><br /><br />Happy SharePointing !</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-43330169142171258422015-09-04T15:54:00.000+05:302016-08-20T06:52:31.222+05:30Load the Data in JQuery DataTable from SharePoint List using REST API<script> if(window.location.href.indexOf('load-data-in-jquery-datatable-from.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Load-Data-JQuery-DataTable-from-SharePoint-List-REST-API";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"headline" : "Load the Data in JQuery DataTable from SharePoint List using REST API",
"keywords" : "JQuery, JQuery DataTable, Office 365, REST, Sharepoint",
"name" : "Load the Data in JQuery DataTable from SharePoint List using REST API",
"author" : {
"@type" : "Person",
"name" : "Dhaval Shah"
},
"datePublished" : "2015-09-04",
"image" : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMHYzoP3AGkeib3XqAGn7aIiIcAtLd7lkCHjW7LDAPgsbXmh_1GTqzAiOcDNDHcU6beZWJAi86-WLr5ZW8uQGdYyIrq1JIkl2s3TkOTxyxqc6ygKJNLRII6yYnX5jsgHSpjv5_IZvdclg/s640/Customer+SharePoint.png",
"articleSection" : "In this article I will show how you can retrieve the data from the SharePoint List using the REST Api and bind it to the JQuery DataTable.",
"articleBody" : "JQuery DataTable is an excellent plugin tool built on JQuery JavaScript library to build an HTML table with lot of advanced interaction controls like pagination, sorting, searching, etc. </SPAN><BR/>\n\n<span style=\"font-family: Arial, Helvetica, sans-serif;\">You can download the js file for the data table from <a href=\"https://www.datatables.net/\" target=\"_blank\">here",
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "5",
"reviewCount" : "5"
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">In this article I will show how you can retrieve the data from the SharePoint List using the REST Api and bind it to the JQuery DataTable.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">JQuery DataTable is an excellent plugin tool built on JQuery JavaScript library to build an HTML table with lot of advanced interaction controls like pagination, sorting, searching, etc. </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">You can download the js file for the data table from <a href="https://www.datatables.net/" target="_blank">here</a></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2px;">Articles on the Jquery DataTable and SharePoint REST API </span><br />
<ul style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2px; margin: 0.5em 0px; padding: 0px 2.5em;"><a href="https://www.blogger.com/blogger.g?blogID=3491291188017485732" imageanchor="1" style="clear: right; color: #5e9a45; float: right; margin-bottom: 1em; margin-left: 1em; text-decoration: none;"></a>
<li style="border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/load-data-in-jquery-datatable-from.html" style="color: #3778cd;">Load the Data in JQuery DataTable from SharePoint List using REST API</a></li>
<li style="border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/custom-dropdown-column-filter-in-jquery.html" style="color: #5e9a45; text-decoration: none;">Custom DropDown Column Filter in JQuery Datatable</a></li>
<li style="border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/free-text-search-on-column-in-jquery.html" style="color: #5e9a45; text-decoration: none;">Free Text Search on Column in JQuery Datatable</a></li>
<li style="border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;"><a href="http://kalashnikovtechnoblogs.blogspot.in/2015/09/get-data-in-jquery-datatable-from.html" style="color: #5e9a45; text-decoration: none;">Get Data in JQuery DataTable from SharePoint List using $skip, $top, $inlinecount, $orderby parameters</a></li>
</ul>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">For the purpose of the demo, I have created a customer list with the below columns and loaded it with some dummy data.</span><br />
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMHYzoP3AGkeib3XqAGn7aIiIcAtLd7lkCHjW7LDAPgsbXmh_1GTqzAiOcDNDHcU6beZWJAi86-WLr5ZW8uQGdYyIrq1JIkl2s3TkOTxyxqc6ygKJNLRII6yYnX5jsgHSpjv5_IZvdclg/s1600/Customer+SharePoint.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Customer SharePoint List" border="0" height="276" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMHYzoP3AGkeib3XqAGn7aIiIcAtLd7lkCHjW7LDAPgsbXmh_1GTqzAiOcDNDHcU6beZWJAi86-WLr5ZW8uQGdYyIrq1JIkl2s3TkOTxyxqc6ygKJNLRII6yYnX5jsgHSpjv5_IZvdclg/s640/Customer+SharePoint.png" title="Customer SharePoint List" width="640" /></a></div>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">First of all we will create 2 files viz CustomerJqueryDatatable.js and CustomerJqueryDatatable.txt files and place it under the Site Assets Library. Also make sure you add the jquery js file in your SiteAssets/js folder.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Add the content editor web part on your page and give the path of the CustomerJqueryDatatable.txt file from the Site Assets Library and Save/Publish the Page.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Open the CustomerJqueryDatatable.txt file in SharePoint Designer and add the reference to the “jquery-1.11.0.min.js”, “jquery.dataTables.min.js” ,”jquery.dataTables.min.cs” and “CustomerJqueryDatatable.js” file in the CustomerJqueryDatatable.txt file.</span><br />
<br />
<div>
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <script type="text/javascript" src="../SiteAssets/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
<link href="https://cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript" src="../SiteAssets/CustomerJqueryDatatable.js"></script>
</code></pre>
<br />
<a name='more'></a><br />
<br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 11.0pt; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;">Add
the below HTML content in the CustomerJqueryDatatable.txt file. This will act
as a placeholder for your jquery datatable</span><br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <div id="CustomerPanel">
<table style="width: 100%;">
<tr>
<td>
<div id="CustomerGrid" style="width: 100%"></div>
</td>
</tr>
</table>
</div>
</code></pre>
<div class="MsoNormal">
<br />
Open the CustomerJqueryDatatable.js file and add the below
code<o:p></o:p></div>
<div class="MsoNormal">
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> $(document).ready(function() {
var RestUrl = "../_vti_bin/listdata.svc/Customers";
$.ajax({
url: RestUrl,
method: "GET",
headers: {
"accept": "application/json;odata=verbose",
},
success: function(data) {
if (data.d.results.length > 0) {
//construct HTML Table from the JSON Data
$('#CustomerGrid').append(GenerateTableFromJson(data.d.results));
//Bind the HTML data with Jquery DataTable
var oTable = $('#CustomerRecordsTable').dataTable({
"iDisplayLength": 5,
"aLengthMenu": [
[5, 10, 30, 50],
[5, 10, 30, 50]
],
"sPaginationType": "full_numbers"
});
} else {
$('#CustomerGrid').append("<span>No Customer Records Found.</span>");
}
},
error: function(data) {
$('#CustomerGrid').append("<span>Error Retreiving Customer Records. Error : " + JSON.stringify(data) + "</span>");
}
});
function GenerateTableFromJson(objArray) {
var tableContent = '<table id="CustomerRecordsTable" style="width:100%"><thead><tr><td> №</td>' + '<td>Customer Name</td>' + '<td>Address</td>' + '<td>Home Phone</td>' + '<td>Mobile Number</td>' + '<td>Email</td>' + '</tr></thead><tbody>';
for (var i = 0; i < objArray.length; i++) {
tableContent += '<tr>';
tableContent += '<td>' + objArray[i].Id + '</td>';
tableContent += '<td>' + objArray[i].CustomerName + '</td>';
tableContent += '<td>' + objArray[i].Address + '</td>';
tableContent += '<td>' + objArray[i].HomePhone + '</td>';
tableContent += '<td>' + objArray[i].MobileNumber + '</td>';
tableContent += '<td>' + objArray[i].Email + '</td>';
tableContent += '</tr>';
}
return tableContent;
}
});
</code></pre>
<br />
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">Once you save this file and refresh the page where you have added the content editor webpart you will be able to see the data loaded in the JQuery Datatable. As you can see it provides the inbuilt functionality for the pagination, search, filtering and sorting without any additional code.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM44M8TPHmIr67ByUKJrELf4UOAoH_PkX1LXziUkLMpaOGRzK8jqJyeDEMTo4-7oVVS5ooGipmCg-O1ADRVB-lU75vSHIJkKLei2FcXus8tTnloLAxYN29LiL-lJW4GCWqYGGyTq0GGn4/s1600/JQuery+DataTable+SharePoint+REST.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="JQuery DataTable SharePoint REST" border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM44M8TPHmIr67ByUKJrELf4UOAoH_PkX1LXziUkLMpaOGRzK8jqJyeDEMTo4-7oVVS5ooGipmCg-O1ADRVB-lU75vSHIJkKLei2FcXus8tTnloLAxYN29LiL-lJW4GCWqYGGyTq0GGn4/s640/JQuery+DataTable+SharePoint+REST.png" title="JQuery DataTable SharePoint REST" width="640" /></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">I hope this article was useful! Happy SharePointing!</span></div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-50548679751104389812015-09-02T16:11:00.000+05:302016-08-20T06:52:16.913+05:30Query User Profile Service for Multiple Users in SharePoint Using SPServices<script> if(window.location.href.indexOf('query-user-profile-service-for-multiple.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Query-User-Profile-Service-Multiple-Users-SharePoint-SPServices";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"keywords" : "Async, cache, JQuery, Office 365, Sharepoint 2010, SPServices, SharePoint 2013",
"headline" : "Query User Profile Service for Multiple Users in SharePoint Using SPServices",
"name" : "Query User Profile Service for Multiple Users in SharePoint Using SPServices",
"author" : {
"@type" : "Person",
"name" : "Dhaval Shah"
},
"datePublished" : "2015-09-02",
"image" : "https://lh3.googleusercontent.com/-zAWHMegeV2U/AAAAAAAAAAI/AAAAAAAAATM/mqc9MQppXBM/s46-c-k-no/photo.jpg",
"articleSection" : "I will show how to query the user profile service from the SharePoint (2010/2013/Office 365) using the SPServices. As it will retrieve the properties of multiple users and there is no batch query possible in SharePoint to retrieve the properties of all users in one shot, we will leverage the async and cache property of the SPServices to query properties of multiple users.",
"url" : "http://kalashnikovtechnoblogs.blogspot.in/2015/09/query-user-profile-service-for-multiple.html",
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "5",
"ratingCount" : "5"
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">Lot of people are using the SPServices these days. SPServices is a jQuery library which encapsulates SharePoint Web Services with jQuery to make it easy to call them.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">In this post, I will show how to query the user profile service from the SharePoint (2010/2013/Office 365) using the SPServices. As it will retrieve the properties of multiple users and there is no batch query possible in SharePoint to retrieve the properties of all users in one shot, we will leverage the async and cache property of the SPServices to query properties of multiple users.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Before we begin let’s make sure that SPServices is loaded correctly and SPServices JS files are loaded.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Download the jquery.SPServices-0.6.2.min.js file from here and reference in the code as below. I will suggest to upload it in the Site Assets Library.</span><br />
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <script type="text/javascript" language="javascript" src="../SiteAssets/jquery-1.6.1.min.js"></script>
<script type="text/javascript" language="javascript" src="../SiteAssets/jquery.SPServices-0.6.2.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
alert("jQuery Loaded");
alert($().SPServices.SPGetCurrentSite());
});
</script>
</code></pre>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">If we get both the alerts that means our Jquery and SPservices javascript files are loaded and we can move further.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">Now to begin with for the demo purpose we will retrieve the users stored in the SharePoint group and we will display the user profile properties from that user list.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">We will store the usernames of all the users in the ‘usersList’ array and push their login name in it.</span><br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> var userDivPnl;
var usersList = [];
$().SPServices({
operation: "GetUserCollectionFromGroup",
groupName: 'Members Group',
async: false,
completefunc: function(xml, Status) {
$(xml.responseXML).SPFilterNode("User").each(function() {
var name = $(this).attr("Name").toUpperCase();
var accountname = $(this).attr("LoginName");
usersList.push(accountname);
//Replacing the special characters from the loginname
var login = accountname.split("|")[2].replace("@", "_").replaceAll(".", "");
//Generate the HTML Div structure to add users properties in each div
userDivPnl += '<div>' +
'<div > ' +
'<div class="profile_photo" style="width: 100px;"> ' +
' <img height="96" width="96" id="profile_' + login + '" src="' + noProfileImg + '" style="border-radius: 100%;"/> ' +
'</div> ' +
'&nbsp;&nbsp; ' +
'<div > ' +
'<p id="dispname_' + login + '"></p> ' +
'<p id="jobtitle_' + login + '"></p> ' +
'<p id="country_' + login + '"></p> ' +
'<p id="contact_' + login + '"><a href="#"></a></p> ' +
'<p><a id="email_' + login + '"></a></p> ' +
'</div> ' +
'</div> ' +
'</div> ';
});
userDivPnl += '</div>';
$("#container").append(userDivPnl);
}
});
</code></pre>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<a name='more'></a><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Once we have the raw DIV structure of the user profiles are ready for each user we will load them with the asynchronous call of the SPServices.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"></span>
<span style="font-family: Arial, Helvetica, sans-serif;">We will make call to the GetUserProfileByName method of the SP Services.</span><br />
<div>
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> //Retreive all the user profiles properties async
$.each(usersList, function(index, value) {
$().SPServices({
operation: "GetUserProfileByName",
AccountName: value,
async: true,
cache: true,
completefunc: function(xData, xStatus) {
// generate a unique div id for each user from login name
var idVal = value.split("|")[2].replace("@", "_").replaceAll(".", "");
var profilePicPath = getUPValue(xData.responseXML, "PictureURL") === "" ? noProfileImg : getUPValue(xData.responseXML, "PictureURL");
var email = getUPValue(xData.responseXML, "WorkEmail");
var contact = getUPValue(xData.responseXML, "WorkPhone") === "" ? "--" : getUPValue(xData.responseXML, "WorkPhone");
var country = getUPValue(xData.responseXML, "CountryName") === "" ? "--" : getUPValue(xData.responseXML, "CountryName");
var jobTitle = getUPValue(xData.responseXML, "Title") === "" ? "--" : getUPValue(xData.responseXML, "Title");
$("#dispname_" + idVal).text(getUPValue(xData.responseXML, "PreferredName"));
$("#jobtitle_" + idVal).text(jobTitle);
$("#country_" + idVal).text(country);
$("#contact_" + idVal).text(contact);
$("#email_" + idVal).text(email);
$("#email_" + idVal).attr("href", "mailto:" + email);
if (profilePicPath != noProfileImg)
$("#profile_" + idVal).attr("src", profilePicPath);
}
});
});
function getUPValue(x, p) {
var thisValue = $(x).SPFilterNode("PropertyData").filter(function() {
return $(this).find("Name").text() == p;
}).find("Values").text();
return thisValue;
}
</code></pre>
<br /></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">This should retrieve the user profile values from the user profile service. As you can see we have set the async and cache property to true.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">So once the page is loaded it will gradually load the data from the user profile service asynchronously. Cache will enable the page to cache the data as the user profile data is not changed so frequently.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Happy SharePointing!</span></div>
<div>
<br /></div>
<div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-32951815145170727092015-08-20T18:34:00.000+05:302016-08-20T06:51:58.639+05:30Display the Calendar Using Jquery Full Calendar and SharePoint Rest API <script> if(window.location.href.indexOf('display-calendar-using-jquery-full.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Display-Calendar-Jquery-Full-Calendar-SharePoint-Rest-API";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"keywords" : "FullCalendar, JQuery, REST, Sharepoint 2010, Office 365, SharePoint 2013",
"headline" : "Display the Calendar Using Jquery Full Calendar and SharePoint Rest API",
"name" : "Display the Calendar Using Jquery Full Calendar and SharePoint Rest API",
"author" : {
"@type" : "Person",
"name" : "Dhaval Shah"
},
"datePublished" : "2015-08-20",
"image" : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfg3UVtuj5Bcxk-jfQqzhLqnsd9rTKSe2sJ6DsD5UStskVYn2TfOOPpeLDLT022lE6jO2t_-IhX1Bc6Qm6UTL4fb4J3Xcv_fN3mTcDYqyVXrFgcyrE_6KXVL1Q2okOi-gxdYXG1vr75cE/s1600/JquerySharePointCalendar.JPG",
"articleBody" : "In this post I will show you how to create your own Jquery Calendar view using the simple Jquery and SharePoint Rest API. I have used the <a href=\"http://fullcalendar.io/\" target=\"_blank\">Jquery full calendar plugin</A> as it is very easy to use. It is highly customizable and very light weight",
"url" : "http://kalashnikovtechnoblogs.blogspot.in/2015/08/display-calendar-using-jquery-full.html",
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "5",
"ratingCount" : "5"
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">In this post I will show you how to create your own Jquery Calendar view using the simple Jquery and SharePoint Rest API. I have used the <a href="http://fullcalendar.io/" target="_blank">Jquery full calendar plugin</a> as it is very easy to use. It is highly customizable and very light weight.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">I have created a Calendar list in my site and named it as ‘UpcomingEvents’. We will use this list to store our events or meetings.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">You will required to add the reference to the following files from FullCalendar.io </span>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <link href="../SiteAssets/css/fullcalendar.css" rel="stylesheet"/>
<link href="../SiteAssets/css/fullcalendar.print.css" rel="stylesheet" media='print' />
<script type="text/javascript" src="../SiteAssets/js/jquery-1.11.0.min.js" ></script>
<script type="text/javascript" src="../SiteAssets/js/fullcalendar.min.js" ></script>
<script type="text/javascript" src="../SiteAssets/JqueryFullCalendar.js" ></script>
</code></pre>
<br />
Create JqueryFullCalendar.txt and add the above mentioned references in the file,<br />
<br />
<u>JqueryFullCalendar.txt</u><br />
<u><br /></u>
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <link href="../SiteAssets/css/fullcalendar.css" rel="stylesheet"/>
<link href="../SiteAssets/css/fullcalendar.print.css" rel="stylesheet" media='print' />
<script type="text/javascript" src="../SiteAssets/js/jquery-1.11.0.min.js" ></script>
<script type="text/javascript" src="../SiteAssets/js/moment.min.js" ></script>
<script type="text/javascript" src="../SiteAssets/js/fullcalendar.min.js" ></script>
<script type="text/javascript" src="../SiteAssets/JqueryFullCalendar.js" ></script>
<div id='calendar' class="float:left search-results"></div>
</code></pre>
<u></u><br />
<a name='more'></a><u><br /></u>
<br />
<div>
JqueryFullCalendar.js will have our custom code to load the events from the SharePoint List and render it in the Jquery Full Calendar. This calendar will support recurring events as well. </div>
<div>
<br />
<u>JqueryFullCalendar.js</u><br />
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> var ele = [];
var listUrl = "../_vti_bin/listdata.svc/";
$(document).ready(function() {
Retreive();
});
function Retreive() {
var listUrl = "../_vti_bin/ListData.svc/UpcomingEvents";
$.ajax({
url: listUrl,
type: "GET",
data: {
$select: "Title,Description,StartTime,EndTime,AllDayEvent,Recurrence,Id"
},
headers: {
accept: "application/json;odata=verbose"
},
success: function(data) {
$.each(data.d.results, function(i) {
currObj = this;
var fADE = currObj.AllDayEvent;
if (fADE != null) {
if (fADE == 0) {
thisADE = false
} else thisADE = true;
}
var thisID = currObj.Id;
var thisTitle = currObj.Title;
var thisRecurrence = currObj.Recurrence;
var thisDesc = currObj.Description;
var x = new Date(parseInt(currObj.StartTime.substr(6)));
var y = new Date(parseInt(currObj.EndTime.substr(6)));
ele.push({
title: currObj.Title,
id: currObj.Id,
start: x,
description: currObj.Description,
end: y,
allDay: thisADE,
});
});
BindCalendar();
}
});
}
function BindCalendar() {
var calendarioDiv = $('#calendar');
var fullCalendar = calendarioDiv.fullCalendar({
events: ele,
error: function() {
alert('Error');
},
editable: false,
firstDay: 0,
monthNames: ['JANUARY', 'FEBRUARY',
'MARCH', 'APRIL', 'MAY',
'JUNE', 'JULY', 'AUGUST', 'SEPTEMBER',
'OCTOBER', 'NOVEMBER', 'DECEMBER'
],
dayNames: ['Sunday', 'Monday', 'Tuesday',
'Wednesday', 'Thursday', 'Friday', 'Saturday'
],
dayNamesShort: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
allDay: true
});
}
</code></pre>
<br />
Add the Content Editor webpart on your page and add the reference to the JqueryFullCalendar.txt file in it. Below is the output<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfg3UVtuj5Bcxk-jfQqzhLqnsd9rTKSe2sJ6DsD5UStskVYn2TfOOPpeLDLT022lE6jO2t_-IhX1Bc6Qm6UTL4fb4J3Xcv_fN3mTcDYqyVXrFgcyrE_6KXVL1Q2okOi-gxdYXG1vr75cE/s1600/JquerySharePointCalendar.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfg3UVtuj5Bcxk-jfQqzhLqnsd9rTKSe2sJ6DsD5UStskVYn2TfOOPpeLDLT022lE6jO2t_-IhX1Bc6Qm6UTL4fb4J3Xcv_fN3mTcDYqyVXrFgcyrE_6KXVL1Q2okOi-gxdYXG1vr75cE/s1600/JquerySharePointCalendar.JPG" /></a></div>
<br />
Happy Coding !<br />
<br />
<br /></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-72404374081934508492015-08-13T12:45:00.004+05:302016-08-20T06:51:45.478+05:30Issues of Console.Log with Internet Explorer<script> if(window.location.href.indexOf('issues-of-consolelog-with-internet.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Issues-of-Console-Log-with-Internet-Explorer";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"keywords" : "Console.Log, Development Toolbar, IE, IE8, IE9, JavaScript, JQuery",
"headline" : "Issues of Console.Log with Internet Explorer",
"name" : "Issues of Console.Log with Internet Explorer",
"author" : {
"@type" : "Person",
"name" : "Dhaval Shah"
},
"datePublished" : "2015-08-13",
"image" : "https://lh3.googleusercontent.com/-zAWHMegeV2U/AAAAAAAAAAI/AAAAAAAAATM/mqc9MQppXBM/s46-c-k-no/photo.jpg",
"articleBody" : ", I ran into an issue with one of my client where my particular callback function of ajax call was not called at all. It worked absolutely fine with google chrome and it was only issue with the Internet Explorer.",
"url" : "http://kalashnikovtechnoblogs.blogspot.in/2015/08/issues-of-consolelog-with-internet.html",
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "5",
"ratingCount" : "5"
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
Recently, I ran into an issue with one of my client where my particular callback function of ajax call was not called at all. It worked absolutely fine with google chrome and it was only issue with the Internet Explorer.<br />
<br />
I did lot of digging around the ajax calls using fiddler to see if there is problem in the ajax call or whether some JavaScript file is not loaded correctly but could not find it much on that front.<br />
<br />
I could track the issue when we open the IE development toolbar and it used to work absolutely fine. Initially I could not produce it on my machine as I frequently use the IE toolbar. After troubleshooting a bit i found out that console object is exposed only when the developer tools are opened for a particular tab. If I do not open the developer tools window for that tab, the console object remains exposed for each page you navigate to. If I open a new tab, I must also open the developer tools for that tab in order for the console object to be exposed.<br />
<br />
This was some petty issue which took lot of time to identify for me. So for workaround on this I developed a small utility file for logging into console which will work across all the browsers.<br />
This utility will log console messages only when console object is active else it will skip logging.<br />
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRzKA9swOdU542q70JCXtXUlumkBNioHfroJ0iUaQ3Fem09h8G2MIpVSu5xCfbfJq6pNNMEm9rj9rY0NQDqACiPRLI0hkKJHta0vILgVqgSbeUyWEGstYb7-pBDFeP7ynekUQXBoloMCK/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> /*
FileName : DPSUTILS.js
Author : Dhaval Shah
Description : This Javascript library contains common methods to do the read/Write operation across
different data sources e.g. UserProfile, Managed Metadata Service and Search Service
*/
(function() {
if (!window["DPS"]) {
window["DPS"] = {};
}
DPS.Namespace = {
Register: function(namespace) {
var parts,
context,
nsPath,
partsLength;
parts = namespace.split(".");
partsLength = parts.length;
context = window;
nsPath = "";
for (var i = 0, l = partsLength; i < l; ++i) {
var name = parts[i];
if (!context[name]) {
context[name] = {};
context[name].__namespace = name;
}
nsPath += name + ".";
context = context[name];
if (!context.__namespace) {
context.__namespace = nsPath.substring(0, nsPath.length - 1);
}
}
return context;
}
};
})();
/**
* This namespace contains utility functions used across application.
*/
(function() {
DPS.Namespace.Register("DPS");
DPS.Namespace.Register("DPS.UTILS");
DPS.UTILS = {
/*
* Logs the exception message in browser console
* @param {string} message - Exception Message
*/
logAjaxErrorMessage: function(xhr, status, error) {
if (xhr.responseText != "") {
var message = xhr.responseText;
if (typeof console === "undefined") {
return;
}
console.error(message);
}
},
logMessage: function(message) {
if (typeof console === "undefined") {
return;
}
console.log(message);
}
};
})();
</code></pre>
<br />
Save this file as DPSUTILS.js and reference it in your code.<br />
<br />
In order to log message you can directly use<br />
<br />
DPS.UTILS.logMessage("My Log Message . . .");<br />
<div>
<br /></div>
<br />
I hope this was helpful..<br />
<br />
Happy Coding !</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-84659585029294425602013-12-04T21:46:00.001+05:302016-08-20T06:51:33.011+05:30SharePoint Multi-Language Variation Site<script> if(window.location.href.indexOf('sharepoint-multi-language-variation-site.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/SharePoint-Multi-Language-Variation-Site";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"keywords":"Create Hierarchies, Create Source Site, Machine Translation Service, Sharepoint 2013, SharePoint Multi-Language Variation Site, Office 365",
"headline" : "SharePoint Multi-Language Variation Site",
"name" : "SharePoint Multi-Language Variation Site",
"author" : {
"@type" : "Person",
"name" : "Dhaval Shah"
},
"datePublished" : "2013-12-04",
"image" : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVAsFGpVu5PbwFr7NIqhFtPHyNPE1C3PzUbIstnEvGqFeLA3kl8guPj9El-_EwKzdsh0v7PTnKeFcmQW5BgDft-pe_p6dXBPGEg-UMQ3f2fgfYI_xu8pFlqZgFeVi9kNKDMbYBObld500/s640/10.png",
"articleBody" : "We will use the SharePoint Online variations feature to\ncreate multi-language site",
"url" : "http://kalashnikovtechnoblogs.blogspot.in/2013/12/sharepoint-multi-language-variation-site.html",
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "5",
"ratingCount" : "5"
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
We will use the SharePoint Online variations feature to
create multi-language site. <o:p></o:p></div>
<div class="MsoNormal">
There will be a source site (most probably in English) where
most of the authoring and creation of content will take place and there will be
another target site (in your native language) which will be created with the
help of 'Machine Translation Service'. <o:p></o:p></div>
<div class="MsoNormal">
<!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Diagram_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75"
style='width:6in;height:252.75pt;visibility:visible' o:gfxdata="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
NSPrxqoYyFl+S20vbPJ2z9Q0XNwxOnW+QG0xaJtt+N3qo6npey2Jv2dB9fWmU6GeYRZ0juN1Jrt1
xX6n8+vK0dPqyj6nL/VpVdXcjUQZ2ogB7LN9Af31Z0HZnkbHiu+NYzMY2h6+onamqXdutH3P74Lh
JrmP1fD/Ad/9DwAA//8DAFBLAwQUAAYACAAAACEAz1mvPuAAAACQAQAAHwAAAGNsaXBib2FyZC9k
aWFncmFtcy9kcmF3aW5nMS54bWyEkMFuwyAMhu+T9g7I94Vsh6mKSnrrblWldQ+AgFCk2CCM0u3t
R5tkh/awm+3/92f4t7tvHMXkModICl6bFoQjE20gr+DrtH/ZgOCiyeoxklPw4xh2/fPT1nLqbNaX
ahSVQdxZjwrOpaROSjZnh5qbmBxVdYgZdalt9nJZwlG+te27tEH7rBFWCKcHCAaTI8ehNCaijMMQ
jFsxV8jmHqIfEP+/A3Ug6G/f4nTKzs01TR85faZjnltzmI5ZBKugBkUaayIg/6TFWgfyGs/drp9B
q7peuVmXUPpfAAAA//8DAFBLAQItABQABgAIAAAAIQC2MIQfXAEAANEEAAATAAAAAAAAAAAAAAAA
AAAAAABbQ29udGVudF9UeXBlc10ueG1sUEsBAi0AFAAGAAgAAAAhAK0wP/HBAAAAMgEAAAsAAAAA
AAAAAAAAAAAAjQEAAF9yZWxzLy5yZWxzUEsBAi0AFAAGAAgAAAAhAHLPplkiCwAArTUAABwAAAAA
AAAAAAAAAAAAdwIAAGNsaXBib2FyZC9kaWFncmFtcy9kYXRhMS54bWxQSwECLQAUAAYACAAAACEA
pZaX+owBAABIBAAAHwAAAAAAAAAAAAAAAADTDQAAY2xpcGJvYXJkL2RyYXdpbmdzL2RyYXdpbmcx
LnhtbFBLAQItABQABgAIAAAAIQA5Pf7PMAEAAPwDAAAqAAAAAAAAAAAAAAAAAJwPAABjbGlwYm9h
cmQvZHJhd2luZ3MvX3JlbHMvZHJhd2luZzEueG1sLnJlbHNQSwECLQAUAAYACAAAACEAnE5eIeIG
AAA6HAAAGgAAAAAAAAAAAAAAAAAUEQAAY2xpcGJvYXJkL3RoZW1lL3RoZW1lMS54bWxQSwECLQAU
AAYACAAAACEAA8CiPBEEAADfQQAAHgAAAAAAAAAAAAAAAAAuGAAAY2xpcGJvYXJkL2RpYWdyYW1z
L2NvbG9yczEueG1sUEsBAi0AFAAGAAgAAAAhAFnLpJrbAwAADVEAACIAAAAAAAAAAAAAAAAAexwA
AGNsaXBib2FyZC9kaWFncmFtcy9xdWlja1N0eWxlMS54bWxQSwECLQAUAAYACAAAACEAzi53BeAG
AABYKAAAHgAAAAAAAAAAAAAAAACWIAAAY2xpcGJvYXJkL2RpYWdyYW1zL2xheW91dDEueG1sUEsB
Ai0AFAAGAAgAAAAhAM9Zrz7gAAAAkAEAAB8AAAAAAAAAAAAAAAAAsicAAGNsaXBib2FyZC9kaWFn
cmFtcy9kcmF3aW5nMS54bWxQSwUGAAAAAAoACgDmAgAAzygAAAAA
">
<v:imagedata src="file:///C:\Users\DHAVAS~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title="" cropleft="-16872f" cropright="-16221f"/>
<o:lock v:ext="edit" aspectratio="f"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><o:p></o:p></div>
<div class="MsoNormal">
In the above figure it can be seen that we will first create
a variation site in English and there will be target site in Hindi which will
be auto generated from English.<o:p></o:p></div>
<div class="MsoNormal">
First to begin please make sure we have following things in
place,</div>
<ul>
<li>Activate SharePoint Server Publishing Infrastructure feature on the ‘Root Site’ collection</li>
<li>‘Root site’ is of type ‘Publishing Site’(in my case, http://sp2013labapp01/sites/demo )</li>
<li>Language Pack Hindi should be installed on all the Servers in SharePoint Farm</li>
</ul>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"><br /></span></span></div>
<div class="MsoNormal">
At the end of this article we will have 2 links,</div>
<ul style="text-align: left;">
<li><b>Source Site in English</b>: <u>http://sp2013labapp01/sites/demo/en-us</u></li>
<li><b>Target Site In Hindi </b>: <u>http://sp2013labapp01/sites/demo/hi-in</u></li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJthvQSCQzl9jT2OmhXFU2C3IJNOqSTGVItHuGju3GaqxGB23HurytghSPTxa1fh-gI30zNdDFZUay-VJOOP-d2b4v3VQo8WWfDUqiQ0dG9alnkM-fvi071VNbynWM_USk20iQpqQXbs8/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJthvQSCQzl9jT2OmhXFU2C3IJNOqSTGVItHuGju3GaqxGB23HurytghSPTxa1fh-gI30zNdDFZUay-VJOOP-d2b4v3VQo8WWfDUqiQ0dG9alnkM-fvi071VNbynWM_USk20iQpqQXbs8/s320/11.png" width="320" /></a></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo3; text-indent: -.25in;">
<u><br /></u></div>
<h2>
Configure Variation Settings for your ‘Root Site’<o:p></o:p></h2>
<div>
In this step we will configure which and what things to create variation for.</div>
<ol style="text-align: left;">
<li>Go to Site Settings of your ‘Root Site’</li>
<li>Click on ‘Variation Settings’</li>
<li>Make sure the variation settings are as shown in the screenshot below<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKFkpaChUXGe_QlwYZ2MWyCg00vKWxwO8Vzb7v6UdWZkMzfX-1EECGyO9mNgRAeEibdzF3pSnI6X6t37KyUeM7u5VOa0K36DHHOArmC_ZXaOganuvbiJD8ynCy1x-NLqtb7Z8wnM6l0sM/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="307" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKFkpaChUXGe_QlwYZ2MWyCg00vKWxwO8Vzb7v6UdWZkMzfX-1EECGyO9mNgRAeEibdzF3pSnI6X6t37KyUeM7u5VOa0K36DHHOArmC_ZXaOganuvbiJD8ynCy1x-NLqtb7Z8wnM6l0sM/s640/1.png" width="640" /></a></li>
<li>These are the default settings and easy to go for this tutorial. Click on ‘OK’</li>
</ol>
<div>
<a name='more'></a><br /></div>
<div>
<h2>
Create a Source Variation Site (in English)</h2>
</div>
<div>
<ol style="text-align: left;">
<li>Go to Site Settings of your ‘Root Site’</li>
<li>Click on ‘Variation Labels’ -> Click on ‘New Label’<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWKMj-I6sDszfhMOC69pkqAT880QFJ2gTejvLDhJADv2AHOfplNWyOaPYiL76FKEwYarNz5stq6yLGQVgcmdP2eGD8lkindN_VavaXVSEYgiVXLHUyn9n1twEVMMZHMkMdTvL5zoJNhNM/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWKMj-I6sDszfhMOC69pkqAT880QFJ2gTejvLDhJADv2AHOfplNWyOaPYiL76FKEwYarNz5stq6yLGQVgcmdP2eGD8lkindN_VavaXVSEYgiVXLHUyn9n1twEVMMZHMkMdTvL5zoJNhNM/s1600/2.png" /></a></li>
<li>In Site Template Language, select the language to be used in the multilingual user interface of the source site. In our case ‘English’. Select appropriate Locale, I will go with ‘English (United States)’. Under Variation Home Location, Just type ‘/’. Type the label as ‘en-us’. Refer screen below for the details,<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYEqhgh8vgKc6hKlrpy6Y83fJdU3w9oCGlYJbMVl4wzPLJsjQ2s0sAyXCxGEYZNyodjEDR6Eaqlj3_X9cxt6HkPUc9ALp_Mx1gFag5Xo5E4Mrbtqi3REs-vV1U308Z1lzy2reUk77eR9E/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYEqhgh8vgKc6hKlrpy6Y83fJdU3w9oCGlYJbMVl4wzPLJsjQ2s0sAyXCxGEYZNyodjEDR6Eaqlj3_X9cxt6HkPUc9ALp_Mx1gFag5Xo5E4Mrbtqi3REs-vV1U308Z1lzy2reUk77eR9E/s1600/3.png" /></a></li>
<li>Select ‘Publishing Site with Workflow’ in the Publishing Site Template</li>
<li>Enter the email address of person to be contacted for this label and click ‘ok’</li>
</ol>
</div>
<div>
<h2>
Create Target Variation Site (in Hindi)</h2>
</div>
<div>
<div>
<ol style="text-align: left;">
<li>Go to Site Settings of your ‘Root Site’</li>
<li>Click on ‘Variation Labels’ -> Click on ‘New Label’</li>
<li>Select the Site Template Language as ‘Hindi’ and Locale as ‘Hindi’. Click on ‘Continue’<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_5NM6JgX_nWf8cNgzMnkxiQncCKdeD1PgEhMOIGFYL7aFuIwS9Mruf2LlYg1qPogywoDxwHlf7th3gHFT-7zIjb_s6VsZOhQhGi6OxuWQXHbPylisjAHykf_TfJ-2qbUaGq6kjhIZAGg/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_5NM6JgX_nWf8cNgzMnkxiQncCKdeD1PgEhMOIGFYL7aFuIwS9Mruf2LlYg1qPogywoDxwHlf7th3gHFT-7zIjb_s6VsZOhQhGi6OxuWQXHbPylisjAHykf_TfJ-2qbUaGq6kjhIZAGg/s1600/4.png" /></a></li>
<li>Enter Label Name as hi-in and appropriate description and display Name</li>
<li>Select ‘Publishing Sites, Lists with Variations, and All Pages’ under Hierarchy Creation and click on ‘Continue’</li>
<li>On this screen we want to enable both ‘Human Translation’ as well as ‘Machine Translation’<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW8uaI_sBaEmDNaTjtnLeF_dlGArVvrPlgLDQI_48AKL5Yu3TbfnEmOGyRWvYCBAoYW6RJJlwv8Q6yMlrHgl_KX1oI6VRQVfz28-RdA1ndlkPDR051fBUT0wblf-Rays9K7s45lBp8Sq0/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW8uaI_sBaEmDNaTjtnLeF_dlGArVvrPlgLDQI_48AKL5Yu3TbfnEmOGyRWvYCBAoYW6RJJlwv8Q6yMlrHgl_KX1oI6VRQVfz28-RdA1ndlkPDR051fBUT0wblf-Rays9K7s45lBp8Sq0/s1600/5.png" /></a></li>
<li>Click on ‘Continue’ and on Target Label Behaviour screen select ’Automatically update target variation pages’ and click on ‘Continue’<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5SHfUVLuFfAeqd9DU12GgpSH0EiNIvDnm5_7BUIsLJgwjT2NghZAbUHSE2ysO0KVZX_FBHO4QGQq_L_svtQkLImeSCTg_mu5EubPrcPeLip_Bc95QHKj6OKvGZwHV-_v_rlaMS0RnR8U/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="102" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5SHfUVLuFfAeqd9DU12GgpSH0EiNIvDnm5_7BUIsLJgwjT2NghZAbUHSE2ysO0KVZX_FBHO4QGQq_L_svtQkLImeSCTg_mu5EubPrcPeLip_Bc95QHKj6OKvGZwHV-_v_rlaMS0RnR8U/s640/6.png" width="640" /></a></li>
<li>Review the configuration once again and click on ‘Finish’</li>
</ol>
</div>
<div>
<br /></div>
<div>
Now we have source site and target site configured but it’s not created yet! We need to create hierarchy between source site and target site.</div>
</div>
<div>
<h2>
Create Hierarchy<o:p></o:p></h2>
</div>
<div>
<div>
<ol style="text-align: left;">
<li>Go to Site Settings of your ‘Root Site’</li>
<li>Click ‘Variation Labels’</li>
<li>Click on ‘Create Hierarchies’</li>
<li>You can check the logs under ‘Variation Logs’</li>
</ol>
</div>
</div>
<div>
<div class="MsoNormal">
In the background it will run a timer job to create the
sites and its hierarchies, You can run this jobs manually.<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipIeFYzvVM3LUdFi3Pi3btcKk-JC6VAec7CBilQXj0r8eb93nFBpVzv1w-VuJRJxQChOmeiRIWb-LwvjOHPG4-KkOQPmrlyLSqoNVXQ0OfqsmZSpKfQugQU6Vu6ZD_7-pkjMPAWms1yIM/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipIeFYzvVM3LUdFi3Pi3btcKk-JC6VAec7CBilQXj0r8eb93nFBpVzv1w-VuJRJxQChOmeiRIWb-LwvjOHPG4-KkOQPmrlyLSqoNVXQ0OfqsmZSpKfQugQU6Vu6ZD_7-pkjMPAWms1yIM/s1600/7.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal">
Once these jobs are executed successfully, you can examine
the variation logs and it should show successful as below.<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTz0Y3gNvpE60aXkcRSNjrviEq6_93EAcUy3E2A1CQfA4EcqMHgbF8eF6-vg261rS8v2PJpDDxPjxx_N8O6E79OyH8z7N8PjoDl5h8YUzPvAZIW_u6M3u0D47lOY4ucAPlW-6eVqElyXs/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="317" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTz0Y3gNvpE60aXkcRSNjrviEq6_93EAcUy3E2A1CQfA4EcqMHgbF8eF6-vg261rS8v2PJpDDxPjxx_N8O6E79OyH8z7N8PjoDl5h8YUzPvAZIW_u6M3u0D47lOY4ucAPlW-6eVqElyXs/s640/8.png" width="640" /></a></div>
<div class="MsoNormal">
If you browse through both the urls you can see that there
are two exact same sites created, One in English(en-us) and other in Hindi(hi-in)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<h2>
Publishing the Page in Source Site<o:p></o:p></h2>
<div class="MsoNormal">
Let’s create a demo page ‘Bob Marley’ in our source site.
Our ‘Machine Translation Service’ should create the same page in the target (Hindi)
site<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Now go to the Source site url (<u>http://sp2013labapp01/sites/demo/en-us</u>)
and create a new page and name it as ‘Bob Marley’<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Change the page Layout to ‘Image on Left’ and start
constructing the page. Insert some image on left and add some text content on
your right.<o:p></o:p></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Page should look something like this,<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif78AVeQp65ZLWFdI38KJDtUnENaiVFGGUBctCCNTvMKIg3pYr0LLkM29Zxd9tF6BDxaDrObkeuSqtdXTXbGrjk6PPIEEvc0Fxb7AoJD8cmKWszuatmUO8hUwYWuo5Y3T0v6p5mwKW6vM/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="281" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif78AVeQp65ZLWFdI38KJDtUnENaiVFGGUBctCCNTvMKIg3pYr0LLkM29Zxd9tF6BDxaDrObkeuSqtdXTXbGrjk6PPIEEvc0Fxb7AoJD8cmKWszuatmUO8hUwYWuo5Y3T0v6p5mwKW6vM/s640/9.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal">
Click on ‘Check it in’ from the ribbon and check in the
page. After that it will ask for ‘Publish this draft’. Complete that as well. <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
On the Start "Page Approval’ page click on start. This
will initiate the page approval workflow.<o:p></o:p></div>
<div class="MsoNormal">
You have to get it approved from the user who is member of ‘approver’
list.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Imp Note : It is necessary
that the page is approved and published else it won’t be translated !<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
For now execute the jobs mentioned previously, Manually.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
Once completed successfully you will be able to browse the
same page in our target site as shown below.<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVAsFGpVu5PbwFr7NIqhFtPHyNPE1C3PzUbIstnEvGqFeLA3kl8guPj9El-_EwKzdsh0v7PTnKeFcmQW5BgDft-pe_p6dXBPGEg-UMQ3f2fgfYI_xu8pFlqZgFeVi9kNKDMbYBObld500/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="305" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVAsFGpVu5PbwFr7NIqhFtPHyNPE1C3PzUbIstnEvGqFeLA3kl8guPj9El-_EwKzdsh0v7PTnKeFcmQW5BgDft-pe_p6dXBPGEg-UMQ3f2fgfYI_xu8pFlqZgFeVi9kNKDMbYBObld500/s640/10.png" width="640" /></a></div>
<div class="MsoNormal">
<br />
Happy SharePointing !!!</div>
<div class="MsoNormal">
<br /></div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-55008696898275539062013-12-04T20:26:00.000+05:302016-08-20T06:51:19.514+05:30Creating and Configuring Machine Translation Service in SharePoint 2013<script> if(window.location.href.indexOf('creating-and-configuring-machine.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Machine-Translation-Service-SharePoint-2013";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"keywords" : "Machine Translation Service, Multi Language, Sharepoint 2013, Variation, office 365 ",
"headline" : "Creating and Configuring Machine Translation Service in SharePoint 2013",
"name" : "Creating and Configuring Machine Translation Service in SharePoint 2013",
"author" : {
"@type" : "Person",
"name" : "Dhaval"
},
"datePublished" : "2013-12-04",
"image" : "https://lh3.googleusercontent.com/-zAWHMegeV2U/AAAAAAAAAAI/AAAAAAAAATM/mqc9MQppXBM/s46-c-k-no/photo.jpg",
"articleBody" : "So this article will outline on creating and configuring the\nmachine translation service for SharePoint and in the next article I will\noutline the steps to create a multi-language site",
"url" : "http://kalashnikovtechnoblogs.blogspot.in/2013/12/creating-and-configuring-machine.html",
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "5",
"ratingCount" : "5"
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
To Use the Machine Translation service to create the multi-language
feature of SharePoint 2013 we need to first make the ‘Machine Translation
Service’ up and running in your farm.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
So this article will outline on creating and configuring the
machine translation service for SharePoint and in the next article I will
outline the steps to create a multi-language site.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<h2>
Creating Machine Translation Service<o:p></o:p></h2>
<div class="MsoNormal">
Open Central Administration, go to Application Management
section, and choose Manage service applications.<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzWmbL8ZaqX6nckJ18F_LUeW6JQFZymLWq1tZoRoyF6Km00-GDHEVDNTHTLrFFOOg6FxSxBHFAMTr1peewe8ce1mSxCIFMDLH_IPbeCG3n6tWfmfzCO5LxiDzSkODhOdquMGbSTQ0oFt4/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzWmbL8ZaqX6nckJ18F_LUeW6JQFZymLWq1tZoRoyF6Km00-GDHEVDNTHTLrFFOOg6FxSxBHFAMTr1peewe8ce1mSxCIFMDLH_IPbeCG3n6tWfmfzCO5LxiDzSkODhOdquMGbSTQ0oFt4/s1600/1.png" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
On the ribbon, choose New, and then choose Machine
Translation Service.<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCmKaSh9uPk-xgOaU-r09w7hLMLqxWRnQNy8bh71LBAvKfGUo2S45uPpf5WrOUDhu7vn1SQVf1Zg8wc_kY0nvsf1NZySEZp-PVDD2LlkzkOibMw_LCGxXtYQSduxVghcg3v_xNwEGigZA/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCmKaSh9uPk-xgOaU-r09w7hLMLqxWRnQNy8bh71LBAvKfGUo2S45uPpf5WrOUDhu7vn1SQVf1Zg8wc_kY0nvsf1NZySEZp-PVDD2LlkzkOibMw_LCGxXtYQSduxVghcg3v_xNwEGigZA/s1600/2.png" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="MsoNormal">
On the next page type a name for the service application and
fill in the details as shown in the screens below<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibW7V68pHVVjX-VBH6D5bg_65hgtpcnS4hql8tcVZXySgRpFB_zVP3DLfK8puUslH4NxkGi2rHn-MzkrPrQiU-7qHz4pTyCu3MgFZDyrwxKxESHG2SmYo3g826IY1uuPWJOyGGG88yLVo/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibW7V68pHVVjX-VBH6D5bg_65hgtpcnS4hql8tcVZXySgRpFB_zVP3DLfK8puUslH4NxkGi2rHn-MzkrPrQiU-7qHz4pTyCu3MgFZDyrwxKxESHG2SmYo3g826IY1uuPWJOyGGG88yLVo/s1600/3.png" /></a></div>
<div class="MsoNormal">
<br /></div>
<br />
<a name='more'></a><br /><br />
<div class="MsoNormal">
Select the check box near 'Add this service application's
proxy to the farm's default proxy list.' and verify the database name, and
click ok.<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtz500k5frrE7jKCXMEfukeunTmzSq_LLf_1lW29TLaWwGz20vJt9lUW3sebvB3nmaOcFuMuH9vhW2R3ezbNW7HM8SVxkUiIY5ka9JlVqJB_utzCEKFHo1Na8j4ZMsDa_vgk1J7n5fMnk/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtz500k5frrE7jKCXMEfukeunTmzSq_LLf_1lW29TLaWwGz20vJt9lUW3sebvB3nmaOcFuMuH9vhW2R3ezbNW7HM8SVxkUiIY5ka9JlVqJB_utzCEKFHo1Na8j4ZMsDa_vgk1J7n5fMnk/s1600/4.png" /></a></div>
<h2>
Configuring Translation Machine Service<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Click on the ‘Machine Translation Service’ we just created,
under the ‘Manage Service Applications’ in Central Administration <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyHqkW8HPZ4agHdejL31Gn5kDmoQ0wE4zXzvfs8ixiuuYN5PggueEdljIzSa-64es5k-wr9l5MYNqI1SIfmj1ZQcbdHhSwR3NqdyoWrDEwbYOYIiXE1MXXmAjIQO_LohIOgHvmKmibv5c/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="87" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyHqkW8HPZ4agHdejL31Gn5kDmoQ0wE4zXzvfs8ixiuuYN5PggueEdljIzSa-64es5k-wr9l5MYNqI1SIfmj1ZQcbdHhSwR3NqdyoWrDEwbYOYIiXE1MXXmAjIQO_LohIOgHvmKmibv5c/s640/5.png" width="640" /></a></div>
<br />
<div class="MsoNormal">
In the Machine Translation Service Screen, there is a
section called ‘Enabled File Extensions’. It depicts the file extension for
which the translation is enabled. Uncheck the checkbox for the file extension
for which you want to disable translation<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJY374_NjbZXPFXU6qu9VwIxM0hjoroCThpBHqDyokgmU3kP0ObpxSKDlMw5d29ljplwoOcfDN8Is9PoNXnCFyhnCJVxOcrwKX1yz4Qi-ayST3fnM2f6gpax87m72EPvp7jFIMwo0j5bE/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="291" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJY374_NjbZXPFXU6qu9VwIxM0hjoroCThpBHqDyokgmU3kP0ObpxSKDlMw5d29ljplwoOcfDN8Is9PoNXnCFyhnCJVxOcrwKX1yz4Qi-ayST3fnM2f6gpax87m72EPvp7jFIMwo0j5bE/s640/6.png" width="640" /></a></div>
<br />
<div class="MsoNormal">
In the Item Size Limits section,<o:p></o:p></div>
<div class="MsoNormal">
Maximum file size for binary files in KB. Microsoft Word
documents are binary files: <b>51200</b><o:p></o:p></div>
<div class="MsoNormal">
Maximum file size for text files in KB. Plain-text, HTML,
and XLIFF documents are text files: <b>5120</b><o:p></o:p></div>
<div class="MsoNormal">
Maximum character count for Microsoft Word documents: <b>500000</b><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSgbQEG9PQzT_sOjqt74jB3lKVSBYItC3WqxYfn6_HiQBhv6WSEAdNLBxRO0GE_OHqVhrksXg0NuNI3i8nh9izLu32YCXxF6XFNc_TxsjN1Y9le5Tdc0FRmw5Q0J3mGcF7CYz9bww9I4M/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="182" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSgbQEG9PQzT_sOjqt74jB3lKVSBYItC3WqxYfn6_HiQBhv6WSEAdNLBxRO0GE_OHqVhrksXg0NuNI3i8nh9izLu32YCXxF6XFNc_TxsjN1Y9le5Tdc0FRmw5Q0J3mGcF7CYz9bww9I4M/s640/7.png" width="640" /></a></div>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
In the Online Translation Connection, <o:p></o:p></div>
<div class="MsoNormal">
Under Web proxy server, select the check box for 'Use
default internet settings' to use the default proxy settings to connect
Internet or specify the port in the 'Use the proxy specified'<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
In Rest of the section fill the following details,<o:p></o:p></div>
<div class="MsoNormal">
Translation processes:
<b>1</b><o:p></o:p></div>
<div class="MsoNormal">
Frequency with which to start translations (minutes): <b>15</b> <o:p></o:p></div>
<div class="MsoNormal">
Number of translations to start (per translation process): <b>200</b> <o:p></o:p></div>
<div class="MsoNormal">
Maximum translation attempts: <b>2</b><o:p></o:p></div>
<div class="MsoNormal">
Maximum number of synchronous translation requests (per
server): <b>10</b> <o:p></o:p></div>
<div class="MsoNormal">
Maximum number of items which can be queued within a 24-hour
period: <b>No Limit</b> <o:p></o:p></div>
<div class="MsoNormal">
Maximum number of items which can be queued within a 24-hour
period per site subscription<b>: No Limit</b><o:p></o:p></div>
<div class="MsoNormal">
Expiration time for completed job history (days): <b>7 Days</b><o:p></o:p></div>
<div class="MsoNormal">
Recycle threshold: <b>100</b><o:p></o:p></div>
<div class="MsoNormal">
Disable Office 97-2003 Document scanning? <b>No<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal">
And click on ‘Ok’<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-46384194293075579032013-11-28T19:20:00.000+05:302016-08-20T06:51:05.691+05:30Query Rules in SharePoint 2013<script> if(window.location.href.indexOf('query-rules-in-sharepoint-2013.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Query-Rules-in-Sharepoint-2013";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"keywords": "Query Rules, Search, SharePoint 2013, Office 365,",
"headline" : "Query Rules in SharePoint 2013",
"name" : "Query Rules in SharePoint 2013",
"author" : {
"@type" : "Person",
"name" : "Dhaval Shah"
},
"datePublished" : "2013-11-28",
"image" : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU-KDYLqr-k_ktIWPqDCVsjQtUXEEwJy4I-6h14qKCY0UhfBkgNIcl3IxrMVIJIA1njrGcc0gs6SKczXqwerCYZQ0Xm5Tg03z3GLIBEiTuJXHT9OWL0IoAH-hXEou_mg4_TBUXeCrhde0/s400/Sharepoint+2013+Query+Rule+-+10.png",
"articleSection" : "Technology",
"articleBody" : "With the help of Query Rules in Sharepoint 2013 without any\ncustom code we can promote a specific result or even change the ranked result\nby changing the query. Search Expert or the Search Manager of the organization has\nthe freedom and power to change the search experience and adapt it to the\norganization needs",
"url" : "http://kalashnikovtechnoblogs.blogspot.in/2013/11/query-rules-in-sharepoint-2013.html",
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "5",
"ratingCount" : "5"
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoNormal">
With the help of Query Rules in Sharepoint 2013 without any
custom code we can promote a specific result or even change the ranked result
by changing the query. Search Expert or the Search Manager of the organization has
the freedom and power to change the search experience and adapt it to the
organization needs. Defining the right keywords to be matched on the user
queries and mapping the conditions with the relevant actions is easy but the
process must undoubtedly be well managed. The management of the query rules
should definitely be part of your SharePoint 2013 search governance strategy.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
A query rule can specify the following three types of
actions:<o:p></o:p></div>
<div class="MsoNormal">
</div>
<ul style="text-align: left;">
<li>Add Promoted Results</li>
<li>Add one or more groups of results, called result blocks.</li>
<li>Change the ranking of results.</li>
</ul>
<o:p></o:p><br />
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<b>How to Add Query Rule</b>:<o:p></o:p></div>
<div class="MsoNormal">
Let’s take a scenario where organization is maintaining the
list of glossary terms managed in the organization. When we search in google “meaning
of activity”, it automatically recognizes that user wants to know the meaning
of the word ‘activity’ and it highlights its meaning at top and displays the
rest of the results in bottom.<o:p></o:p></div>
<div>
<br /></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4fyggkiCBoINEteNVyz4LVFqPs7jvB-LwKf88YfzOUSTCZ1SbeW-MuXlO2mwxHcN_CN3ISFi8LveXx-MvBWLhkdqEOQY2c4brfQoyNoE7BWxWAIO2Q6ldEN_x5y283OicF2ZGUYWS7sM/s1600/Google+Search.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="275" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4fyggkiCBoINEteNVyz4LVFqPs7jvB-LwKf88YfzOUSTCZ1SbeW-MuXlO2mwxHcN_CN3ISFi8LveXx-MvBWLhkdqEOQY2c4brfQoyNoE7BWxWAIO2Q6ldEN_x5y283OicF2ZGUYWS7sM/s400/Google+Search.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
SharePoint also provides this feature using ‘Query Rule’ feature.<o:p></o:p></div>
<div class="MsoNormal">
<br />
<a name='more'></a><br /></div>
<div class="MsoNormal">
By default, when we search for ‘definition of activity’ or ‘meaning
of activity’ it returns the results including keywords definition and activity.<o:p></o:p></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXE6vpO-XOqv59AxRwahdXgiC0QADVA-Msac97-DCnwQ0asRil4OxwaGQSkRJ5fsNB-M2OeuXslkufZqI-imui9yaiLpaiS592LkrXFfZ1Vhv3SxHT8RkVeZUKHpX1VJ8faAIsQEfzvG8/s1600/Sharepoint+2013+Query+Rule+-+9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="375" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXE6vpO-XOqv59AxRwahdXgiC0QADVA-Msac97-DCnwQ0asRil4OxwaGQSkRJ5fsNB-M2OeuXslkufZqI-imui9yaiLpaiS592LkrXFfZ1Vhv3SxHT8RkVeZUKHpX1VJ8faAIsQEfzvG8/s400/Sharepoint+2013+Query+Rule+-+9.png" width="400" /></a></div>
<div class="MsoNormal">
We have managed the list of glossary terms in a list as
shown below,</div>
<div>
<br /></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2DUyJuScbvogd69cXEFIwfgFEoRC2I7j6pL5HEG6ncm8wNr-qT4GeysUTQuus0t2JyordK3ptiEtCPh5JVZSrkGuzWYLyMLXMWPnMJVLV4_Y8pF6yxAVcONjYz3EJe16Cx7DORzYKoRM/s1600/Glossary.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2DUyJuScbvogd69cXEFIwfgFEoRC2I7j6pL5HEG6ncm8wNr-qT4GeysUTQuus0t2JyordK3ptiEtCPh5JVZSrkGuzWYLyMLXMWPnMJVLV4_Y8pF6yxAVcONjYz3EJe16Cx7DORzYKoRM/s400/Glossary.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Go to Search Setting of the Search Center site and Click on ‘Query
Rules’<o:p></o:p></div>
<div class="MsoNormal">
Select ‘Local SharePoint Sites’ under click on ‘Add Query
Rule’<o:p></o:p></div>
<div class="MsoNormal">
Name it as ‘Glossary Rule’ and select ‘Query Contains Action
Term’ as a Query condition as shown below<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0P8obi5s3qTtIkus8H-ZpDPDnSJ83_Cumj6gYVFkSJlMhUTCjbVpUEAEORaEXeX6wwWkpbS_V4P1MhQV3JA61_1qNn3X5rFKZF17ZoApTMvWRp877tiJOC1M7OjKnwR1E7kaUt-OjsbE/s1600/Sharepoint+2013+Query+Rule+-+1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0P8obi5s3qTtIkus8H-ZpDPDnSJ83_Cumj6gYVFkSJlMhUTCjbVpUEAEORaEXeX6wwWkpbS_V4P1MhQV3JA61_1qNn3X5rFKZF17ZoApTMvWRp877tiJOC1M7OjKnwR1E7kaUt-OjsbE/s400/Sharepoint+2013+Query+Rule+-+1.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<br />
<div class="MsoNormal">
Add ‘definition of;meaning of’ under the Action Terms
phrases. So that whenever end user search for ‘definition of activity’ it
excludes the terms definition of and search only for ‘activity’ in the glossary
list.<o:p></o:p></div>
<div class="MsoNormal">
Click on Change rule query and it will open this window<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Select the ‘Glossary’ result source. (You need to create the
glossary results source first which returns the results only from the glossary
list)<o:p></o:p></div>
<div class="MsoNormal">
Under the keyword filter select ‘{SubjectTerms} – the unmatched
query terms’ and click on ‘Add property filter’<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiHosOXsX96_XcRWVHKBwOfKIGnHc4WAT_IlBhDHZlTMZT23W6ijAlfTtoAKIDvIHkUFqvXK_hNh5Ze9raGw26Js3USWAMOp5eFzJY725dfjEQ4vdks-9M8PtC0owXMwzGxNjC1NuceiA/s1600/Sharepoint+2013+Query+Rule+-+8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="215" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiHosOXsX96_XcRWVHKBwOfKIGnHc4WAT_IlBhDHZlTMZT23W6ijAlfTtoAKIDvIHkUFqvXK_hNh5Ze9raGw26Js3USWAMOp5eFzJY725dfjEQ4vdks-9M8PtC0owXMwzGxNjC1NuceiA/s400/Sharepoint+2013+Query+Rule+-+8.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<!--[if gte vml 1]><v:shape
id="Picture_x0020_9" o:spid="_x0000_i1028" type="#_x0000_t75" style='width:468pt;
height:250.5pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\DHAVAS~1\AppData\Local\Temp\msohtmlclip1\01\clip_image008.png"
o:title="Sharepoint 2013 Query Rule - 8"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><o:p></o:p></div>
<div class="MsoNormal">
Click on ‘Add Result Block’<o:p></o:p></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguNSvVs8qd9k90ui5dhtiSRe5LId_r3TmvO_W6vTRWYp_zBF7QrdUU2UWvb0Xol3GCyJVk0kf5mq7taMlxZeYlqwOGhA5Xk69q-LHH33Af1DUFSi6YkZ-yeKqPydWbDoaf6jz9OURW-Pg/s1600/Sharepoint+2013+Query+Rule+-+7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguNSvVs8qd9k90ui5dhtiSRe5LId_r3TmvO_W6vTRWYp_zBF7QrdUU2UWvb0Xol3GCyJVk0kf5mq7taMlxZeYlqwOGhA5Xk69q-LHH33Af1DUFSi6YkZ-yeKqPydWbDoaf6jz9OURW-Pg/s320/Sharepoint+2013+Query+Rule+-+7.png" width="320" /></a></div>
<div>
<br /></div>
<br />
<div class="MsoNormal">
Click ok<o:p></o:p></div>
<div class="MsoNormal">
Publishing section defines from which period of time from
start date to end date this query rule should be active.<o:p></o:p></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmxoWuecM7G8jGxeLxJrngPLmXn9j4FV1cI1KSBxRhozGPSXwFMXHEuAd6SPxh8cQZejHgXpk2zkv04Quwm0gWPCLgbva9wwyXHGQMTubL0beZIfL6KQ-ueyT6eIuYGObgBojaZhKs1VE/s1600/Sharepoint+2013+Query+Rule+-+3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmxoWuecM7G8jGxeLxJrngPLmXn9j4FV1cI1KSBxRhozGPSXwFMXHEuAd6SPxh8cQZejHgXpk2zkv04Quwm0gWPCLgbva9wwyXHGQMTubL0beZIfL6KQ-ueyT6eIuYGObgBojaZhKs1VE/s320/Sharepoint+2013+Query+Rule+-+3.png" width="320" /></a></div>
<div>
<br /></div>
<br />
<div class="MsoNormal">
Click on ok.<o:p></o:p></div>
<div class="MsoNormal">
Now go to your search center and search for ‘definition of
activity’<o:p></o:p></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU-KDYLqr-k_ktIWPqDCVsjQtUXEEwJy4I-6h14qKCY0UhfBkgNIcl3IxrMVIJIA1njrGcc0gs6SKczXqwerCYZQ0Xm5Tg03z3GLIBEiTuJXHT9OWL0IoAH-hXEou_mg4_TBUXeCrhde0/s1600/Sharepoint+2013+Query+Rule+-+10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU-KDYLqr-k_ktIWPqDCVsjQtUXEEwJy4I-6h14qKCY0UhfBkgNIcl3IxrMVIJIA1njrGcc0gs6SKczXqwerCYZQ0Xm5Tg03z3GLIBEiTuJXHT9OWL0IoAH-hXEou_mg4_TBUXeCrhde0/s400/Sharepoint+2013+Query+Rule+-+10.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
You can see that it promoted the results from the glossary
list.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<br />
<div class="MsoNormal">
Happy SharePointing !!<o:p></o:p></div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-16099672306802938212013-11-28T14:34:00.001+05:302016-08-20T06:49:47.648+05:30SharePoint Crawls - Full, Incremental, Continuous<script> if(window.location.href.indexOf('sharepoint-crawls-full-incremental.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/SharePoint-Crawls-Full-Incremental-Continuous";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"keywords" : "Continous Crawl, Full Crawl, Incremental Crawl, powershell, Sharepoint 2013, ",
"headline" : "SharePoint Crawls - Full, Incremental, Continuous",
"name" : "SharePoint Crawls - Full, Incremental, Continuous",
"author" : {
"@type" : "Person",
"name" : "Dhaval Shah"
},
"datePublished" : "2013-11-28",
"image" : "https://lh3.googleusercontent.com/-zAWHMegeV2U/AAAAAAAAAAI/AAAAAAAAATM/mqc9MQppXBM/s46-c-k-no/photo.jpg",
"articleSection" : "Technology",
"articleBody" : "In this article you will get to know everything about the SharePoint Crawl",
"url" : "http://kalashnikovtechnoblogs.blogspot.in/2013/11/sharepoint-crawls-full-incremental.html",
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "5",
"ratingCount" : "5"
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
Full Crawl<o:p></o:p></h2>
<div class="MsoNormal">
Full Crawl of Content source will re index all the content
from beginning<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Important Points to Consider</b>:<o:p></o:p></div>
<div class="MsoNormal">
</div>
<ul style="text-align: left;">
<li>If new
managed property has been introduced, we need to run Full Crawl of content
source </li>
<li>If new
crawl rules are created/updated/deleted, Full crawl of content source is
required</li>
<li>If
incremental crawl has been failed</li>
<li>If
software update or service pack has been installed on the servers</li>
<li>Expensive
in terms of performance issues</li>
</ul>
<o:p></o:p><br />
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<h2>
Incremental Crawl<o:p></o:p></h2>
<div class="MsoNormal">
Incremental Crawl of Content source will only process those
items which are changed since the last crawl happened. <o:p></o:p></div>
<div class="MsoNormal">
<b><br /></b></div>
<div class="MsoNormal">
<b>Important Points to Consider</b>:<o:p></o:p></div>
<div class="MsoNormal">
</div>
<ul style="text-align: left;">
<li>Most
preferred after the full crawl has been done.</li>
<li>Does
not hamper the performance as it will crawl only modified documents not the
entire content source.</li>
<li>The
incremental crawl will retry items and postpone crawling the item if the error
persists.</li>
</ul>
<o:p></o:p><br />
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
A limitation with the Full Crawl and Incremental Crawl is we
cannot schedule both to execute parallel. For example if the Full Crawl is
already running then the Incremental Crawl cannot be triggered until the Full
Crawl completes, if you try to Stop Full Crawl then also it is mandatory to
finish at least once successful Full crawl before triggering any Incremental
Crawls.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
So Microsoft has come up with the concept of Continuous
Crawl<o:p></o:p></div>
<h2>
Continuous Crawl<o:p></o:p></h2>
<div class="MsoNormal">
With Continuous Crawl you can maintain the content index as
fresh as possible. <o:p></o:p></div>
<div class="MsoNormal">
More than one continuous
crawl can run in parallel<o:p></o:p></div>
<div class="MsoNormal">
one deep change
will not result in degraded freshness on all following changes<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
The impact of a "Continuous Crawl" is the same as
an incremental crawl.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
At the parallel execution of crawls, the "Continuous
Crawl" within the parameters defined in the "Crawler Impact
Rule" which controls the maximum number of requests that can be executed
by the server (default 8).<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJgx1okCchAEO7g8TZ5wyiqkPhdUEyb_Eq9IpU921HKgoVOzMBwMmLUPtUnma4LxdDUYo40aYc29aP7RK3x6ptWnt82AfXZDq2-y7NKG4MaGFLCQLY4Kr7dcrEY13BedpIvHNpZl96GJE/s1600/Crawler+Impact+Rule.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="262" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJgx1okCchAEO7g8TZ5wyiqkPhdUEyb_Eq9IpU921HKgoVOzMBwMmLUPtUnma4LxdDUYo40aYc29aP7RK3x6ptWnt82AfXZDq2-y7NKG4MaGFLCQLY4Kr7dcrEY13BedpIvHNpZl96GJE/s640/Crawler+Impact+Rule.png" width="640" /></a></div>
<div class="MsoNormal">
<br />
<a name='more'></a><br /></div>
<h2>
Enable Continuous Crawl using PowerShell<br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--><o:p></o:p></h2>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
#Get Search Service Application(SSA)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$ssa = Get-SPEnterpriseSearchServiceApplication<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
#Get the Content Source for which you want to enable continuous crawl<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$cs = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication
$ssa -Identity "Local SharePoint sites"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
#Set the EnableContinuousCrawls property to true<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Set-SPEnterpriseSearchCrawlContentSource -Identity $cs
-EnableContinuousCrawls $True<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
#Set the interval - You can skip this part by default SharePoint will
run continuous crawl for every 15
minutes. Here I am using 30 minutes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$interval = "30"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$ssa.SetProperty("ContinuousCrawlInterval", [int]$interval)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$ssa.Update()<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<h2>
To Disable Continuous Crawl using Powershell<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
We can use the same PowerShell script mentioned above, with
the following change in the line where we need to set ‘<b>EnableContinuousCrawls’</b> property to ‘<b>False’</b><o:p></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Set-SPEnterpriseSearchCrawlContentSource -Identity $cs
-EnableContinuousCrawls $True<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-75653041923278100522013-11-28T13:37:00.001+05:302016-08-20T06:49:32.994+05:30The Subscription Settings service and corresponding application and proxy needs to be running in order to make changes to these settings<script> if(window.location.href.indexOf('the-subscription-settings-service-and.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/The-Subscription-Settings-service-Running-SharePoint";}</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
I see the following error when I tried to configure my App
Url<o:p></o:p></div>
<div class="MsoNormal">
<v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f">
<v:stroke joinstyle="miter">
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0">
<v:f eqn="sum @0 1 0">
<v:f eqn="sum 0 0 @1">
<v:f eqn="prod @2 1 2">
<v:f eqn="prod @3 21600 pixelWidth">
<v:f eqn="prod @3 21600 pixelHeight">
<v:f eqn="sum @0 0 1">
<v:f eqn="prod @6 1 2">
<v:f eqn="prod @7 21600 pixelWidth">
<v:f eqn="sum @8 21600 0">
<v:f eqn="prod @7 21600 pixelHeight">
<v:f eqn="sum @10 21600 0">
</v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
<v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
<o:lock aspectratio="t" v:ext="edit">
</o:lock></v:path></v:stroke></v:shapetype><v:shape id="Picture_x0020_3" o:spid="_x0000_i1025" style="height: 90.75pt; mso-wrap-style: square; visibility: visible; width: 468pt;" type="#_x0000_t75">
<v:imagedata o:title="" src="file:///C:\Users\DHAVAS~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png">
</v:imagedata></v:shape><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2zvmRw2-BVu6zkKVJ-cd95nsdV0oEHBrf3u9L4mYJXCnrM_IOXGNkG5XQzlg8myZqDdvdL0i5ZJlCbBoHBlGf5gCd3n5OtHGao2Eng899KZ-QIEZNhjp-Fch2I8TW4PaLYzpwjJrM77A/s1600/Configure+APP+Url.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="123" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2zvmRw2-BVu6zkKVJ-cd95nsdV0oEHBrf3u9L4mYJXCnrM_IOXGNkG5XQzlg8myZqDdvdL0i5ZJlCbBoHBlGf5gCd3n5OtHGao2Eng899KZ-QIEZNhjp-Fch2I8TW4PaLYzpwjJrM77A/s640/Configure+APP+Url.png" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Execute the following commands</div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Get-SPManagedAccount contoso\sp_services<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$appPool = New-SPServiceApplicationPool -Name
SubscriptionServiceAppPool -Account $account <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$serviceApp = New-SPSubscriptionSettingsServiceApplication
-ApplicationPool $appPool -name "Subscription Settings Service
Application" -DatabaseName "SP2013AppSubscriptionSettingsDB" <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$serviceAppProxy = New-SPSubscriptionSettingsServiceApplicationProxy
-ServiceApplication $serviceApp<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Make sure the below services are started<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzi6ueATsw8VoIrN2iL49OGNm6JZarxt0PWn6cYg98yt1rMjbPnCVyoo0vUQ49z-LeYce0nL7-5YFphIe4jQE5aEV9ARnjlvR_zU-blMJua8-023n19Y8GtWVClVMLfT2UXEj8xVhA3c0/s1600/App+Services.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzi6ueATsw8VoIrN2iL49OGNm6JZarxt0PWn6cYg98yt1rMjbPnCVyoo0vUQ49z-LeYce0nL7-5YFphIe4jQE5aEV9ARnjlvR_zU-blMJua8-023n19Y8GtWVClVMLfT2UXEj8xVhA3c0/s640/App+Services.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoNormal">
Perform an iisreset<o:p></o:p></div>
<h2>
Configure DNS<o:p></o:p></h2>
<h3>
Create a forward lookup zone for the app domain name<o:p></o:p></h3>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">1.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Verify that the user account that performs this procedure is a
local administrator on the domain controller.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">2.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Click</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Start</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">,
point to</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Administrative
Tools</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">, and then click</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">DNS</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">3.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">In DNS Manager, right-click</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Forward Lookup Zones</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">,
and then click</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">New
Zone…</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">4.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">In the New Zone Wizard, click</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Next</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">5.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">In the</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Zone
Type</span></strong><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">page,
accept the default of</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Primary
zone</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">, and then click</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Next</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">6.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">In the</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Active
Directory Zone Replication Scope</span></strong><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">page, select the appropriate replication
method for your environment (the default is</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">To all DNS servers in this
domain</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">), and then click</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Next</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">7.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">In the</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Zone
Name</span></strong><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">page,
in the</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Zone
name</span></strong><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">box
type the name for your new app domain name (for example, ContosoApps.com), and
then click</span><span class="apple-converted-space"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-theme-font: major-fareast;"> </span></span><strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Next</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">.<o:p></o:p></span></div>
<div class="separator" style="clear: both;">
</div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">The New Zone Wizard shows
the new domain name for apps.</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><br /></span></strong></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ4CQA7BmiPyZ8BlDo503sOH0iFsVyYq0g8FMxzCucnBMbj9KiJOI_PJbtTAwcoCUIweyB2Cym9pr0uUt9mL5N5VQIbhTCpLVGn_DgtMK2dUHHb5Nd8nrIa0qRnrxvXQB9zt5vIQij9nQ/s1600/Apps+domain.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="247" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ4CQA7BmiPyZ8BlDo503sOH0iFsVyYq0g8FMxzCucnBMbj9KiJOI_PJbtTAwcoCUIweyB2Cym9pr0uUt9mL5N5VQIbhTCpLVGn_DgtMK2dUHHb5Nd8nrIa0qRnrxvXQB9zt5vIQij9nQ/s320/Apps+domain.gif" width="320" /></a></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">1.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">On the<span class="apple-converted-space"> </span><strong>Dynamic Update</strong><span class="apple-converted-space"> </span>page, select the appropriate type of
dynamic updates for your environment (the default is<span class="apple-converted-space"> </span><strong>Do
not allow dynamic updates</strong>), and then click<strong>Next</strong>.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">2.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">On the<span class="apple-converted-space"> </span><strong>Completing the New Zone Wizard</strong><span class="apple-converted-space"> </span>page, review the settings, and then
click<span class="apple-converted-space"> </span><strong>Finish</strong>.<o:p></o:p></span><br />
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"></span><br />
<a name='more'></a><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><br /></span></div>
<h3>
Create a wildcard Alias (CNAME) record for the new domain name<o:p></o:p></h3>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">1.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Verify that the user account that performs this procedure is a
local administrator on the domain controller.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">2.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">In DNS Manager, under Forward Lookup Zones, right-click the new
app domain name, and then click<span class="apple-converted-space"> </span><strong>New Alias (CNAME)</strong>.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">3.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">In the New Resource Record dialog box, in the<span class="apple-converted-space"> </span><strong>Alias
name (uses parent domain if left blank)</strong><span class="apple-converted-space"> </span>box, type<span class="apple-converted-space"> </span><strong>*</strong>.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">The Fully qualified domain
name (FQDN) box displays *. followed by the domain name that you created for
apps. For example, *.ContosoApps.com or *.Contoso-Apps.com.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">4.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Next to the<span class="apple-converted-space"> </span><strong>Fully qualified domain name (FQDN)
for target host</strong><span class="apple-converted-space"> </span>box,
type the FQDN of the server that hosts the SharePoint sites.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">For example,
SharePoint.Contoso.com.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Or:<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-list: l1 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">a.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Next to the<span class="apple-converted-space"> </span><strong>Fully qualified domain name (FQDN)
for target host</strong><span class="apple-converted-space"> </span>box,
click<span class="apple-converted-space"> </span><strong>Browse</strong><span class="apple-converted-space"> </span>and navigate to the Forward Lookup
Zone for the domain that hosts the SharePoint sites.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">For example, Contoso.com.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-list: l1 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">b.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">And then navigate to the record that points to the server that
hosts the SharePoint site.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">For example, SharePoint.<o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">New Resource Record dialog
box shows the wildcard alias for the app domain and the FQDN of the server that
hosts the SharePoint sites.</span></strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><br /></span></strong></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmhGpdaqlN6lEox8HUwEruFzDWocXNliC0TXjE8r5mUyZ8DJl5JlPsGU_B3DIY7VArXZyN1QUFYbZXQ5gwBcQRCLMM3_R3PmHwwWKlisnNKA3PfdDE1DELNJa2cyCuTAl3bwqFwayl4VY/s1600/Apps+FQDN.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmhGpdaqlN6lEox8HUwEruFzDWocXNliC0TXjE8r5mUyZ8DJl5JlPsGU_B3DIY7VArXZyN1QUFYbZXQ5gwBcQRCLMM3_R3PmHwwWKlisnNKA3PfdDE1DELNJa2cyCuTAl3bwqFwayl4VY/s320/Apps+FQDN.gif" width="288" /></a></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><br /></span></strong></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><br /></span></strong></div>
<div class="MsoNormal" style="line-height: 12.75pt; margin-left: .5in; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-no-proof: yes;"><v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f">
<v:stroke joinstyle="miter">
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0">
<v:f eqn="sum @0 1 0">
<v:f eqn="sum 0 0 @1">
<v:f eqn="prod @2 1 2">
<v:f eqn="prod @3 21600 pixelWidth">
<v:f eqn="prod @3 21600 pixelHeight">
<v:f eqn="sum @0 0 1">
<v:f eqn="prod @6 1 2">
<v:f eqn="prod @7 21600 pixelWidth">
<v:f eqn="sum @8 21600 0">
<v:f eqn="prod @7 21600 pixelHeight">
<v:f eqn="sum @10 21600 0">
</v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
<v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
<o:lock aspectratio="t" v:ext="edit">
</o:lock></v:path></v:stroke></v:shapetype><v:shape alt="Create a CNAME alias for the app domain" id="Picture_x0020_7" o:spid="_x0000_i1025" style="height: 335.25pt; mso-wrap-style: square; visibility: visible; width: 302.25pt;" type="#_x0000_t75">
<v:imagedata o:title="Create a CNAME alias for the app domain" src="file:///C:\Users\DHAVAS~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.gif">
</v:imagedata></v:shape></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Segoe UI";">5.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;">Click<span class="apple-converted-space"> </span><strong>OK</strong>.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal">
Go Ahead and Load the Page “Configure App URLs” page, it
should load successfully.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Happy SharePointing !</div>
<div style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<strong><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt;"><br /></span></strong></div>
<div class="MsoNormal">
<br /></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-63179002593916138812013-11-28T13:30:00.000+05:302016-08-20T06:49:16.552+05:30'Install app for SharePoint': Failed to install app for SharePoint<script> if(window.location.href.indexOf('install-app-for-sharepoint-failed-to.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Install-app-for-SharePoint";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
Now after enabling the “Developer Site” feature on my site
collection, I go ahead and deploy the same App but now this time I get this
error<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF4HDURZWxBB-tBr3PIFs2M-I-6tfCuhx7xAIXeUWgaFRiDD3h47xKqgNL_9p0A8NOh8k8XZ_3L9r-ETfm_UaIEwGSwMmVhH47l_pmPwSCF6wL7gaft8v3jivbmTwY40Qhdj2LJFqtRTo/s1600/Failed+to+install+app+for+SharePoint.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="97" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF4HDURZWxBB-tBr3PIFs2M-I-6tfCuhx7xAIXeUWgaFRiDD3h47xKqgNL_9p0A8NOh8k8XZ_3L9r-ETfm_UaIEwGSwMmVhH47l_pmPwSCF6wL7gaft8v3jivbmTwY40Qhdj2LJFqtRTo/s640/Failed+to+install+app+for+SharePoint.png" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f">
<v:stroke joinstyle="miter">
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0">
<v:f eqn="sum @0 1 0">
<v:f eqn="sum 0 0 @1">
<v:f eqn="prod @2 1 2">
<v:f eqn="prod @3 21600 pixelWidth">
<v:f eqn="prod @3 21600 pixelHeight">
<v:f eqn="sum @0 0 1">
<v:f eqn="prod @6 1 2">
<v:f eqn="prod @7 21600 pixelWidth">
<v:f eqn="sum @8 21600 0">
<v:f eqn="prod @7 21600 pixelHeight">
<v:f eqn="sum @10 21600 0">
</v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
<v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
<o:lock aspectratio="t" v:ext="edit">
</o:lock></v:path></v:stroke></v:shapetype><v:shape id="Picture_x0020_2" o:spid="_x0000_i1025" style="height: 73.5pt; mso-wrap-style: square; visibility: visible; width: 468pt;" type="#_x0000_t75">
<v:imagedata o:title="" src="file:///C:\Users\DHAVAS~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png">
</v:imagedata></v:shape><o:p></o:p></div>
<div class="MsoNormal">
Now this error comes up because I have not configured app
catalog or app catalog url<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
So I need to create a catalog app catalog site first</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<ol style="text-align: left;">
<li>Go to Central Administration ->Apps</li>
<li>Go to “App Management” -> Manage App Catalog</li>
<li>Select any appropriate web application where you want to create app catalog site and give it a name</li>
<li>Click ok.</li>
</ol>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l1 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l1 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoNormal">
But when I click the “Configure App URL” I get the below
error.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<br />
<div class="MsoNormal">
<span style="color: red;">The Subscription Settings service
and corresponding application and proxy needs to be running in order to make
changes to these settings<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: red;"><br /></span></div>
<div class="MsoNormal">
More about this error in my next post over <a href="http://kalashnikovtechnoblogs.blogspot.in/2013/11/the-subscription-settings-service-and.html" target="_blank">here</a> !</div>
<div class="MsoNormal">
<span style="color: red;"><br /></span></div>
</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-30156177647981747822013-11-28T13:25:00.000+05:302016-08-20T06:49:03.138+05:30Sideloading of apps is not enabled on this site <script> if(window.location.href.indexOf('sideloading-of-apps-is-not-enabled-on.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Sideloading-of-apps-is-not-enabled-on-this-site";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
I created my first SharePoint 2013 App and tried to deploy
it in my SharePoint Farm and it shoot me the below error right into visual
studio.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAXj3Drm4ZR4y9zKfDgK34QojBTPXYgkcwH7KHDb4Yl7Tea5AuUumQtIunHYpHSzxDu4GuqIfWQUN-uh_0c45EjBMjuVDlkYm9zrLa5sPQR-VqgQmRpmrtGfuZq7I0vrUIz5AoO0L5zDc/s1600/Sideloading+of+apps+is+not+enabled+on+this+site.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAXj3Drm4ZR4y9zKfDgK34QojBTPXYgkcwH7KHDb4Yl7Tea5AuUumQtIunHYpHSzxDu4GuqIfWQUN-uh_0c45EjBMjuVDlkYm9zrLa5sPQR-VqgQmRpmrtGfuZq7I0vrUIz5AoO0L5zDc/s640/Sideloading+of+apps+is+not+enabled+on+this+site.png" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #444444; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; line-height: 115%; mso-fareast-font-family: "Times New Roman"; mso-no-proof: yes;"><v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f">
<v:stroke joinstyle="miter">
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0">
<v:f eqn="sum @0 1 0">
<v:f eqn="sum 0 0 @1">
<v:f eqn="prod @2 1 2">
<v:f eqn="prod @3 21600 pixelWidth">
<v:f eqn="prod @3 21600 pixelHeight">
<v:f eqn="sum @0 0 1">
<v:f eqn="prod @6 1 2">
<v:f eqn="prod @7 21600 pixelWidth">
<v:f eqn="sum @8 21600 0">
<v:f eqn="prod @7 21600 pixelHeight">
<v:f eqn="sum @10 21600 0">
</v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
<v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
<o:lock aspectratio="t" v:ext="edit">
</o:lock></v:path></v:stroke></v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1025" style="height: 89.25pt; mso-wrap-style: square; visibility: visible; width: 467.25pt;" type="#_x0000_t75">
<v:imagedata o:title="" src="file:///C:\Users\DHAVAS~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png">
</v:imagedata></v:shape></span><o:p></o:p></div>
<div class="MsoNormal">
This Error comes up when you try to deploy app to site which
is not a developer site. If you create a developer site and deploy the same
app, it will work just fine.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
But you can just go ahead using the same site by enabling
the “Developer Site” feature on your current site collection<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Execute the following PowerShell command on SharePoint
PowerShell<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638">
<div class="MsoNormal" style="margin-bottom: 7.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 7.5pt;">
Enable-SPFeature
-Identity e374875e-06b6-11e0-b0fa-57f5dfd72085 -url <siteurl><span style="color: #444444; font-family: "Segoe UI","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 7.5pt;">
<br /></div>
</td>
</tr>
</tbody></table>
<br /><div>
Happy SharePointing !</div>
</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-13043755798190383122013-11-28T13:15:00.001+05:302016-08-20T06:48:50.821+05:30The SharePoint Server Publishing Infrastructure feature must be activated at the site collection level before the Publishing feature can be activated.<script> if(window.location.href.indexOf('the-sharepoint-server-publishing.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/SharePoint-Server-Publishing-Infrastructure-feature-must-be-activated";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
While creating a new search site in my site collection I got
this error!<o:p></o:p></div>
<br /><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb9ELq5eamMt_PtQP41P-9aMMwRgkXi7zRNfAMzbEyuW0Irxc6jQw5nSrRIUy_0CjxFcENv1FaVhYUxnvAMF1P_hYX1Rx7EjwPAZNX7T4jW7KmnDfV0xYs62dZyHnnGktU2sWHUzLpoLQ/s1600/SharePoint+Server+Publishing+Infrastructure+feature.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb9ELq5eamMt_PtQP41P-9aMMwRgkXi7zRNfAMzbEyuW0Irxc6jQw5nSrRIUy_0CjxFcENv1FaVhYUxnvAMF1P_hYX1Rx7EjwPAZNX7T4jW7KmnDfV0xYs62dZyHnnGktU2sWHUzLpoLQ/s640/SharePoint+Server+Publishing+Infrastructure+feature.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoNormal">
You might get this error while creating Business
Intelligence Center site<o:p></o:p></div>
<div class="MsoNormal">
<b><br /></b></div>
<div class="MsoNormal">
<b>Resolution</b>:<o:p></o:p></div>
<h2>
Activate publishing at the site collection level<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]-->1.<span style="font-size: 7pt;">
</span><!--[endif]-->From the root of your site collection, click
Settings Small Settings gear that took the place of Site Settings. > Site
settings.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]-->2.<span style="font-size: 7pt;">
</span><!--[endif]-->On the Site Settings page under Site Collection
Administration, click Site collection features.<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]-->3.<span style="font-size: 7pt;">
</span><!--[endif]-->On the Site Features page, scroll down to
SharePoint Server Publishing Infrastructure and click Activate.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Once publishing features are activated, sub sites inherit
them automatically. But, if you built a site before activating the publishing
infrastructure, you’ll have to manually activate it for each site.<o:p></o:p></div>
<h2>
<br /></h2>
<h2>
Activate publishing at the site level<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]-->1.<span style="font-size: 7pt;">
</span><!--[endif]-->From any page within the site, click (gear icon)
Settings Small Settings gear that took the place of Site Settings. > Site
settings.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]-->2.<span style="font-size: 7pt;">
</span><!--[endif]-->On the Site Settings page, in the Site Actions
section, click Manage site features.<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]-->3.<span style="font-size: 7pt;">
</span><!--[endif]-->On the Site Features page, next to SharePoint
Server Publishing, click Activate.<o:p></o:p></div>
<h2>
<br /></h2>
<h2>
Using Powershell<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Execute the below command in SharePoint Management Shell<o:p></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Enable-SPFeature -Identity PublishingSite -Url <a href="http://sp2013labapp01/">http://sp2013labapp01/</a><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Enable-SPFeature -Identity PublishingWeb -URL <a href="http://sp2013labapp01/">http://sp2013labapp01/</a><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Happy Sharepointing !</o:p></div>
</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-59387313197802222582013-11-28T12:10:00.000+05:302016-08-20T06:48:36.975+05:30SharePoint 2013 Apps - Troubleshooting Common Errors<script> if(window.location.href.indexOf('sharepoint-2013-apps-troubleshooting.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/SharePoint-2013-Apps-Troubleshooting-Common-Errors";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h1>
Error occurred in deployment step 'Install app for SharePoint': The System
Account cannot perform this action<o:p></o:p></h1>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpa2AzAjY8XA-oTwZlFd0XJutpBUZ4-1E9uqM6h-RZWqED84_ebD0meNkzvYMyzSWE9PSA4VqyLk7_GiVwdNGFodZof-tmkqphhyphenhyphenHOtjiyKUIrKgxEKEu1xSjoy8pmMN-QJx3G2VxIBnE/s1600/Sharepoint+App+System+Account+Error.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="113" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpa2AzAjY8XA-oTwZlFd0XJutpBUZ4-1E9uqM6h-RZWqED84_ebD0meNkzvYMyzSWE9PSA4VqyLk7_GiVwdNGFodZof-tmkqphhyphenhyphenHOtjiyKUIrKgxEKEu1xSjoy8pmMN-QJx3G2VxIBnE/s640/Sharepoint+App+System+Account+Error.png" width="640" /></a></div>
<br /><div class="MsoNormal">
I was trying to deploy the App with the system account I used
to configure/setup my SharePoint 2013.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
In SharePoint 2013, System Account cannot deploy any app
into the SharePoint because of security reasons.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Workaround</b>:<o:p></o:p></div>
<div class="MsoNormal">
</div>
<ol style="text-align: left;">
<li>Create/User another account to open the visual studio and
try deploy the App</li>
<li>However, Newly created account should have following permissions</li>
<ul>
<li>Add the new account to FARM administrator’s group in Central Administration</li>
<li>Created account should be part of local server admin group</li>
</ul>
</ol>
<div>
</div>
<br />
<div class="MsoNormal">
Happy SharePointing !!<o:p></o:p></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-45587071473329463532013-11-28T11:47:00.000+05:302016-08-20T06:48:22.779+05:30Target Audiences in SharePoint<script> if(window.location.href.indexOf('target-audiences-in-sharepoint.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Target-Audiences-in-SharePoint";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br /><div class="MsoNormal">
Audiences are created as part of the User Profiles service
in SharePoint, and a user’s inclusion in an audience is defined by a set of
rules that can combine membership in groups or user profile property
comparisons.<o:p></o:p></div>
<div class="MsoNormal">
Audience targeting is use to personalize content display
including list or library items, navigation links, or Web Parts. Audience
targeting is commonly used to filter news items on Portals. As an example, the
Content By Query Web Part (CQWP) supports audience targeting when doing content
aggregation.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<u>***Since the Target Audiences field is not defined as a
Site Column, the column cannot be added to a Content Type through the
SharePoint User Interface<o:p></o:p></u></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="background: #F1F1F1; line-height: 13.5pt; margin-bottom: 13.5pt; vertical-align: baseline;">
It allows your page to configure itself
depending on who is viewing it. For instance you could use Target Audiences to:<o:p></o:p></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-size: 10.0pt; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Wingdings;">§<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]-->Show
an English language test to one set of people and a Spanish language one to
another<o:p></o:p></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-size: 10.0pt; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Wingdings;">§<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]-->Show
an assessment only to approved people<o:p></o:p></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-size: 10.0pt; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Wingdings;">§<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]-->Show
a different survey to people depending on their context<o:p></o:p></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-size: 10.0pt; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Wingdings;">§<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]-->Show
an observational assessment only to instructors or monitors, and not show it to
ordinary participants<o:p></o:p></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-size: 10.0pt; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Wingdings;">§<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]-->Give
different assessments to people in different departments<o:p></o:p></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;">
<br /></div>
<h2>
What to choose for Target Audience?<o:p></o:p></h2>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;">
It’s easiest to choose audiences as SharePoint
groups, distribution lists or security groups used in authentication <o:p></o:p></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;">
You can also define rules-based groups of
people called global audiences, which gives potential of more sophisticated
filtering. <o:p></o:p></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-74215634589314246042013-09-24T15:12:00.004+05:302016-08-20T06:48:13.503+05:30Site Definition Versus Site Templates<script> if(window.location.href.indexOf('site-definition-versus-site-templates.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Site-Definition-Versus-Site-Templates";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Site Definition:<o:p></o:p></span></h2>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">Site definitions consist primarily of multiple XML and ASPX
files stored on a front-end web server in folders under the
%ProgramFiles%\Common Files\Microsoft Shared\web server
extensions\14\TEMPLATE\SiteTemplates directory.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 22.5pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Arial, Helvetica, sans-serif;">-
<!--[endif]-->Old & Out of Date<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 22.5pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Arial, Helvetica, sans-serif;">-
<!--[endif]-->Involves managing of lot of tedious onet.xml and
schema.xml files.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 22.5pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Arial, Helvetica, sans-serif;">-
<!--[endif]-->A site definition is installed on file system of
web front ends<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 22.5pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Arial, Helvetica, sans-serif;">-
<!--[endif]-->A site definition Page and List definition are
cached at IIS process startup<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"> <o:p></o:p></span></div>
<h2>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Custom Site Templates: <o:p></o:p></span></h2>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"> Custom web templates
are stored in the database—specifically, the sandbox solutions gallery—and are
created by using an existing site, with or without its specific content, as a
model. This provides a means for reusing sites that you have customized.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"> ***The first option
for getting the SharePoint Designer changes beyond the current site is to take
the site you have modified with SharePoint designer and save it as a template.
You can download the template and upload this to another site collection and
can create a site based on this template. Whenever you need a new site you can
create it from the site template you have created. This is a good approach if
the design is finalized and you want to reuse the same template in different
site collections. But keep in mind you can't go back and apply the changes
after the site is created. If you make any changes to the work that you did on
the original site then those changes won't be reflected across the other
SharePoint sites that were created from the same template. This is because each
page exists separately in the SharePoint database.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"> <o:p></o:p></span></div>
<h2>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"> Major differences:</span></h2>
<div>
<ul style="text-align: left;">
<li><span style="font-family: Arial, Helvetica, sans-serif;">To create or use a site definition you need server admin access, but site template can install from web UI by site owners.</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">Site definition supports feature stapling, but for site template additional features must be activated in gallery.</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">Site definitions are stored on hard disk, but site templates are stored in content DB.</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">Site definition can provision multiple webs, but site templates are for single web only.</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">Creating site definition is relatively more complex than site template creation.</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">Performance wise Site definitions are better than site templates as files are stored on harddisk</span></li>
</ul>
<div>
<span style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><br /></span></div>
<div>
<span style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Happy Sharepointing !</span><br style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #414141; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Please do Share/Like/Comment if this article was helpful.</span></div>
</div>
</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com1tag:blogger.com,1999:blog-3491291188017485732.post-68594514999002579182013-09-07T13:41:00.000+05:302016-08-20T06:48:04.946+05:30List Columns vs Site Columns vs Content Type<script> if(window.location.href.indexOf('list-columns-vs-site-columns-vs-content.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/List-Columns-Site-Columns-Content%20Type";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<h3 style="text-align: left;">
List & Library Columns</h3>
Most Popular and Easy way to create columns. It’s accessible directly from the ribbon and is available on all lists and libraries. <span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<b>Advantage</b>: Well, it’s easy to create. Within seconds<br />
<b>Disadvantages</b>: It’s easy to create. Yes, The option is right there in front of you in the ribbon and will satisfy the immediate need for a column. However, it doesn’t promote reusability or help leverage what already exist in a parent site. It exists in that list or library once it’s created and that’s it.<br />
A customer once had close to a 100 document libraries in a site. They all had one column that was exactly the same. Now to update they have to update the column in all the document libraries<br />
<br />
<h3 style="text-align: left;">
Site Column</h3>
They are columns that we create in a SharePoint site to be available to its’ sub sites.<br />
<b>Advantages</b>: It can be reused by multiple lists and libraries within and a site and its’ sub sites. It also helps by centralizing the configuration of the column in one place which makes it easier to update choices in a choice column for example that are used by multiple lists and libraries.<br />
It allows all sites from a Site Collection to lookup information in a single list like a customers or manufacturers list for example.<br />
<b>Disadvantages</b>: It is not so intuitive to create as the list/library column and you need administrative rights to create it. If overused, it can create a chaos amongst available sub sites. It also requires the administrator to think about his columns and architecture every time he creates one.<br />
<br />
<br />
<h3 style="text-align: left;">
Content Type</h3>
A Content Type is a reusable, shareable metadata. The base type of a content type could be an existing content type like Item, Document, Folder, Event, Task, Message, Comment, Post.<br />
Content Types are basically a way of grouping Site Columns together into a reusable group that represents some kind of content to us. For example I could group the Site Columns Invoice #, Customer and Related Product together into an “Invoice Content Type”<br />
<b>Example </b>: Announcement List or Task List are basic content type provided by microsoft.<br />
- Content Type, just like Site Columns, it is pushed to all sub sites of the designated site where it was created.<br />
- A Content Type can only exist within a Site Collection, if you want to reuse it in another you will have to recreate it or you can use content type hub.<br />
- You can attach a workflow to your content type<br />
<br />
<b>Advantages </b>: Content Types are necessary to organize reusable content and configurations within SharePoint. Making sure all Invoices have the same metadata and document templates for example. It can inherit from the other content types<br />
<b>Disadvantages </b>: Little bit complex<br />
<br />
<b>Example</b> : Suppose i have a document library for each client. one doc library for georgia pacific, one doc lib for infosys and one doc library for Cisco<br />
Now each doc library will contain specific documents like invoice, contract agreement, sales document, etc<br />
Here i can use site columns and it would work for me but the columns wont be tightly integrated or grouped with each document.<br />
So its better if we create a content type for invoice doc, sales doc or contract agreement.<br />
<br />
<br />
<h3 style="text-align: left;">
Content Type Hub </h3>
Now as I mentioned earlier content type are available to only with the sites and it's subsites. Now to overcome this we have content type hub.<br />
Content Type Hub is a central location where you can manage and publish your content types – so now web applications can subscribe to this hub and pull down the published content types from the hub<br />
<br />
Happy Sharepointing !<br />
<br />
Please do Share/Like/Comment if this article was helpful.</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-1977378561185118932013-09-05T19:04:00.000+05:302016-08-20T06:46:09.055+05:30Sharepoint Branding And Customizations - Part 3<script> if(window.location.href.indexOf('sharepoint-branding-and-customizations.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Sharepoint-Branding-And-Customizations-Part-3";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Al right</span></span><span style="font-family: Verdana, sans-serif;"> as I mentioned in my first <a href="http://kalashnikovtechnoblogs.blogspot.in/2012/06/sharepoint-branding-and-customizations.html" target="_blank">article </a>of this series, let's see how we can embed you tube video to your SharePoint site.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<h4 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Embed YouTube Video</span></h4>
<span style="font-family: Verdana, sans-serif;">As difficult it sounds, its actually very easy with the content editor web-part of the </span><span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">SharePoint. </span></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">First of all add a content editor web-part to your SharePoint page. While editing the web-part, go to the Format Text option under the Editing Tools option in Robbon. Select 'Edit HTML Source' as shown below.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihhjz_B_9vx45mpSvMKc_fxaigiS9tyE-RLXKjPu-_nS5w84eK3-jSho9oap_7iuh5Nb4-VROz5DzLjDRX1gO96v9uDMBe4z3CnKt1KCZdv6zrFP0q-IhZs8Dv8MTrpSziWIvH9WzJxG8/s1600/Dhaval_Shah_Sharepoint_Blogs_edit_webpart.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihhjz_B_9vx45mpSvMKc_fxaigiS9tyE-RLXKjPu-_nS5w84eK3-jSho9oap_7iuh5Nb4-VROz5DzLjDRX1gO96v9uDMBe4z3CnKt1KCZdv6zrFP0q-IhZs8Dv8MTrpSziWIvH9WzJxG8/s1600/Dhaval_Shah_Sharepoint_Blogs_edit_webpart.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span style="font-family: Verdana, sans-serif;">It will open a Dialog box to enter your HTML code.</span><br />
<span style="font-family: Verdana, sans-serif;">Now go to youtube and select any video of your choice. Mine is "When you nothing say at all". Right Click on your video and select 'Copy Embed Code' as shown below</span>
<br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiMoUNpLj_lMkNKGZWL7khe3L4KNa09EaThRcFqtFNX5Gb524g9FSHRDsxfJEmfBm7h7j7zHPUGdCz2FbbdXmff2EfI2ktTrwpZr2XvzelwEnPaJVAdOwlr_k2GTWEL3QL4CvOM50ROYo/s1600/Dhaval+Shah+Sharepoint+Blogs+Youtube.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiMoUNpLj_lMkNKGZWL7khe3L4KNa09EaThRcFqtFNX5Gb524g9FSHRDsxfJEmfBm7h7j7zHPUGdCz2FbbdXmff2EfI2ktTrwpZr2XvzelwEnPaJVAdOwlr_k2GTWEL3QL4CvOM50ROYo/s1600/Dhaval+Shah+Sharepoint+Blogs+Youtube.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">It will copy this into your clipboard</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><object style="height: 390px; width: 640px"><param name="movie" value="http://www.youtube.com/v/AuJrEBtmM1Q?version=3&feature=player_detailpage"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/AuJrEBtmM1Q?version=3&feature=player_detailpage" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></object></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGM7sWtvJqrT9qVsmEZwPI-phDS0tPW9Ka82h5kTdeX5ww2mVJ92D8Tp8rH4rlnUAmjbotpkJLJ_Z3JDR6VTY8fbDyWPyMkrXuNlWL1BlOUv3sfBiV4AMr4dxmq00cInHyfFfLtF-emsw/s1600/Dhaval+Shah+Favourite+Song.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGM7sWtvJqrT9qVsmEZwPI-phDS0tPW9Ka82h5kTdeX5ww2mVJ92D8Tp8rH4rlnUAmjbotpkJLJ_Z3JDR6VTY8fbDyWPyMkrXuNlWL1BlOUv3sfBiV4AMr4dxmq00cInHyfFfLtF-emsw/s1600/Dhaval+Shah+Favourite+Song.png" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br />Paste the above code in the dialog box and Click ok. Save the page and you are ready to go ! </span><br />
<h4 style="text-align: left;">
<br /></h4>
<span style="font-family: Verdana, sans-serif;">Happy Sharepointing !</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"></span><br />
<span style="font-family: Verdana, sans-serif;">Please do Share/Like/Comment if this article was helpful.</span></div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-28230218939341696772013-09-05T19:02:00.001+05:302016-08-20T06:45:54.897+05:30Sharepoint 2013 - Working with Thesaurus And Synonyms<script> if(window.location.href.indexOf('sharepoint-2013-working-with-thesaurus.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Sharepoint-2013-Thesaurus-Synonyms";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
I wanted that my search center should return the results with the synonyms for the particular search keyword. I tried to do it the way we do in Sharepoint 2010.<br />
Locate the thesaurus file from %ProgramFiles%\Microsoft Office Servers\14.0\Data\Office Server\Applications\GUID-query-0\Config, where GUID is the GUID of the new Search service application. Something like mentioned <a href="http://www.techgrowingpains.com/2012/05/sharepoint-search-synonyms-thesaurus-and-you/" target="_blank">here</a>.<br />
<br />
It was pretty good where we had two functionalities "Replacement Sets" & "Expansion Sets", But for Sharepoint 2013 these they have eliminated it.<br />
<br />
Below are the steps to do that in Sharepoint 2013<br />
1. Create a thesaurus file<br />
2. Install the Thesaurus file<br />
3. Check the results<br />
<br />
<b>1. Create a thesaurus file</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> Create a .csv file with the columns Key, Synonym and Language.<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><b>Key </b>- Term (single or multiple words) that you want to trigger a synonym for when the term occurs in a query<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><b>Synonym </b>- Synonym (single or multiple words) that you want to add to the query if the term specified in the Key column occurs in a quer<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><b>Language</b>(Optional) - Abbreviation for the language for which the synonym should apply<br />
<br />
This is how my thesaurus.csv file will look.<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG91q9hncD7Mz2GAgWoCj6fCsTzPuk9LcpQNhMQFJMtEMfH9jC1xubsw3BuYnW8R19QdtccyGw_ueMup5k2arnskjWSzcYJE-p4N-JXzange5LNwBVQc03lHjqIlleT5DX_BSql7pkJ6s/s1600/Thesaurus.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG91q9hncD7Mz2GAgWoCj6fCsTzPuk9LcpQNhMQFJMtEMfH9jC1xubsw3BuYnW8R19QdtccyGw_ueMup5k2arnskjWSzcYJE-p4N-JXzange5LNwBVQc03lHjqIlleT5DX_BSql7pkJ6s/s320/Thesaurus.png" width="320" /></a></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<b>2. Install the thesaurus File</b><br />
This can be done using powershell<br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>$searchApp = Get-SPEnterpriseSearchServiceApplication<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Import-SPEnterpriseSearchThesaurus -SearchApplication $searchApp -Filename <Path><br />
<br />
<Path> specifies the full UNC path of the .csv file (the thesaurus) to be imported.<br />
<br />
<b>3. Check The Results</b><br />
As you can see in the figure, whenever i want to search for "Internet Explorer" it should return the results with "IE" or "IE5" or "IE6" or "IE7"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3jh3gri9N7Jp_fHY-a5ycAxT2CLaJGHRODYUSXilJoYlCGhYhVt_K3bthJkCjf0BJc_sCGeuVbcdBq66g37W3Gv3qhEJpRPb95Fd4Goec8rU5FnLmU7A6OyzuHNnzg6zwADHmkjn6rY4/s1600/figure2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3jh3gri9N7Jp_fHY-a5ycAxT2CLaJGHRODYUSXilJoYlCGhYhVt_K3bthJkCjf0BJc_sCGeuVbcdBq66g37W3Gv3qhEJpRPb95Fd4Goec8rU5FnLmU7A6OyzuHNnzg6zwADHmkjn6rY4/s320/figure2.png" width="320" /></a></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>One more thing to note over here is, if i search for "IE" or "IE5" or "IE6" or "IE7" it will return only that particular results.<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha517tXdMJFVYqa248AprqvRQBY0tSk9KdQIXrmx9Xpf5KDS3fRG6pqnomIgP5HaO-2YOx-xtI7ztyICZIKxVkzBdVqKWexZxrHDuG8YTiT6IgxJUh92gFZsXnaMPAfSa4MEYeXOcNcEM/s1600/figure1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha517tXdMJFVYqa248AprqvRQBY0tSk9KdQIXrmx9Xpf5KDS3fRG6pqnomIgP5HaO-2YOx-xtI7ztyICZIKxVkzBdVqKWexZxrHDuG8YTiT6IgxJUh92gFZsXnaMPAfSa4MEYeXOcNcEM/s320/figure1.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Key Points:</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ol style="text-align: left;">
<li>I find the new approach in SharePoint 2013 a bit cumbersome, only good thing about it was power shell support and it does not require restart of Search service</li>
<li>It does not have Replacement Set option, so we cannot replace the keyword search with our option. For example, I cannot replace the search with "NT5" keyword search with the "Windows 2000" and "W2K". Which was possible with SharePoint 2010</li>
<li>It is not as extensible as expansion set. Here only one to one mapping is possible. For example, i had to write 4 entries to include the search for IE5,IE6,IE7 and IE when user searches for "Internet Explorer"</li>
</ol>
<div>
<div>
Happy Sharepointing !</div>
<div>
<br /></div>
<div>
Please do Share/Like/Comment if this article was helpful.</div>
</div>
<br />
</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-22276486563639604122013-09-05T18:46:00.001+05:302016-08-20T06:45:42.197+05:30Sharepoint 2013 - Query Spelling Suggestions<script> if(window.location.href.indexOf('sharepoint-2013-query-spelling.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Sharepoint-2013-Query-Spelling-Suggestions";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
Query Spelling Suggestions<br />
<br />
When searching we sometimes spell words incorrectly. We often see it in Google, Did you mean: Sharepoint ? One of the features of SharePoint 2013 Search are Query Spelling Suggestions that process the words from the search query and control if they are spelled correctly. <br />
In Sharepoint 2013 it is controlled using Query Spelling Suggestions, it will look something like this<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGu0_kevvCDHrWSzDL949y2bSvIk_oh3qrjA3LE8pbL1EpnAhrDdzpjkFmM4Sr_EhPjKm4F2rJw4nAsaf2xQOYmiPLj-w9SqwPPNs4SJ3UlcbiaTt5U0qTnaiGYLfnACI5rrHIDejATKg/s1600/Search+Dictionaries1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="95" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGu0_kevvCDHrWSzDL949y2bSvIk_oh3qrjA3LE8pbL1EpnAhrDdzpjkFmM4Sr_EhPjKm4F2rJw4nAsaf2xQOYmiPLj-w9SqwPPNs4SJ3UlcbiaTt5U0qTnaiGYLfnACI5rrHIDejATKg/s320/Search+Dictionaries1.png" width="320" /></a></div>
There are two types of Query spelling suggestions works with two types of spelling dictionary viz Static and Dynamic mode<br />
Dynamic - The query spelling correction uses the content-aligned dictionary<br />
Static - The query spelling correction uses the out of the box static spelling dictionaries<br />
<br />
You can configure the dictionary mode using the following command<br />
<br />
$ssa = Get-SPEnterpriseSearchServiceApplication<br />
Get-SPEnterpriseSearchQuerySpellingCorrection -SearchApplication $ssa<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkK7CIPJ5647UCgU1d3yF0KI2A_15_XRrmxsB79XINIOzSzIwFidArEQbGN46x_MSiJNmkXtB0wmZtzjcvHs7UxMvFzvhVDm4mZ_8KpHWPtnV0GliV0484E6c3L1NgD983LljI86l3zQQ/s1600/Get-SPEnterpriseSearchQuerySpellingCorrection.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="95" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkK7CIPJ5647UCgU1d3yF0KI2A_15_XRrmxsB79XINIOzSzIwFidArEQbGN46x_MSiJNmkXtB0wmZtzjcvHs7UxMvFzvhVDm4mZ_8KpHWPtnV0GliV0484E6c3L1NgD983LljI86l3zQQ/s400/Get-SPEnterpriseSearchQuerySpellingCorrection.png" width="400" /></a></div>
<br />
Set-SPEnterpriseSearchQuerySpellingCorrection -SearchApplication $ssa -SpellingDictionary Static<br />
<br />
Query Spelling Exclusions and Query Spelling Inclusions:<br />
SharePoint 2013 uses two Global Term Sets called Query Spelling Exclusions and Query Spelling Inclusions to define the query spelling suggestions.<br />
1. Query Spelling Exclusions - Term Sets/Words that you never want to be suggested.<br />
2. Query Spelling Inclusions - Term Sets/ Words that you want to be suggested<br />
<br />
For Eg : If user searches for 'Dhawal' you know that it's incorrect spelling, so this word you can enter it in the Query Spelling Inclusions as shown below<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGu0_kevvCDHrWSzDL949y2bSvIk_oh3qrjA3LE8pbL1EpnAhrDdzpjkFmM4Sr_EhPjKm4F2rJw4nAsaf2xQOYmiPLj-w9SqwPPNs4SJ3UlcbiaTt5U0qTnaiGYLfnACI5rrHIDejATKg/s1600/Search+Dictionaries1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGu0_kevvCDHrWSzDL949y2bSvIk_oh3qrjA3LE8pbL1EpnAhrDdzpjkFmM4Sr_EhPjKm4F2rJw4nAsaf2xQOYmiPLj-w9SqwPPNs4SJ3UlcbiaTt5U0qTnaiGYLfnACI5rrHIDejATKg/s400/Search+Dictionaries1.png" width="400" /></a></div>
<br />
So here whenever user searches for the 'Dhawal', 'Dhavall' or 'Dhawall', Search will ask if Did You Mean 'Dhaval'<br />
<br />
Note : You will have to execute 'Search Custom Dictionaries Update' Timer Job so that your query spelling suggestions are reflected. </div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-12919260828841469672013-09-02T17:50:00.000+05:302016-08-20T06:45:29.357+05:30Controlling growth using quotas<script> if(window.location.href.indexOf('controlling-growth-using-quotas.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Controlling-growth-using-quotas-SharePoint";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
Can we control the amount of content that can be stored
within a Site Collection so that it doesn’t grow beyond acceptable boundaries?<o:p></o:p></div>
<div class="MsoNormal">
Yes, Using <b>Quotas</b>
<o:p></o:p><br />
<b><br /></b></div>
<div class="MsoNormal">
What is it?<o:p></o:p></div>
<div class="MsoNormal">
A <em><span style="font-family: "Calibri","sans-serif"; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-latin;">quota</span></em> specifies
storage limit values for the maximum amount of data that can be stored in a
site collection. Quotas also specify the storage size that, when reached,
triggers an e-mail alert to the site collection administrator. <em><span style="font-family: "Calibri","sans-serif"; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-latin;">Quota templates</span></em> apply these settings
to any site collection in a SharePoint farm.<o:p></o:p><br />
<br /></div>
<div class="MsoNormal">
<b>Resource Points <o:p></o:p></b></div>
<div class="MsoNormal">
Resource points correspond to specific levels of resource
usage that you can define for up to 15 system resources that you want to
monitor. Each of these resource measures accumulates points based on a single
sandboxed solution's use of that resource, and those points are aggregated
toward a quota that has been set for the whole site collection<o:p></o:p></div>
<span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US; mso-hansi-theme-font: minor-latin;">When sandboxed code
executes, certain metrics are collected such as % processor time and # of unhandled
exceptions. Timer jobs compile the metrics and calculate resource points
usage. When the total resource points used exceeds the daily limit (300
points by default), the sandbox is turned off for the entire site
collection. The following table describes the metrics collected and how
they are normalized to resource points: </span><br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableLightShadingAccent1" style="border-collapse: collapse; border: none; mso-border-bottom-alt: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-alt: solid #4F81BD 1.0pt; mso-border-top-themecolor: accent1; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184; width: 707px;">
<tbody>
<tr>
<td style="border-bottom: solid #4F81BD 1.0pt; border-left: none; border-right: none; border-top: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Resource<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border-left: none; border-right: none; border-top: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Description<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border-left: none; border-right: none; border-top: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Units<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border-left: none; border-right: none; border-top: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Resources per Point<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border-left: none; border-right: none; border-top: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Limit<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">AbnormalProcessTerminationCount<o:p></o:p></span></b></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Abnormally terminated process<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">count<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">1<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">1<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">CPUExecutionTime<o:p></o:p></span></b></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">CPU Execution Time for site<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">seconds<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">3,600<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">60<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">CriticalExceptionCount<o:p></o:p></span></b></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Critical Exception Events<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Events<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">10<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">3<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">InvocationCount<o:p></o:p></span></b></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Solution Invocation Events<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Events<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;"><TBD><o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;"><TBD><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">PercentProcessorTime<o:p></o:p></span></b></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">% CPU usage by solution<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">%<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">85<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">100<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">ProcessCPUCycles<o:p></o:p></span></b></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Solution CPU cycles<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">cycles<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">1 x10^11<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">1 x10^11<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">ProcessHandleCount<o:p></o:p></span></b></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Windows handles count<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">items<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">10,000<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">1,000<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">ProcessIOBytes<o:p></o:p></span></b></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Windows handles count<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">items<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">0<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">1 x10^8<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">ProcessThreadCount<o:p></o:p></span></b></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Thread count in overall process<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Thread instances<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">10,000<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">200<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">ProcessVirtualBytes<o:p></o:p></span></b></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Memory consumed<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Bytes<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">0<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">1.0x10^9<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">SharePointDatabaseQueryCount<o:p></o:p></span></b></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Number of SharePoint database
queries<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Query instances<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">20<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">100<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">SharePointDatabaseQueryTime<o:p></o:p></span></b></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Elapsed time to execute query<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">seconds<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">120<o:p></o:p></span></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">60<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">UnhandledExceptionCount<o:p></o:p></span></b></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Number of unhandled exceptions<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Unhandled exception instances<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">50<o:p></o:p></span></div>
</td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">3<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 2.25in;" valign="top" width="216"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">UnresponsiveProcessCount<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 148.5pt;" valign="top" width="198"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Number of unresponsive processes<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 53.25pt;" valign="top" width="71"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">Unresponsive process instances<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 96.75pt;" valign="top" width="129"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">2<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 68.25pt;" valign="top" width="91"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #365f91; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent1; mso-themeshade: 191;">1 <o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<br />
<div>
<div class="MsoNormal">
For example, if
you developed a sandboxed web part that displayed data from a list, it would
perform a SharePoint database query each time it loads. 20 database
queries = 1 resource point, so if the web part was displayed 20 times, the site
collection would have used 1 resource point. The default site collection
maximum is 300 points, so the web part could be displayed 6,000 times in a 24
hour period; after that, the sandbox is turned off until a timer job resets
it. It's important to understand is that <b>resource quotas can be
exceeded through high usage and</b> <b>is not necessarily an indicator of
poorly written code</b>.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<h1>
About planning quota management<o:p></o:p></h1>
The basic steps to plan quota management are the following:<o:p></o:p><br />
<ol start="1" type="1">
<li class="MsoNormal" style="margin-bottom: 12pt;">Determine
quota template settings<br />
There is no default quota template for site collections in a SharePoint
Server 2010 environment</li>
</ol>
<ol start="2" type="1">
<li class="MsoNormal" style="margin-bottom: 12pt;">Determine
recycle bin settings<br />
The recycle bin can help to prevent the permanent deletion of content. The
recycle bin enables site owners to retrieve items that users have deleted,
without requiring administrator intervention such as restoring files from
backup tapes. Key planning considerations include whether to use the
second-stage recycle bin and how much space to allocate. <br />
The recycle bin is turned on and off at the Web application level. By
default, the recycle bin is turned on in all the site collections in a Web
application.<br />
<!--[endif]--><o:p></o:p></li>
<li class="MsoNormal">Delete
unused Web sites<br />
You can delete a quota template if you change your quota structures.
However deleting a quota template does not delete quota values from site
collections to which a quota template has been applied. If you want to
remove quotas from all site collections that use a specific quota
template, you must use the object model or perform a SQL Server query.</li>
</ol>
<div>
<h1>
Key Notes about Quota Management</h1>
<ol start="1" type="1">
<li class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;">Quotas
are only applied to Site Collections</span></li>
<li class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;"><span style="font-size: 12pt; line-height: 115%;">You
can create a default quota template at the web application level, which will be
used by new site collections created moving forward.</span></span></li>
<li class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;"><span style="font-size: 12pt; line-height: 115%;"><span style="font-size: 12pt; line-height: 115%;">Everything
in a site encompasses the Quota space: files in document libraries, items in
your lists, all web parts, all images, form templates, etc…</span></span></span></li>
</ol>
<div>
<h1>
Create Quota using
Powershell<o:p></o:p></h1>
<pre>Get-SPWebTemplate | Out-File C:\SharepointWebTemplates.txt<o:p></o:p></pre>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Retreive the Current Quota settings for the site collection<o:p></o:p></div>
<pre>(Get-SPSite -Identity "<Site Collection>").Quota<o:p></o:p></pre>
<div class="MsoNormal">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Where:<o:p></o:p></span></div>
<ul type="disc">
<li class="MsoNormal" style="margin-bottom: 12pt;"><i><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><SiteCollection></span></i><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is the URL of the site collection <o:p></o:p></span></li>
</ul>
<div class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-bidi-font-style: italic; mso-fareast-font-family: "Times New Roman";">Create
New Quota Template</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$quota = New-Object
Microsoft.SharePoint.Administration.SPQuotaTemplate<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$quota.Name = “Dhaval”<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$quota.StorageMaximumLevel = ((10 * 1024) * 1024) <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$quota.StorageWarningLevel = ((8 * 1024) * 1024)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$quota.UserCodeMaximumLevel = 100<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$quota.UserCodeWarningLevel = 80<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$service =
[Microsoft.SharePoint.Administration.SPWebService]::ContentService<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$service.QuotaTemplates.Add($quota)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$service.Update()<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Delete Quota Template<o:p></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$service =[Microsoft.SharePoint.Administration.SPWebService]::ContentService<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$service.QuotaTemplates.Delete($QuotaTemplateName)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$service.Update()<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<h1>
Configure Quota and Locks<o:p></o:p></h1>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableLightShadingAccent1" style="border-collapse: collapse; border: none; mso-border-bottom-alt: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-alt: solid #4F81BD 1.0pt; mso-border-top-themecolor: accent1; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border-bottom: solid #4F81BD 1.0pt; border-left: none; border-right: none; border-top: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">Option <o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border-left: none; border-right: none; border-top: solid #4F81BD 1.0pt; mso-border-bottom-themecolor: accent1; mso-border-top-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">Option Description <o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><b><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">Unlock<o:p></o:p></span></b></td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">Not locked<o:p></o:p></span></td>
</tr>
<tr>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">NoAdditions<o:p></o:p></span></b></div>
</td>
<td style="border: none; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">Unlocks
the site collection and makes it available to users.<o:p></o:p></span></td>
</tr>
<tr>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><b><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">ReadOnly<o:p></o:p></span></b></td>
<td style="background: #D3DFEE; border: none; mso-background-themecolor: accent1; mso-background-themetint: 63; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">Adding content prevented<o:p></o:p></span></td>
</tr>
<tr>
<td style="border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">NoAccess<o:p></o:p></span></b></div>
</td>
<td style="border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><span style="color: #365f91; mso-themecolor: accent1; mso-themeshade: 191;">Prevents
users from adding new content to the site collection. Updates and deletions
are still allowed.<o:p></o:p></span></td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
To lock or unlock a site collection by using Windows
PowerShell<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Set-SPSite
-Identity "<SiteCollection>" -LockState
"<State>" –QuotaTemplate “<Quota Template>”<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Where:<o:p></o:p></span></div>
<ul type="disc">
<li class="MsoNormal" style="margin-bottom: 12pt;"><i><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><SiteCollection></span></i><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is the URL of the site collection that you want to
lock or unlock.<o:p></o:p></span></li>
<li class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><Quota Template> is the name of the quota
template</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></li>
<li class="MsoNormal" style="margin-bottom: 12pt;"><i><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><State></span></i><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
is one of the following values:<o:p></o:p></span></li>
<ul type="circle">
<li class="MsoNormal" style="margin-bottom: 12pt;"><b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Unlock</span></b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
to unlock the site collection and make it available to users.<o:p></o:p></span></li>
<li class="MsoNormal" style="margin-bottom: 12pt;"><b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">NoAdditions</span></b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
to prevent users from adding new content to the site collection. Updates
and deletions are still allowed.<o:p></o:p></span></li>
<li class="MsoNormal" style="margin-bottom: 12pt;"><b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">ReadOnly</span></b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
to prevent users from adding, updating, or deleting content.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">NoAccess</span></b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
to prevent users from accessing the site collection and its content.
Users who attempt to access the site receive an error.<o:p></o:p></span></li>
</ul>
</ul>
<div class="MsoNormal" style="margin-left: 0.5in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 0.5in;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">References:<o:p></o:p></span></div>
<div class="MsoNormal">
<a href="http://technet.microsoft.com/en-us/library/cc891489.aspx">http://technet.microsoft.com/en-us/library/cc891489.aspx</a><o:p></o:p></div>
<div class="MsoNormal">
<a href="http://blogs.msdn.com/b/johnwpowell/archive/2010/03/01/a-lap-around-sharepoint-2010-sandboxed-solutions-resource-quotas.aspx">http://blogs.msdn.com/b/johnwpowell/archive/2010/03/01/a-lap-around-sharepoint-2010-sandboxed-solutions-resource-quotas.aspx</a><span class="MsoHyperlink"><o:p></o:p></span></div>
<div class="MsoNormal">
<a href="http://www.c-sharpcorner.com/uploadfile/anavijai/quota-templates-in-sharepoint-2010/">http://www.c-sharpcorner.com/uploadfile/anavijai/quota-templates-in-sharepoint-2010/</a><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
</div>
</div>
</div>
</div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0tag:blogger.com,1999:blog-3491291188017485732.post-39424899368729573382012-07-13T20:22:00.000+05:302016-08-20T06:45:19.404+05:30Application Server job failed for service instance<script> if(window.location.href.indexOf('application-server-job-failed-for.html')!=-1){window.location="http://www.dhavalcodes.com/Blog/Application-Server-job-failed-for-service-instance";}</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67242627-1', 'auto');
ga('send', 'pageview');
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">All of a sudden, my FAST search server started bogging me this error several times.</span><br />
<span style="background-color: white;"><span style="color: red; font-family: Verdana, sans-serif;"><br /></span></span><br />
<span style="background-color: white;"><span style="color: red; font-family: Verdana, sans-serif;">Application Server job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance <br />Reason: An update conflict has occurred, and you must re-try this action</span></span><br />
<span style="background-color: white;"><span style="color: red; font-family: Verdana, sans-serif;"><br /></span></span><br />
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">When I checked the ULS Logs it showed me the Trace below </span></span><br />
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><br /></span></span><br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638">
<div style="line-height: 15.75pt; margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif;">Application
Server Administration job failed for service instance
Microsoft.Office.Server.Search.Administration.SearchServiceInstance
(21e4447f-bac6-4a29-82db-165e074ac5db).<o:p></o:p></span></div>
<div style="line-height: 15.75pt; margin: 0in 0in 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">Reason: An update conflict has occurred, and you must re-try
this action. The object SearchDataAccessServiceInstance was updated by
domain\user, in the OWSTIMER (5040) process, on machine (server name).
View the tracing log for more information about the conflict.<o:p></o:p></span></div>
<div style="line-height: 15.75pt; margin: 0in 0in 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">Technical Support Details:<span class="apple-converted-space"> </span><br />
Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException: An update
conflict has occurred, and you must re-try this action. The object
SearchDataAccessServiceInstance was updated by domain\user, in the OWSTIMER
(5040) process, on machine (server name). View the tracing log for more
information about the conflict.<span class="apple-converted-space"> </span><br />
at
Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()<br />
at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean
isAdministrationServiceJob)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><span style="font-family: Verdana, sans-serif;">Resetting the index and Recreating the SSA didn't work either !Luckily after a lot of troubleshooting and looking around I found a fix ! Thanks to this <a href="http://www.social-point.com/sharepoint-2010-event-id-6482-application-server-administration-job-failed-for-service-instance-microsoft-office-server-search-administration-searchserviceinstance" target="_blank">guy </a>!</span></o:p></div>
<div class="MsoNormal">
<o:p><span style="font-family: Verdana, sans-serif;"><br /></span></o:p></div>
<div class="MsoNormal">
<o:p><span style="font-family: Verdana, sans-serif;"><span style="background-color: white;">OK</span> , So resolution </span></o:p></div>
<div class="MsoNormal">
<o:p><span style="font-family: Verdana, sans-serif;"><br /></span></o:p></div>
<div class="MsoNormal">
<o:p><span style="font-family: Verdana, sans-serif;"></span></o:p></div>
<div style="color: #333333; line-height: 21px; padding: 0px 0px 10px; text-align: justify;">
<span style="font-family: Verdana, sans-serif;"><strong>Resolution:</strong></span></div>
<div style="color: #333333; line-height: 21px; padding: 0px 0px 10px; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">The file system cache on all FE’s (in my case, this was just one server) on which the timer service is running needs to be cleared.</span></div>
<div style="color: #333333; line-height: 21px; padding: 0px 0px 10px; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">Below is the step by step provided by Microsoft in this KB Article for doing this:</span></div>
<ol style="color: #333333; line-height: 21px; text-align: justify;">
<li><span style="font-family: Verdana, sans-serif;">Stop the Windows SharePoint Services Timer service (Found in Windows Services)</span></li>
<li><span style="font-family: Verdana, sans-serif;">Navigate to the cache folder<br />In Windows Server 2008, the configuration cache is in the following location:<br />Drive:\ProgramData\Microsoft\SharePoint\Config<br />In Windows Server 2003, the configuration cache is in the following location:<br />Drive:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config<br />Locate the folder that has the file "Cache.ini"<br />(<strong>Note:</strong> The Application Data folder may be hidden. To view the hidden folder, change the folder options as required)</span></li>
<li><span style="font-family: Verdana, sans-serif;">Back up the Cache.ini file.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Delete all the XML configuration files in the GUID folder. Do this so that you can verify that the GUID folder is replaced by new XML configuration files when the cache is rebuilt.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Note When you empty the configuration cache in the GUID folder, make sure that you do not delete the GUID folder and the Cache.ini file that is located in the GUID folder.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Double-click the Cache.ini file.</span></li>
<li><span style="font-family: Verdana, sans-serif;">On the Edit menu, click Select All. On the Edit menu, click Delete. Type 1, and then click Save on the File menu. On the File menu, click Exit.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Start the Windows SharePoint Services Timer service</span></li>
<li><span style="font-family: Verdana, sans-serif;">Note The file system cache is re-created after you perform this procedure. Make sure that you perform this procedure on all servers in the server farm.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Make sure that the Cache.ini file in the GUID folder now contains its previous value. For example, make sure that the value of the Cache.ini file is not 1.</span></li>
</ol>
<br />
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<br />
<br />
<div style="color: #414141; line-height: 18px;">
<span style="font-family: Verdana, sans-serif;"><span style="color: #444444; line-height: 18px;">I Hope this article was informative. Happy Sharepointing !</span><br style="color: #444444; line-height: 18px;" /><br style="color: #444444; line-height: 18px;" /><span style="color: #444444; line-height: 18px;">Please do Share/Like/Comment if this article was helpful.</span></span></div>
<span style="font-family: Verdana, sans-serif;"><br class="Apple-interchange-newline" /></span><br />
<br /></div>Anonymoushttp://www.blogger.com/profile/16714874110355922977noreply@blogger.com0