magritton
2/6/2019 - 11:25 PM

Quick Edit Fix for List

This adds the clienttemplates.js to the list definition which enables the quick edit button

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

cls
#set the variables
$url = "https://xxxx/dept/1100/CMDAWARDS/PDQStore"
$listName = "Department"
$viewName = "Active Only"

#get the web, list, view
$web = Get-SPWeb $url
$list = $web.Lists[$listName]
$view = $list.Views | ?{$_.Title -eq $viewName}

#add JSLink
$view.JSLink = "clienttemplates.js"
$view.Update()
$view