Search This Blog

Total Pageviews

Monday, November 20, 2017

Error :

Attach database failed for Server […] Unable to open the physical file “[…]”. Operating system error 5: “5(failed to retrieve text for this error. Reason: 15105)”. (Microsoft SQL Server, Error: 5120)


Soultion:

SQL Management studio -> Run as Admin and tried its started working

Tuesday, November 14, 2017

SharePoint 2013 JQuery Datatable View

SharePoint 2013 Datatable View

Add the following code in Script Editor
<script src="https://code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script> 
<script src="https://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js" type="text/javascript"></script> 
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css" type="text/css" />

<script type="text/javascript"> 
  $(document).ready(function () { 
  alert('test');
      $('.ms-listviewtable').dataTable({       
      }); 
   }); 
</script> 

Thursday, September 21, 2017

Expand ALL & Collapse ALL in Sharepoint Library Group View

 <input type="button" value="Expand ALL" onclick="ProcessAll(this)"  style='color:white;background-color:darkgreen;font-weight:bold;'/>

<script>
function ProcessAll(btnobj)
{
if(btnobj.value=="Expand ALL")
{
expandAllData();
btnobj.value="Collapse ALL";
}
else
{
collapseAllData();
btnobj.value="Expand ALL";
}
}
function  expandAllData() {
$("img.ms-commentexpand-icon").click();
}
function  collapseAllData() {
$("img.ms-commentcollapse-icon").click();
}
</script>

Wednesday, September 6, 2017

Clear Your SharePoint Designer 2010/2013 Cache

Procedure:
  1. Close SPD if it is open
     
  2. Open My Computer
     
    a.Click the address bar
     
  3. Paste in:
    %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
     
  4. Delete everything within this location
     
  5. Click the address bar
     
  6. Paste in:
    %APPDATA%\Microsoft\Web Server Extensions\Cache
     
  7. Delete everything in this location
SharePoint Designer 2010 and 2013
  1. Navigate to the "File" menu then select "Options" -> "General" -> "Application Options".
  2. On the “General” tab, under the “General” heading, uncheck “Cache site data across SharePoint Designer sessions”.