Skip to main content

Posts

Showing posts from November, 2017

Site collection Feature Activation using CSOM Code.

Site collection Feature Activation using CSOM Code.    public static void ActivateFeature(string webFullUrl, Guid featureId, bool force, FeatureDefinitionScope featdefScope)         {             try             {                 using (var ctx = new ClientContext(webFullUrl))                 {                     var features = ctx.Site.Features;                     ctx.Load(features);                     ctx.ExecuteQuery();                     features.Add(featureId, force, featdefScope);                     ctx.ExecuteQuery();         ...
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

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>