Go Start Menu -> Run -> Type "Services.msc" -> find "SQL (SHAREPOINT) Service" -> just Start it
Monday, January 30, 2017
Sunday, October 9, 2016
Get Login UserName fon Preload of SharePoint List "NewForm.aspx"
Step 1: Downlaod SPServices.js latest files
Step 2: Place the J.s filed into Asset Libraries
Step 3 :Replace the url of the SP.Services to your Side from below yellow color highlighted url
Step 4: Change the first parameter Name which should be the column from "Title" to your list column name in the function
SetUserFieldValue("Title",loginName);
<script src="https://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="/SiteAssets/jquery.SPServices-2014.02.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var loginName= $().SPServices.SPGetCurrentUser();
SetUserFieldValue("Title",loginName);
function SetUserFieldValue(fieldName, userName) {
var _PeoplePicker = $("div[title='" + fieldName + "']");
var _PeoplePickerTopId = _PeoplePicker.attr('id');
var _PeoplePickerEditer = $("input[title='" + fieldName + "']");
_PeoplePickerEditer.val(userName);
var _PeoplePickerOject = SPClientPeoplePicker.SPClientPeoplePickerDict[_PeoplePickerTopId];
_PeoplePickerOject.AddUnresolvedUserFromEditor(true);
}
});
</script>
Step 2: Place the J.s filed into Asset Libraries
Step 3 :Replace the url of the SP.Services to your Side from below yellow color highlighted url
Step 4: Change the first parameter Name which should be the column from "Title" to your list column name in the function
SetUserFieldValue("Title",loginName);
<script src="https://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="/SiteAssets/jquery.SPServices-2014.02.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var loginName= $().SPServices.SPGetCurrentUser();
SetUserFieldValue("Title",loginName);
function SetUserFieldValue(fieldName, userName) {
var _PeoplePicker = $("div[title='" + fieldName + "']");
var _PeoplePickerTopId = _PeoplePicker.attr('id');
var _PeoplePickerEditer = $("input[title='" + fieldName + "']");
_PeoplePickerEditer.val(userName);
var _PeoplePickerOject = SPClientPeoplePicker.SPClientPeoplePickerDict[_PeoplePickerTopId];
_PeoplePickerOject.AddUnresolvedUserFromEditor(true);
}
});
</script>
Wednesday, August 24, 2016
Tabs for SharePoint Lists and Document Library
As we knew there are Bootstrap,Jquery and Angular JS tabs which are not fine to use sharepoint list iframe. So we have wounder-full post from "Mr.Mark" in his blog on "Hillbillytabs" for sharepoint which is the below code
<!-- Reference the jQueryUI theme's stylesheet on the Google CDN. Here we're using the "Start" theme -->
<link type="text/css" rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/start/jquery-ui.css" />
<!-- Reference jQuery on the Google CDN -->
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!-- Reference jQueryUI on the Google CDN -->
<script type="text/javascript" src="//code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.cookie/1.4.1/jquery.cookie.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
//Put 3 web parts in 3 different tabs
// var webPartTitles = ["Web Part Title 1","Web Part Title 2","Web Part Title 3"];
// HillbillyTabs(webPartTitles);
//Create a Tab with Two Web Parts, and a second tab with one Web Part
// var webPartTitles = ["Tab Title;#Web Part Title 1;#Web Part Title 2","Web Part Title 3"];
// HillbillyTabs(webPartTitles);
//Put all web parts (that have visible titles) on page that have into tabs
HillbillyTabs();
});
function HillbillyTabs(webPartTitles)
{
if(webPartTitles == undefined)
{
var CEWPID = "";
$("#tabsContainer").closest("div [id^='MSOZoneCell_WebPart']").find("span[id^='WebPartCaptionWPQ']").each(function()
{
CEWPID = $(this).attr("id");
});
var index = 0;
$("span[id^='WebPartCaptionWPQ']").each(function()
{
if($(this).attr("id") != CEWPID)
{
var title = $(this).prev("span").text();
$("#HillbillyTabs").append('<li><a href="#Tab'+index+'" id="TabHead'+index+'" onclick="HillbillyTabClick(this.id);">'+
title+'</a></li>').after('<div id="Tab'+index+'"></div>');
var webPart = $(this).prev("span").hide().closest("span").closest("[id^='MSOZoneCell_WebPart']");
$("#Tab" + index).append((webPart));
index++;
}
});
} else {
for(index in webPartTitles)
{
var title = webPartTitles[index];
var tabContent = title.split(";#");
if (tabContent.length > 1)
{
$("#HillbillyTabs").append('<li><a href="#Tab'+index+'" id="TabHead'+index+'" onclick="HillbillyTabClick(this.id);">'+
tabContent[0]+'</a></li>').after('<div id="Tab'+index+'"></div>');
for(i = 1; i < tabContent.length; i++)
{
$("span[id^='WebPartCaptionWPQ']").each(function()
{
$(this).prev("span:contains('"+tabContent[i]+"')").each(function()
{
if ($(this).text() == tabContent[i]){
var webPart = $(this).closest("span").closest("[id^='MSOZoneCell_WebPart']");
$("#Tab" + index).append((webPart));
}
});
});
}
}
else
{
$("span[id^='WebPartCaptionWPQ']").each(function()
{
$(this).prev("span:contains('"+title+"')").each(function()
{
if ($(this).text() == title){
$("#HillbillyTabs").append('<li><a href="#Tab'+index+'" id="TabHead'+index+'" onclick="HillbillyTabClick(this.id);">'+
title+'</a></li>').after('<div id="Tab'+index+'"></div>');
var webPart = $(this).hide().closest("span").closest("[id^='MSOZoneCell_WebPart']");
$("#Tab" + index).append((webPart));
}
});
});
}
}
}
$("#tabsContainer").tabs();
ShowActiveTab();
}
function HillbillyTabClick(id)
{
$.cookie("ActiveTab",id,{ path: '/' });
}
function ShowActiveTab()
{
$("#" + $.cookie("ActiveTab")).click();
}
</script>
<div id="tabsContainer"><ul id="HillbillyTabs"></ul></div>
<!-- Reference the jQueryUI theme's stylesheet on the Google CDN. Here we're using the "Start" theme -->
<link type="text/css" rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/start/jquery-ui.css" />
<!-- Reference jQuery on the Google CDN -->
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!-- Reference jQueryUI on the Google CDN -->
<script type="text/javascript" src="//code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.cookie/1.4.1/jquery.cookie.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
//Put 3 web parts in 3 different tabs
// var webPartTitles = ["Web Part Title 1","Web Part Title 2","Web Part Title 3"];
// HillbillyTabs(webPartTitles);
//Create a Tab with Two Web Parts, and a second tab with one Web Part
// var webPartTitles = ["Tab Title;#Web Part Title 1;#Web Part Title 2","Web Part Title 3"];
// HillbillyTabs(webPartTitles);
//Put all web parts (that have visible titles) on page that have into tabs
HillbillyTabs();
});
function HillbillyTabs(webPartTitles)
{
if(webPartTitles == undefined)
{
var CEWPID = "";
$("#tabsContainer").closest("div [id^='MSOZoneCell_WebPart']").find("span[id^='WebPartCaptionWPQ']").each(function()
{
CEWPID = $(this).attr("id");
});
var index = 0;
$("span[id^='WebPartCaptionWPQ']").each(function()
{
if($(this).attr("id") != CEWPID)
{
var title = $(this).prev("span").text();
$("#HillbillyTabs").append('<li><a href="#Tab'+index+'" id="TabHead'+index+'" onclick="HillbillyTabClick(this.id);">'+
title+'</a></li>').after('<div id="Tab'+index+'"></div>');
var webPart = $(this).prev("span").hide().closest("span").closest("[id^='MSOZoneCell_WebPart']");
$("#Tab" + index).append((webPart));
index++;
}
});
} else {
for(index in webPartTitles)
{
var title = webPartTitles[index];
var tabContent = title.split(";#");
if (tabContent.length > 1)
{
$("#HillbillyTabs").append('<li><a href="#Tab'+index+'" id="TabHead'+index+'" onclick="HillbillyTabClick(this.id);">'+
tabContent[0]+'</a></li>').after('<div id="Tab'+index+'"></div>');
for(i = 1; i < tabContent.length; i++)
{
$("span[id^='WebPartCaptionWPQ']").each(function()
{
$(this).prev("span:contains('"+tabContent[i]+"')").each(function()
{
if ($(this).text() == tabContent[i]){
var webPart = $(this).closest("span").closest("[id^='MSOZoneCell_WebPart']");
$("#Tab" + index).append((webPart));
}
});
});
}
}
else
{
$("span[id^='WebPartCaptionWPQ']").each(function()
{
$(this).prev("span:contains('"+title+"')").each(function()
{
if ($(this).text() == title){
$("#HillbillyTabs").append('<li><a href="#Tab'+index+'" id="TabHead'+index+'" onclick="HillbillyTabClick(this.id);">'+
title+'</a></li>').after('<div id="Tab'+index+'"></div>');
var webPart = $(this).hide().closest("span").closest("[id^='MSOZoneCell_WebPart']");
$("#Tab" + index).append((webPart));
}
});
});
}
}
}
$("#tabsContainer").tabs();
ShowActiveTab();
}
function HillbillyTabClick(id)
{
$.cookie("ActiveTab",id,{ path: '/' });
}
function ShowActiveTab()
{
$("#" + $.cookie("ActiveTab")).click();
}
</script>
<div id="tabsContainer"><ul id="HillbillyTabs"></ul></div>
Monday, August 22, 2016
Wednesday, June 29, 2016
Tuesday, June 14, 2016
Monday, June 6, 2016
sharepoint 2013 feed format not supported in IE
- Tools > Internet Options.
- Select the Content Tab
- Under Feeds and Web Slices, select Settings
- Under Advance section untick Turn on Feed reading view
Subscribe to:
Posts (Atom)

