Tuesday, 21 October 2014

Sign as a different user in SharePoint 2013

As we know that Sign in as a different user option is not available in SharePoint 2013,It is needed for all developers,Testers,Administrators to log in with different account to test the customizations and aslo for checking permissions in a SharePoint sites,but we can also get this option by placing the code in

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx and open it SharePoint Designer,Visual Studio or Text Editor

Add the following sinpet befor having the element with id "ID_RequestAccess" as shown in Screenshot.


<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
 Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
 Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
 MenuGroupId="100"
 Sequence="100"
 UseShortId="true"
/>

Save and close.
Open the SharePoint Site we can able to see the Sign as a different user Option.

Sometimes we can also able to sign as a different user option in the browser for current sharepoint site,we can also use the following  URL in your browser.

http://<your site URL>/_layouts/closeConnection.aspx?loginasanotheruser=true

It will prompt the Popup with login,once we login it will redirect to the Site.

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Thursday, 16 October 2014

Disable alerts in SharePoint

Power shell will becoming easy to do our tasks,now we are doing how to disable and enable the alerts to the particular web appliccation in SharePoint 2013/2010.

To Disable the alerts in the particular Web Application 

$weburl= Get-SPWebApplication "http://DotnetSharePoint/"
 $weburl.AlertsEnabled = $false
$weburl.Update()

 To Enable alerts in the  particular Web Application

$weburl= Get-SPWebApplication "http://DotnetSharePoint/"
$weburl.AlertsEnabled = $true
$weburl.Update()

Disable Alerts for List
In the same way some times we have to disable the alerts to the particular list there is no OOTB feature to disable the alerts to particular list,but we do it by using jquery/java script read the current page URL and list, disable the button in the ribbon.

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Wednesday, 15 October 2014

How to hide and readonly columns in SharePoint list view using jquery


Hide column in SharePoint List view 

To hide the column in custom list  new or view or edit form, we can use the below script to do the same. we need to edit the view or edit form page and add a content editor web part in that we have to include the below script to hide the column based on the requirement.

<script src="c:Jquery/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript">

$(document).ready(function() {

//Contains (It will hide all the column which contains the word "Test")

 $("nobr:contains('Test')").closest('tr').hide();

//For single text alone
   $("input[title='Test']").closest('tr').hide();

</script> 

ReadOnly Column in SharePoint Editview

To make the column as read only in custom list  new or view or edit form, we can use the below script. we need to edit the view or edit form page and add a content editor web part in that we have to include the below script to make the column read only based on the requirement.

<script src="c:Jquery/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {

   $("input[title='Test']").attr('readonly', true);

</script> 


SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Monday, 29 September 2014

sorry we're having trouble refreshing your tasks sharepoint 2013

When i am trying to refresh the Task it was showing the error as shown below


First we have to check the "Work Management Service Application" is there or not,if exists we have to check weather the service is started or not,if it is started we have to check weather that Service having permissions with Application Pool Service account with Full Control.
In my case i given the application pool Service  account with full control to "Work Management   Service Application"
Then it is working fine.. 

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

user profile synchronization service stuck on starting


Some times we are unable to start/stop the user profile synchronization service ,it will be in stuck with starting.

using Stsadm command we can stop this service immediately

stsadm -o provisionservice -action stop -servicetype “Microsoft.Office.Server.Administration.ProfileSynchronizationService, Microsoft.Office.Server.UserProfiles, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” -servicename FIMSynchronizationService



SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Friday, 26 September 2014

How to configure the Search Center Url in SharePoint Using PowerShell

If we want to give the Global Search Center URL,to search every thing using enterprise search center site.

$sa = Get-SPEnterpriseSearchServiceApplication
$sa.SearchCenterUrl = "http://sitename/SearchCenter/Pages"
$sa.Update()

Now it will effect all the sites,some times need to reset IIS.

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Friday, 19 September 2014

How to Start the User Profile Synchronization Service Using PowerShell

Some times we are unable to start and stop the User Profile Synchronization Service from GUI,so in most of the cases using powershell we can fix it.

Using Get-SPServiceInstance

To get the list of all the services guid type the command in PowerShell

Get-SPServiceInstance > Services.txt

It will writes the list of all the services in to the txt file,we can able to find the file at C:/Users/Username

Start-SPServiceInstance –Identity "Guid of Particular Service Application"

In the same way if we want to Stop the User Profile Synchronization Service use the following command

Stop-SPServiceInstance –Identity "Guid of Particular Service Application"


SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM