Thursday, March 24, 2016

Jquery and JavaScript for SharePoint Admins

Cool Tips

Change List New Item to …

enter image description here

https://sharepoint.stackexchange.com/questions/193726/sharepoint-2013-designer-changing-text-of-new-item-for-custom-list

Code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>

<script> $(document).ready(function(){ var spans = document.getElementsByTagName("span");

for(var i=0;i<spans.length; i++) {
if(spans[i].innerHTML == "new item") {
spans[i].innerHTML = "new person";
break;
}
}
});
</script>

SharePoint List Type Column to show icon based on file type attached

https://social.technet.microsoft.com/wiki/contents/articles/30896.sharepoint-list-type-column-to-show-icon-based-on-file-type-attached.aspx

Code:

<script type="text/javascript" src="{reference to jquery library}">​
</script>
<script type="text/javascript">
$(document).ready(function(){
$('.ms-listviewtable > tbody > tr').each(function () {
var docTypeIcon = getDocTypeImage($(this).find("td:nth-child(<column count*>)").text());
//alert(docTypeIcon);
$(this).find("td:nth-child(<column count*>)").find("img").attr("src",docTypeIcon);
});

function getDocTypeImage(x)
{
var imageUrl = '';
switch(x)
{
case 'pdf' : imageUrl = "/_layouts/images/pdficon_small.gif";
break;
case 'pptx' : imageUrl = "/_layouts/images/icpptx.png";
break;
case 'ppt' : imageUrl = "/_layouts/images/icppt.png";
break;
case 'docx' : imageUrl = "/_layouts/images/icdocx.png";
break;
case 'doc' : imageUrl = "/_layouts/images/icdoc.png";
break;
case 'xlsx' : imageUrl = "/_layouts/images/icxlsx.png";
break;
case 'xls' : imageUrl = "/_layouts/images/icxls.png";
break;
case 'zip' : imageUrl = "/_layouts/images/iczip.gif";
break;
default: imageUrl = "/_layouts/images/icgen.gif";
break;
}
return imageUrl;
}
});
</script>

Reference

https://drboolean.gitbooks.io/mostly-adequate-guide/content/

SharePoint Record Management

SharePoint 2013

Good Info
http://blog.rimtechconsulting.com/
http://www.rimtech.ca/reports.html

Discussion

https://social.technet.microsoft.com/Forums/windows/en-US/ad44a450-6981-4591-ad9c-0639406271f7/sharepoint-2013-as-a-records-management-tool?forum=sharepointgeneral

Vendor

https://www.gimmal.com/governance-records-management/

Records Management 2013 (Chart 2007 vs 2010 vs 2013)

http://blogs.technet.com/b/quentin/archive/2014/06/09/records-management-overview-_2800_part-1_2900_.aspx

ECM 2013 (Chart 2007 vs 2010 vs 2013)

http://blogs.technet.com/b/quentin/archive/2014/06/06/enterprise-content-management-overview.aspx

More on Record Management

DOD Standard 5012
http://www.archives.gov/records-mgmt/initiatives/dod-standard-5015-2.html

What’s new in 2013
http://technet.microsoft.com/en-us/sharepoint/fp142374.aspx

SharePoint 2010

Good Article
http://www.khamis.net/blog/Lists/Posts/Post.aspx?ID=32

SharePoint Record Management
http://technet.microsoft.com/en-us/library/ff363731

Declare any list or library item as a record
http://office.microsoft.com/en-us/sharepoint-server-help/declare-any-list-or-library-item-as-a-record-HA101729116.aspx?CTT=3

Configuring in place records management
http://office.microsoft.com/en-us/sharepoint-server-help/configuring-in-place-records-management-HA101729118.aspx

Designing for in-place records management (SharePoint Server 2010)
http://technet.microsoft.com/en-us/library/ff363732.aspx

Using a records archive versus managing records in place (SharePoint Server 2010)
http://technet.microsoft.com/en-us/library/ee424394.aspx

Tuesday, March 15, 2016

SharePoint 2016 RTM Installation

SharePoint 2016 RTM

Image result

SharePoint 2016 Central Admin Page

sp2016 new central admin

SharePoint 2016 Team Site Template

sp2016 new site

SharePoint 2016 Noteables

sp2016 stsadmn

STSADM is still here


Installation Issues

 

Strange Error During OS Install

Setting up SharePoint 2016 RTM lab and go this message.  Even though the minimum memory for Windows Server is 512 this error occurs.  So I bumped memory up the 1024 in Hyper-V VM and installed OS with no issue. I used dynamic memory for both DB and DC starting at 1024 and SP started at 8096.

Installation Step Gotchas

Create 3 VMs – NYC-DC1 NYC-SP1 NYC-DB1

Install OS – Rename Servers - Assign IP – Create/Join Domain

DB1 - Add .net framework 3.5 features via Server Manager
SP1 – Temporary Internet Connection for Products Prep Tool

SharePoint 2016 RTM  Demo Product Code Needed:
Product Code – NQGJR-63HC8-XCRQH-MYVCH-3J3QR
Custom Local Server Role

NOTE: SQL Firewall blocks by default

References

SharePoint 2016 Install Guide I
https://www.netiq.com/communities/cool-solutions/complete-premise-sharepoint-2016-setup-guide-simple-easy-steps-troubleshooting/

Installing SharePoint 2016 Guide II
https://www.starwindsoftware.com/blog/installing-sharepoint-2016

Database Types and Descriptions for SharePoint 2016
https://technet.microsoft.com/en-us/library/cc678868(v=office.16).aspx

IP Routing
http://www.bhargavs.com/index.php/2013/10/16/routing-for-hyper-v-lab-part-1/

Get Ready for SharePoint 2016
http://www.spjeff.com/2015/07/28/ready-for-sharepoint-2016/