Showing posts with label SharePoint som. Show all posts
Showing posts with label SharePoint som. Show all posts

Monday, August 3, 2015

Search Architecture Key points

Search :
Level
 1.web application
 2.site level
 1.webapplication when user creates using search center
 we need to config central admin
 1.incremental crawl -last updated items (we can set time every half/one hour user defined)
 2.full crawl -all items in web application (weekly once or day-wise ) Affects machine processing
 3.continous crawll -Each crawl dynmacally runs step by step Each process run serial process We need to create first search center in our webapplication under the subsute sitecollection-SharePoint Server Publishing Infrastructure manage site feature--sharePoint Server Publishing

Wednesday, July 29, 2015

how to remove Everyone permission for SP site and get SP users in sharepoint powershell

Add-PSSnapin Microsoft.SharePoint.PowerShell
Get-SPUser -web "http://raghu:2015/"


Remove-SPUser "c:0(.s|true" -web "http://raghu:2015/"

Tuesday, July 21, 2015

How to get login user Manager In SPServices In SHarepoint 2013

<script type="text/javascript">
$(document).ready(function() {


var managerName;
        var userName = $().SPServices.SPGetCurrentUser();
        $().SPServices({
            operation: "GetUserProfileByName",
            async: false,
            AccountName: userName,
            completefunc: function (xData, Status) {
                managerName = $(xData.responseXML).text();
                var managerLength = managerName.length;
                var indexofManager = managerName.indexOf("Manager");
                managerName = managerName.substring(indexofManager + 13, managerLength);
                var indexOffalse = managerName.indexOf("false");
                managerName = managerName.substring(0, indexOffalse);
            }
        });
        alert(managerName);
       
});
 UserProfile_GUID
- AccountName
- FirstName
- LastName
- PreferredName
- WorkPhone
- Office
- Department
- Title
- Manager
- AboutMe
- PersonalSpace
- PictureURL
- UserName
- QuickLinks
- WebSite
- PublicSiteRedirect
- SPS-Dotted-line
- SPS-Peers
- SPS-Responsibility
- SPS-Skills
- SPS-PastProjects
- SPS-Interests
- SPS-School
- SPS-SipAddress
- SPS-Birthday
- SPS-MySiteUpgrade
- SPS-DontSuggestList
- SPS-ProxyAddresses
- SPS-HireDate
- SPS-LastColleagueAdded
- SPS-OWAUrl
- SPS-ResourceAccountName
- SPS-MasterAccountName
- Assistant
- WorkEmail
- CellPhone
- Fax
- HomePhone

Friday, July 17, 2015

Freeze header in SharePoint List using JQuery?

Code:
Replace user list id
{B7EDD228-FDD2-46D2-A47E-E33D1D27E612}-{80AB3567-18AE-4ACE-A8E5-C86E5285E9C9}
<script type="text/javascript">

$(document).ready(function(){
var SummaryName ="Employee";
$("table").each(function(){
  var curTable = $(this).attr('id');

  if (curTable  == "{B7EDD228-FDD2-46D2-A47E-E33D1D27E612}-{80AB3567-18AE-4ACE-A8E5-C86E5285E9C9}"){

var $hdr = $("tr.ms-viewheadertr:first", $(this));
$(this).wrap("<div class='fh-tableWrapper' />");
$('.fh-tableWrapper').wrap("<div class='fh-outerWrapper' />");
$('.fh-outerWrapper').prepend("<div class='fh-bg' />");
$('th',$hdr).wrapInner("<div class='fh-thContentWrapper'/>");
$hdr.addClass("fh-thRow");
$(this).addClass('fh-table');

  }
});

});

</script>
<style type="text/css">

.fh-outerWrapper
{
    position:relative;
}

/* table wrapper*/
.fh-tableWrapper
{
    overflow:auto;
    height:300px;
}

/*the wrapper for 'th' content*/
.fh-thRow .fh-thContentWrapper{
    position:absolute;
    top:0;
}
.fh-bg
{
    position:absolute;
    top:0;
    height:30px;
    width:100%;
    background-color:#D5ECFF;

}

</style>

Thursday, July 16, 2015

How to particular site collection move new content database SharePoint Powershell Script

move-spsite "http://raghuspsserver/" -DestinationDatabase "raghu_contentdbnew"