<style type="text/css">
#Ribbon\.ListItem\.Manage\.EditProperties-Large
{
display:none;
}
#Ribbon\.ListItem\.New\.NewListItem-Large
{
display:none !important;
}
</style>
Showing posts with label SharePoint General. Show all posts
Showing posts with label SharePoint General. Show all posts
Wednesday, December 14, 2016
Monday, September 19, 2016
IISRESET on all Server in single shot
Again one of be powerful command by Powershell to reset IIS
in all servers of a Farm in single shot. No need to open the server
one-by-one.
$spserver = get-spserver | where
{$_.Role -ne "Invalid"}
foreach ($server in $spserver)
{
write-host "Performing IIS Reset on Server:"$server.name
iisreset $server.Name
}
$.Role values are:-
|
|
Invalid
|
Specifies that the server
does not have a registered role in the configuration database. This value is
typically used to represent servers that are outside of the SharePoint farm.
|
|
WebFrontEnd
|
Specifies that the server is
a front-end Web server within the SharePoint Foundation deployment, and that
the server is optimized for low request latency.
|
|
|
Application
|
Specifies that the server is
for back end jobs and is optimized for high throughput.
|
|
|
SingleServer
|
Obsolete. Specifies
that the server is the only server in the SharePoint Foundation deployment.Do not use in SharePoint 2016 and
later. Use SingleServerFarm instead.
|
|
|
SingleServerFarm
|
Available in SharePoint 2016
and later. Specifies that the server is the only server in the SharePoint
Foundation deployment.
|
|
|
DistributedCache
|
Available in SharePoint 2016
and later. Specifies that the server hosts a distributed cache and optionally
routes web requests.
|
|
|
Search
|
Available in SharePoint 2016
and later. Specifies that the server hosts Search services.
|
|
|
Custom
|
Available in SharePoint 2016
and later. Specifies that the server does not participate in the MinRole experience, in which services are
automatically deployed to servers added to the farm based on their role. The
SharePoint farm administrator must manually manage which service instances
are provisioned on the server.
|
Tuesday, July 26, 2016
Custom SharePoint list form javascript file
<style type="text/css">
.ms-formtable
{display:none;}
</style>
<script src="../../Style Library/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="../../Style Library/js/spjs-utility.js" type="text/javascript"> </script>
<script src="../../Style Library/js/jquery.SPServices-0.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var fldTranslationdictionary=[];
$(document).ready(function() {
//loop through all the spans in the custom layout
$("span").each(function()
{
//get the display name from the custom layout
displayName = $(this).attr("data-displayName");
elem = $(this);
//find the corresponding field from the default form and move it
//into the custom layout
$("table.ms-formtable td").each(function(){
if (this.innerHTML.indexOf('FieldInternalName="'+displayName+'"') != -1){
$(this).contents().appendTo(elem);
}
});
});
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', retrieveListItems);
});//ready() ends
function retrieveListItems()
{
var listname = "TranslateConfig";
var ctx = SP.ClientContext.get_current();
this.web = ctx.get_web();
ctx.load(this.web);
this.list = this.web.get_lists().getByTitle(listname);
var camlQuery = new SP.CamlQuery();
this.collListItem = this.list.getItems(camlQuery);
ctx.load(collListItem);
ctx.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.getListInfoFail));
}
function onQuerySucceeded(sender, args)
{
var listItemEnumerator = collListItem.getEnumerator();
var dict = {};
var lcid = SP.Res.lcid;
while (listItemEnumerator.moveNext())
{
var oListItem = listItemEnumerator.get_current();
var Key=oListItem.get_item('Title')
//console.log("Key="+ Key);
if(lcid==1031)
{
var FieldName=oListItem.get_item('Field_x002d_DE');
//$('div.Cell h3.ms-standardheader :contains('+Key+')').text(FieldName);
//$('div.Cell h3.ms-standardheader :contains('+Key+')')[0].innerHTML=FieldName;
$("#"+Key).text(FieldName);
fldTranslationdictionary[Key]=FieldName;
}
else
{
var FieldName=oListItem.get_item('Field_x002d_EN');
//console.log("Key="+ Key +"," + FieldName);
//$('div.Cell h3.ms-standardheader :contains('+Key+')').text(FieldName);
//$('div.Cell h3.ms-standardheader :contains('+Key+')')[0].innerHTML=FieldName;
$("#"+Key).text(FieldName);
fldTranslationdictionary[Key]=FieldName;
}
}
}
function onQueryFailed(sender, args)
{
alert('Request failed for retrieveListItems(). ' + args.get_message() + '\n' + args.get_stackTrace());
}
</script>
.ms-formtable
{display:none;}
</style>
<script src="../../Style Library/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="../../Style Library/js/spjs-utility.js" type="text/javascript"> </script>
<script src="../../Style Library/js/jquery.SPServices-0.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var fldTranslationdictionary=[];
$(document).ready(function() {
//loop through all the spans in the custom layout
$("span").each(function()
{
//get the display name from the custom layout
displayName = $(this).attr("data-displayName");
elem = $(this);
//find the corresponding field from the default form and move it
//into the custom layout
$("table.ms-formtable td").each(function(){
if (this.innerHTML.indexOf('FieldInternalName="'+displayName+'"') != -1){
$(this).contents().appendTo(elem);
}
});
});
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', retrieveListItems);
});//ready() ends
function retrieveListItems()
{
var listname = "TranslateConfig";
var ctx = SP.ClientContext.get_current();
this.web = ctx.get_web();
ctx.load(this.web);
this.list = this.web.get_lists().getByTitle(listname);
var camlQuery = new SP.CamlQuery();
this.collListItem = this.list.getItems(camlQuery);
ctx.load(collListItem);
ctx.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.getListInfoFail));
}
function onQuerySucceeded(sender, args)
{
var listItemEnumerator = collListItem.getEnumerator();
var dict = {};
var lcid = SP.Res.lcid;
while (listItemEnumerator.moveNext())
{
var oListItem = listItemEnumerator.get_current();
var Key=oListItem.get_item('Title')
//console.log("Key="+ Key);
if(lcid==1031)
{
var FieldName=oListItem.get_item('Field_x002d_DE');
//$('div.Cell h3.ms-standardheader :contains('+Key+')').text(FieldName);
//$('div.Cell h3.ms-standardheader :contains('+Key+')')[0].innerHTML=FieldName;
$("#"+Key).text(FieldName);
fldTranslationdictionary[Key]=FieldName;
}
else
{
var FieldName=oListItem.get_item('Field_x002d_EN');
//console.log("Key="+ Key +"," + FieldName);
//$('div.Cell h3.ms-standardheader :contains('+Key+')').text(FieldName);
//$('div.Cell h3.ms-standardheader :contains('+Key+')')[0].innerHTML=FieldName;
$("#"+Key).text(FieldName);
fldTranslationdictionary[Key]=FieldName;
}
}
}
function onQueryFailed(sender, args)
{
alert('Request failed for retrieveListItems(). ' + args.get_message() + '\n' + args.get_stackTrace());
}
</script>
Custom SharePoint list form (HTML)
<style type="text/css">
.ms-long
{
width:150px
}
.ms-rtefield
{
max-height:50px;
max-width:384px;
overflow:scroll;
}
.Table
{
display: table;
border-spacing:2px;
}
.Title
{
display: table-caption;
text-align: center;
font-weight: bold;
font-size: larger;
}
.Heading
{
display: table-row;
font-weight: bold;
text-align: center;
}
.Row
{
display: table-row;
}
.Cell
{
display: table-cell;
border: none;
border-width: thin;
padding-top:10px;
padding-left: 10px;
padding-right: 10px;
width:120px;
}
div h1{
text-align: Center;
margin-top: -10px;
height: 20px;
line-height: 20px;
font-size: 15px;
font-weight: bold;
}
div h1 span{
background-color: white;
}
#load{
width:100%;
height:100%;
position:fixed;
z-index:9999;
background:url("https://qklportal.kl.int/app/Analage/Style%20Library/Images/loading.gif") no-repeat fixed Center;
}
.labelStyle
{
width:7em;
word-wrap:break-word;
/*border: 1px solid #000000;*/
}
.sp-peoplepicker-topLevel
{
width:210px !important;
}
</style>
<div id="page" style="display:none">
<div style="border: thin solid black;padding-bottom: 5px; margin-top: 20px;background-color:#E8E8E8">
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<nobr>Title<span class="ms-formvalidation"> *</span>
</nobr>
</H3>
</div>
<div class="Cell">
<span data-displayName="Title"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="WorkflowStage" class="labelStyle">WorkflowStage</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="WorkflowStage"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="BusinessUnit" class="labelStyle">BusinessUnit</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="BusinessUnit"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="KLlegalEntity" class="labelStyle">KLlegalEntity</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="KLlegalEntity"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="DocumentOwner" class="labelStyle">DocumentOwner</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="DocumentOwner"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="JobHolder" class="labelStyle">JobHolder</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="JobHolder"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="DocumentIsValidUntil" class="labelStyle">DocumentIsValidUntil</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="DocumentIsValidUntil"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ScrapLocation" class="labelStyle">ScrapLocation</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ScrapLocation"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="PassingComment" class="labelStyle">PassingComment</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="PassingComment"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="DocumentCreator" class="labelStyle">DocumentCreator</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="DocumentCreator"></span>
</div>
</div>
<div style="display:none;">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="CurrentApprover" class="labelStyle">CurrentApprover</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="CurrentApprover"></span>
</div>
</div>
</div>
<!-- Scrapping Request -->
<div style="border: thin solid black; width: 100%; padding-bottom: 5px; margin-top: 20px;">
<h1>
<span>Scrapping Request</span>
</h1>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Plant" class="labelStyle">Plant</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Plant"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Branch" class="labelStyle">Branch</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Branch"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Number" class="labelStyle">Number</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Number"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Requestor" class="labelStyle">Requestor</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Requestor"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="GestelltDorf" class="labelStyle">GestelltDorf</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="GestelltDorf"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ProductResponsible" class="labelStyle">ProductResponsible</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ProductResponsible"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Disponant" class="labelStyle">Disponant</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Disponant"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="QM" class="labelStyle">QM</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="QM"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="SegmentLeader" class="labelStyle">SegmentLeader</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="SegmentLeader"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MaterialNumber" class="labelStyle">MaterialNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MaterialNumber"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Designation" class="labelStyle">Designation</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Designation"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MaterialNumberOld" class="labelStyle">MaterialNumberOld</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MaterialNumberOld"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MatArt" class="labelStyle">MatArt</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MatArt"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Vorgang" class="labelStyle">Vorgang</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Vorgang"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="OrderNumber" class="labelStyle">OrderNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="OrderNumber"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="CompletedByAG" class="labelStyle">CompletedByAG</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="CompletedByAG"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ReklaNumber" class="labelStyle">ReklaNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ReklaNumber"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="TargetStuckNumber" class="labelStyle">TargetStuckNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="TargetStuckNumber"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="PushStuckNumber" class="labelStyle">PushStuckNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="PushStuckNumber"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MiscellaneousGoodStuccoNumber" class="labelStyle">MiscellaneousGoodStuccoNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MiscellaneousGoodStuccoNumber"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ValueInEUR" class="labelStyle">ValueInEUR</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ValueInEUR"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MatCommittee" class="labelStyle">MatCommittee</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MatCommittee"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="TotalCommittee" class="labelStyle">TotalCommittee</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="TotalCommittee"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Fault" class="labelStyle">Fault</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Fault"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ErrorCause" class="labelStyle">ErrorCause</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ErrorCause"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="OnerousCostCenter" class="labelStyle">OnerousCostCenter</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="OnerousCostCenter"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ScrapAttachments" class="labelStyle">ScrapAttachments</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ScrapAttachments"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ProfitCenterContract" class="labelStyle">ProfitCenterContract</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ProfitCenterContract"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Reason" class="labelStyle">Reason</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Reason"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Mabname" class="labelStyle">Mabname</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Mabname"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ProducedByDispo" class="labelStyle">ProducedByDispo</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ProducedByDispo"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="RecessedLineApproved" class="labelStyle">RecessedLineApproved</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="RecessedLineApproved"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="GenehmigtGough" class="labelStyle">GenehmigtGough</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="GenehmigtGough"></span>
</div>
</div>
</div> <!-- table ends -->
<div style="border: thin solid black; width: 100%; padding-bottom: 5px; margin-top: 20px;">
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader" style="width:10em;">
<div id="RemarksAboutCause">RemarksAboutCause</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="RemarksAboutCause"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader" style="width:10em;">
<div id="InfluenceOnAppointmentRejection">InfluenceOnAppointmentRejection</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="InfluenceOnAppointmentRejection"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader" style="width:10em;">
<div id="BookedInSAPAndScrappedAt">BookedInSAPAndScrappedAt</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="BookedInSAPAndScrappedAt"></span>
</div>
</div>
</div><!-- Table ends-->
<div id="AttachmentsDiv" style="border:thin black solid;width:100%;margin-top:20px;padding-bottom:5px"><h1><span>Attachments</span></h1>
<div class="Table">
<div class="Row">
<div class="Cell">
<span data-displayName="Attachments"></span>
</div>
</div>
</div>
</div>
<div style="margin-top:30px;"> </div>
<div id="KLWorkflowHistory">
<h1><span>Approval History</span></h1>
<div id="CustomWorkflowHistorySection" class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="CustomWorkflowHistory" class="labelStyle">CustomWorkflowHistory</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="CustomWorkflowHistory"></span>
</div>
</div>
</div><!--End of KLWorkflowHistory-->
<!-- Approver Section -->
<div id="ApproverSectionBorder" style="border: thin solid black; width: 100%; padding-bottom: 5px; margin-top: 30px;">
<h1>
<span>Approver Section</span>
</h1>
<div id="ApproverSection" class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ApproverStatus" class="labelStyle">ApproverStatus</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ApproverStatus"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="CommentsByApprover" class="labelStyle">CommentsByApprover</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="CommentsByApprover"></span>
</div>
</div><!--End of ApproverSection-->
</div><!--End of ApproverSectionBorder-->
</div> <!-- page ends -->
<head><title></title></head>
JavaScript link over here.
.ms-long
{
width:150px
}
.ms-rtefield
{
max-height:50px;
max-width:384px;
overflow:scroll;
}
.Table
{
display: table;
border-spacing:2px;
}
.Title
{
display: table-caption;
text-align: center;
font-weight: bold;
font-size: larger;
}
.Heading
{
display: table-row;
font-weight: bold;
text-align: center;
}
.Row
{
display: table-row;
}
.Cell
{
display: table-cell;
border: none;
border-width: thin;
padding-top:10px;
padding-left: 10px;
padding-right: 10px;
width:120px;
}
div h1{
text-align: Center;
margin-top: -10px;
height: 20px;
line-height: 20px;
font-size: 15px;
font-weight: bold;
}
div h1 span{
background-color: white;
}
#load{
width:100%;
height:100%;
position:fixed;
z-index:9999;
background:url("https://qklportal.kl.int/app/Analage/Style%20Library/Images/loading.gif") no-repeat fixed Center;
}
.labelStyle
{
width:7em;
word-wrap:break-word;
/*border: 1px solid #000000;*/
}
.sp-peoplepicker-topLevel
{
width:210px !important;
}
</style>
<div id="page" style="display:none">
<div style="border: thin solid black;padding-bottom: 5px; margin-top: 20px;background-color:#E8E8E8">
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<nobr>Title<span class="ms-formvalidation"> *</span>
</nobr>
</H3>
</div>
<div class="Cell">
<span data-displayName="Title"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="WorkflowStage" class="labelStyle">WorkflowStage</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="WorkflowStage"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="BusinessUnit" class="labelStyle">BusinessUnit</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="BusinessUnit"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="KLlegalEntity" class="labelStyle">KLlegalEntity</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="KLlegalEntity"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="DocumentOwner" class="labelStyle">DocumentOwner</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="DocumentOwner"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="JobHolder" class="labelStyle">JobHolder</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="JobHolder"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="DocumentIsValidUntil" class="labelStyle">DocumentIsValidUntil</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="DocumentIsValidUntil"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ScrapLocation" class="labelStyle">ScrapLocation</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ScrapLocation"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="PassingComment" class="labelStyle">PassingComment</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="PassingComment"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="DocumentCreator" class="labelStyle">DocumentCreator</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="DocumentCreator"></span>
</div>
</div>
<div style="display:none;">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="CurrentApprover" class="labelStyle">CurrentApprover</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="CurrentApprover"></span>
</div>
</div>
</div>
<!-- Scrapping Request -->
<div style="border: thin solid black; width: 100%; padding-bottom: 5px; margin-top: 20px;">
<h1>
<span>Scrapping Request</span>
</h1>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Plant" class="labelStyle">Plant</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Plant"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Branch" class="labelStyle">Branch</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Branch"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Number" class="labelStyle">Number</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Number"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Requestor" class="labelStyle">Requestor</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Requestor"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="GestelltDorf" class="labelStyle">GestelltDorf</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="GestelltDorf"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ProductResponsible" class="labelStyle">ProductResponsible</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ProductResponsible"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Disponant" class="labelStyle">Disponant</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Disponant"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="QM" class="labelStyle">QM</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="QM"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="SegmentLeader" class="labelStyle">SegmentLeader</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="SegmentLeader"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MaterialNumber" class="labelStyle">MaterialNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MaterialNumber"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Designation" class="labelStyle">Designation</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Designation"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MaterialNumberOld" class="labelStyle">MaterialNumberOld</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MaterialNumberOld"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MatArt" class="labelStyle">MatArt</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MatArt"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Vorgang" class="labelStyle">Vorgang</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Vorgang"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="OrderNumber" class="labelStyle">OrderNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="OrderNumber"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="CompletedByAG" class="labelStyle">CompletedByAG</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="CompletedByAG"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ReklaNumber" class="labelStyle">ReklaNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ReklaNumber"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="TargetStuckNumber" class="labelStyle">TargetStuckNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="TargetStuckNumber"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="PushStuckNumber" class="labelStyle">PushStuckNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="PushStuckNumber"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MiscellaneousGoodStuccoNumber" class="labelStyle">MiscellaneousGoodStuccoNumber</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MiscellaneousGoodStuccoNumber"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ValueInEUR" class="labelStyle">ValueInEUR</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ValueInEUR"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="MatCommittee" class="labelStyle">MatCommittee</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="MatCommittee"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="TotalCommittee" class="labelStyle">TotalCommittee</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="TotalCommittee"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Fault" class="labelStyle">Fault</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Fault"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ErrorCause" class="labelStyle">ErrorCause</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ErrorCause"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="OnerousCostCenter" class="labelStyle">OnerousCostCenter</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="OnerousCostCenter"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ScrapAttachments" class="labelStyle">ScrapAttachments</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ScrapAttachments"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ProfitCenterContract" class="labelStyle">ProfitCenterContract</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ProfitCenterContract"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Reason" class="labelStyle">Reason</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Reason"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="Mabname" class="labelStyle">Mabname</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="Mabname"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ProducedByDispo" class="labelStyle">ProducedByDispo</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ProducedByDispo"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="RecessedLineApproved" class="labelStyle">RecessedLineApproved</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="RecessedLineApproved"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="GenehmigtGough" class="labelStyle">GenehmigtGough</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="GenehmigtGough"></span>
</div>
</div>
</div> <!-- table ends -->
<div style="border: thin solid black; width: 100%; padding-bottom: 5px; margin-top: 20px;">
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader" style="width:10em;">
<div id="RemarksAboutCause">RemarksAboutCause</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="RemarksAboutCause"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader" style="width:10em;">
<div id="InfluenceOnAppointmentRejection">InfluenceOnAppointmentRejection</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="InfluenceOnAppointmentRejection"></span>
</div>
</div>
<div class="Row">
<div class="Cell">
<H3 class="ms-standardheader" style="width:10em;">
<div id="BookedInSAPAndScrappedAt">BookedInSAPAndScrappedAt</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="BookedInSAPAndScrappedAt"></span>
</div>
</div>
</div><!-- Table ends-->
<div id="AttachmentsDiv" style="border:thin black solid;width:100%;margin-top:20px;padding-bottom:5px"><h1><span>Attachments</span></h1>
<div class="Table">
<div class="Row">
<div class="Cell">
<span data-displayName="Attachments"></span>
</div>
</div>
</div>
</div>
<div style="margin-top:30px;"> </div>
<div id="KLWorkflowHistory">
<h1><span>Approval History</span></h1>
<div id="CustomWorkflowHistorySection" class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="CustomWorkflowHistory" class="labelStyle">CustomWorkflowHistory</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="CustomWorkflowHistory"></span>
</div>
</div>
</div><!--End of KLWorkflowHistory-->
<!-- Approver Section -->
<div id="ApproverSectionBorder" style="border: thin solid black; width: 100%; padding-bottom: 5px; margin-top: 30px;">
<h1>
<span>Approver Section</span>
</h1>
<div id="ApproverSection" class="Row">
<div class="Cell">
<H3 class="ms-standardheader">
<div id="ApproverStatus" class="labelStyle">ApproverStatus</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="ApproverStatus"></span>
</div>
<div class="Cell">
<H3 class="ms-standardheader">
<div id="CommentsByApprover" class="labelStyle">CommentsByApprover</div>
</H3>
</div>
<div class="Cell">
<span data-displayName="CommentsByApprover"></span>
</div>
</div><!--End of ApproverSection-->
</div><!--End of ApproverSectionBorder-->
</div> <!-- page ends -->
<head><title></title></head>
JavaScript link over here.
Wednesday, March 30, 2016
Hide SharePoint List form field(s) using Powershell
clear
Add-PSSnapin Microsoft.SharePoint.PowerShell
$url = "https://sitename/";
$list = "Employee Information";#Display Name
$fieldname = "Salary Info";#Display Name
#Setting up context
$contextSite = New-Object Microsoft.SharePoint.SPSite($url);
$contextWeb = $contextSite.OpenWeb();
$list = $contextWeb.Lists.TryGetList($list);
$field = $list.Fields[$fieldname];
# Controls Field in Edit Form. 0 means hide. 1 means show.
#$field.ShowInEditForm = 1;
# Controls Field in New Form
#$field.ShowInNewForm = 0;
# Controls Field in New Form
$field.ShowInDisplayForm = 0;
# Hides fields from list settings
#$field.ShowInListSettings = 1;
# Hides fields from version history
#$field.ShowInVersionHistory = 1;
# Hides fields form selection in views
$field.ShowInViewForms = 0;
# Don't forget to update this field
$field.Update();
# And finally dispose everything.
$contextWeb.Dispose();
$contextSite.Dispose();
Add-PSSnapin Microsoft.SharePoint.PowerShell
$url = "https://sitename/";
$list = "Employee Information";#Display Name
$fieldname = "Salary Info";#Display Name
#Setting up context
$contextSite = New-Object Microsoft.SharePoint.SPSite($url);
$contextWeb = $contextSite.OpenWeb();
$list = $contextWeb.Lists.TryGetList($list);
$field = $list.Fields[$fieldname];
# Controls Field in Edit Form. 0 means hide. 1 means show.
#$field.ShowInEditForm = 1;
# Controls Field in New Form
#$field.ShowInNewForm = 0;
# Controls Field in New Form
$field.ShowInDisplayForm = 0;
# Hides fields from list settings
#$field.ShowInListSettings = 1;
# Hides fields from version history
#$field.ShowInVersionHistory = 1;
# Hides fields form selection in views
$field.ShowInViewForms = 0;
# Don't forget to update this field
$field.Update();
# And finally dispose everything.
$contextWeb.Dispose();
$contextSite.Dispose();
Monday, June 29, 2015
Load Balancer in SharePoint 2013
- In computing, load balancing distributes workloads across multiple computing resources, such as computers, a computer cluster, network links, central processing units or disk drives. Load balancing aims to optimize resource use, maximize throughput, minimize response time, and avoid overload of any single resource
- Load Balancer is used to balance & send user request load and send it to Web Front End server for continues supplying of service to user
- Load Balancer is separate server dedicated for load balancing. Load Balancer is configured in all Web Front End server.
- Load Balancer are by default configured in application server, so there is no need to configure external load balancer.
Load balancers use different algorithms to control traffic. The goal of these algorithms is to intelligently distribute load and/or maximize the utilization of all servers within the cluster. Some examples of these algorithms include:
- Round-robin. A round-robin algorithm distributes the load equally to each server, regardless of the current number of connections or the response time. Round-robin is suitable when the servers in the cluster have equal processing capabilities; otherwise, some servers may receive more requests than they can process while others are using only part of their resources.
- Weighted round-robin. A weighted round-robin algorithm accounts for the different processing capabilities of each server. Administrators manually assign a performance weight to each server, and a scheduling sequence is automatically generated according to the server weight. Requests are then directed to the different servers according to a round-robin scheduling sequence.
- Least-connection. A least-connection algorithm sends requests to servers in a cluster, based on which server is currently serving the fewest connections.
- Load-based. A load-based algorithm sends requests to servers in a cluster, based on which server currently has the lowest load.
Friday, June 26, 2015
Workflow Manager 1.0 (SharePoint 2013)
Workflow Manager in SharePoint 2013
![]() |
SharePoint 2013 Workflow platform diagram |
- Workflow Manager (WM) provides the management of workflow.
- Workflow Manager (WM) is a separate entity outside SharePoint 2013 Server. WM doesn't install automatically with SP 2013 installer. First install Window Platform Installer (64 bit) and then with the help of WPI, you can install Workflow Manager 1.0. Download WPI over here. Once you install WPI, Open Application Tab and search for Workflow. Add "Workflow Client" component. Install it. Check out full video below. Note: Workflow Engine is still a part of SharePoint 2013 Server same like SharePoint 2010 Server.
- Workflow Manager is built on top of Windows Workflow Foundation (check screen above).
- Workflow Manager has its own dedicated DB & Farm in server where WM is installed.
- Service Bus is also an entity resides along with WM on WM Server. Service bus also has its own dedicated DB in server where WM is installed. This Service Bus is use to take SharePoint events like itemCreated, ItemUpdated and give it to WM.
- The SharePoint 2013 Workflow
platform uses the new Workflow Manager service.
- WM also hosts the execution processes for workflow instances. This process is called as ServiceHost.exe. ServiceHost.exe is the process use to debug Workflow in SharePoint 2013.
- Since WM is now a separate entity outside SP, it can be used by different application also (non SharePoint application) to enhance its ability. This was not the case in SP2010, where WF is used only for SharePoint purpose.

- The SharePoint 2010 Workflow platform that came with SharePoint Server 2010 like Sequential and State Machine is still available in SharePoint Server 2013.
- Window Workflow Foundation and WCF are hosted on Workflow Manager.
- Workflow Manager Client 1.0 is represented in SharePoint 2013 in the form of the Workflow Manager Client 1.0 Service Application Proxy.
- SharePoint events for which a workflow is listening, like itemCreated, itemUpdated, and so on, are routed to Workflow Manager Client 1.0 using the Microsoft Azure service bus. For the return trip, the platform uses the SharePoint Representational State Transfer (REST) API to call back into SharePoint.
References:-
Subscribe to:
Posts (Atom)
